Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Subetov opened this issue Mar 29, 2024 · 2 comments
Open

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

Subetov opened this issue Mar 29, 2024 · 2 comments

Comments

@Subetov
Copy link

Subetov commented Mar 29, 2024

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

@Subetov Subetov changed the title Casskop spawning a bunch of logs; Serviceaccount permissions; Multicasskop 'stop working' log Casskop spawning a bunch of logs; Multicasskop 'stop working' log Mar 29, 2024
@cscetbon
Copy link
Owner

cscetbon commented Dec 2, 2024

@AKamyshnikova have you seen this before ? ☝️

@AKamyshnikova
Copy link
Collaborator

No, we do not use multicasskop in our setups. multicasskop has dependency with multicluster-controller lib which has not been updated for 4+ years - not sure how can we maintain it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants