Upgrade errors with Helm 2.1 when TLS enabled

Description

The Helm Chart upgrade from 2.0.x to 2.1 encounters the following error:

*Steps to Reproduce*

1) helm install cb-test couchbase/couchbase-operator --version 2.0.2
this will install the standard default

2) then:

kubectl replace -f crd.yaml
kubectl create -f crd.yaml

3) then upgrade the chart:

helm upgrade cb-test couchbase/couchbase-operator

We will hit the error above.

In addition, If we have the following set to true in the values.yaml

Then upgrading to 2.1 operator from previous version will encounter the following error:

Environment

None

Release Notes Description

None

Activity

Show:

Eric Schneider May 12, 2021 at 6:06 PM

assigned to handle QE review of the docs. I'll leave it up to you with what to do with this ticket. Perhaps you can close this one since the final review is being handled in the other ticket?

Patrick Stephens April 28, 2021 at 9:48 AM

Cherry picked change over from master branch

Matt Ingenthron April 27, 2021 at 3:53 PM

Need to cherry pick this back to 2.1.

Patrick Stephens April 27, 2021 at 3:51 PM

I think this should be resolved in the linked docs now - do we need to backport it as well?  or

Tin Tran January 20, 2021 at 11:53 PM
Edited

Hi Thank you for the workaround, I will make a note here with more details for record keeping:

1) Install the Operator 2.0.2 without the cluster

2) Deploy Couchbase Cluster with TLS.generate set to true.

3) we see the operator-tls and server-tls secrets

4) At this point, before we upgrade, we must re-generate the new certs with the correct format, we can do that by:

Please note that we must match the helm's release name (demo in this case) of the couchbase server cluster and use the same values.yaml.

5) From the secretsdemo.yaml, remove everything except the operator and server tls secrets then replace the current secrets with:

We should now see the following lines in the Operator logs:

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created January 13, 2021 at 7:25 PM
Updated July 21, 2021 at 3:09 PM
Resolved April 28, 2021 at 9:48 AM
Instabug