Skip to content

Casskop spawning a bunch of logs; Multicasskop 'stop working' log #139

@Subetov

Description

@Subetov

Bug Report

What did you do?

  • deployed casskop:2.2.2
  • deployed multi-casskop:2.2.2
  • created multi-casskop resource
apiVersion: db.orange.com/v2
kind: MultiCasskop
metadata:
  name: test
  namespace: ice-cassandra
spec:
  base:
    apiVersion: db.orange.com/v2
    kind: CassandraCluster
    metadata:
      creationTimestamp: null
      labels:
        cluster: test
      name: test
      namespace: test-cassandra
    spec:
      autoPilot: true
      backRestSidecar:
        image: ghcr.io/cscetbon/instaclustr-icarus:2.0.4
        imagePullPolicy: IfNotPresent
      bootstrapImage: ghcr.io/cscetbon/casskop-bootstrap:0.1.14
      cassandraImage: cassandra:4.1.4
      configBuilderImage: datastax/cass-config-builder:1.0.8
      # configMapName: cassandra-configmap
      dataCapacity: 10Gi
      imagePullSecret:
        name: ice-cassandra-image-pull-artifactory
      imagepullpolicy: IfNotPresent
      maxPodUnavailable: 1
      noCheckStsAreEqual: true
      nodesPerRacks: 1
      resources:
        limits:
          cpu: "4"
          memory: 12Gi
        requests:
          cpu: "2"
          memory: 4Gi
      runAsUser: 999
    status:
      seedlist:
      - test-dc1-rack1-0.ice.ice-cassandra.svc.cluster.local
  deleteCassandraCluster: true
  override:
    dc1:
      spec:
        topology:
          dc:
          - name: dc1
            rack:
            - name: rack1

What did you expect to see?
Operator does not spawning such amount of logs

What did you see instead? Under which circumstances?
Lots of strange logs in the casskop operator

  1. Reconciling CassandraCluster / Issue when updating CassandraCluster (hundrets lines)
    Casskop:
time="2024-03-29T10:37:32Z" level=error msg="Issue when updating CassandraCluster Status" cluster=test err="cassandraclusters.db.orange.com \"test\" not found"
time="2024-03-29T10:37:32Z" level=error msg="Issue when updating CassandraCluster" cluster=test err="Operation cannot be fulfilled on cassandraclusters.db.orange.com \"test\": the object has been modified; please apply your changes to the latest version and try again"
2024-03-29T10:37:32Z    INFO    controller_cassandracluster    Reconciling CassandraCluster    {"Request.Namespace": "test-cassandra", "Request.Name": "test"}
time="2024-03-29T10:37:38Z" level=error msg="Issue when updating CassandraCluster Status" cluster=test err="cassandraclusters.db.orange.com \"test\" not found"
2024-03-29T10:37:38Z    INFO    controller_cassandracluster    Reconciling CassandraCluster    {"Request.Namespace": "test-cassandra", "Request.Name": "test"}

Multi-casskop:
Could not reconcile Request. Stop working. - the log is alarming

controller.go:222: Operation cannot be fulfilled on multicasskops.db.orange.com "test": StorageError: invalid object, Code: 4, Key: /registry/db.orange.com/multicasskops/ice-cassandra/test, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 8d2aa011-8f37-4094-94a6-f59cd94558fe, UID in object meta: 
controller.go:223: Could not reconcile Request. Stop working.

Environment

  • casskop version: v2.2.2

  • go version:

  • Kubernetes version information: v1.29.2

  • Kubernetes cluster kind: k3s v1.29.2

  • Cassandra version: 4.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions