Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
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"