Opensearch Operator migration from 2.8.0 to 3.0.0 : operator 2.8.0 still running

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 3.7.0

Describe the issue: k8s operator 2.8.0 still running after operator 3.0.0 deployment in legacy mode.

Do we have to scale 2.8.0 operator to “0” before ?

@lmo-34 I’ve done some testing with the upgrade, and I had no issues. The original 2.8.0 has been terminated, and 3.0.0 has successfully started.

I’ve used the command below to upgrade my OS Operator.

helm upgrade opensearch-operator opensearch-operator/opensearch-operator --set webhook.enabled=false --version 3.0.14

Do you still have 2 opensearch operator pods running? What do you see in the 2.8.0 logs?

Hi Pablo,

For the operator installation or upgrade, we run the helm template command, followed by kubectl apply.

The release name is os. However, the Kubernetes deployment name differs between versions:

  • 3.0.14: os-opensearch-operator
  • 2.8.0: os-opensearch-operator-controller-manager

Could you please confirm the deployment names used in versions 2.8.0 and 3.0.14?

Regards,
Laurent

that difference is probably it, helm upgrade would clean up the old deployment but template + apply wont. apply never deletes a renamed resource, so the 2.8.0 deployment stays until you remove it yourself.

We will continue the 3.0.14 upgrade tests, either by setting the 2.8.0 scale to 0 or by using the “fullname” variable if we can overwrite 2.8.0 objects in namespace operator.

Thanks for the discussion.