Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-174

Error from server (AlreadyExists) on retry after first attempt failed with " Invalid value"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 0.7.0
    • None
    • None
    • None

    Description

      Step1 -

      Anils-MacBook-Pro:couchbase-kubernetes-demo anil$ kubectl create -f couchbase-cluster01.yaml

      couchbasecluster "cb-example" created

      This step failed although it says 'couchbasecluster "cb-example" created' [I know we discussed about adding validation in 0.8] 

      Checked logs and found issue -

      level=error msg="cluster failed to setup: Pod \"cb-example-0000\" is invalid: metadata.labels: Invalid value: \"couchbase_service_\": name part must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]')" cluster-name=cb-example module=cluster

      Step 2 - 

      Fixed the by removing '- search' 

      Re-ran 

      Anils-MacBook-Pro:couchbase-kubernetes-demo anil$ kubectl create -f couchbase-cluster.yaml

      Error from server (AlreadyExists): error when creating "couchbase-cluster.yaml": couchbaseclusters.couchbase.database.couchbase.com "cb-example" already exists

      Problem - 

      If step1 failed to create Couchbase-Cluster then Step 2 shouldn't give error "AlreadyExists" 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            anil Anil Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty