It seems there is a functional difference between remove app / redeploy and scaling from 3->0->3.
The result is a cluster stuck on (re)initializing:
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
opensearch azure-westeurope azure/westeurope 3.4.4 unsupported 11:21:15Z
App Version Status Scale Charm Channel Rev Exposed Message
opensearch active 3 opensearch 2/edge 185 no
opensearch-dashboards blocked 1 opensearch-dashboards 2/stable 22 no Opensearch service is (partially or fully) down
self-signed-certificates active 1 self-signed-certificates latest/stable 155 no
sysconfig active 3 sysconfig latest/stable 33 no ready
Unit Workload Agent Machine Public address Ports Message
opensearch-dashboards/0* blocked idle 1 172.18.0.14 5601/tcp Opensearch service is (partially or fully) down
opensearch/6* waiting executing 8 172.18.0.19 Waiting for OpenSearch to start...
sysconfig/67 active idle 172.18.0.19 ready
opensearch/7 maintenance executing 9 172.18.0.20 Waiting for TLS to be fully configured...
sysconfig/68 active idle 172.18.0.20 ready
opensearch/8 maintenance executing 10 172.18.0.18 Waiting for TLS to be fully configured...
sysconfig/66* active idle 172.18.0.18 ready
self-signed-certificates/0* active idle 0 172.18.0.15
Machine State Address Inst id Base AZ Message
0 started 172.18.0.15 juju-a49dc1-0 ubuntu@22.04
1 started 172.18.0.14 juju-a49dc1-1 ubuntu@22.04
8 started 172.18.0.19 manual:172.18.0.19 ubuntu@22.04 Manually provisioned machine
9 started 172.18.0.20 manual:172.18.0.20 ubuntu@22.04 Manually provisioned machine
10 started 172.18.0.18 manual:172.18.0.18 ubuntu@22.04 Manually provisioned machine
In the later case, it is possible to see, in the app-level databag, stale data from the older 3x unit that were removed. For example, in this show-unit, we can see: https://pastebin.canonical.com/p/VC7vCvvPSN/, we can still see data from units that were gone, such as opensearch/0:
It seems there is a functional difference between remove app / redeploy and scaling from 3->0->3.
The result is a cluster stuck on (re)initializing:
In the later case, it is possible to see, in the app-level databag, stale data from the older 3x unit that were removed. For example, in this
show-unit
, we can see: https://pastebin.canonical.com/p/VC7vCvvPSN/, we can still see data from units that were gone, such asopensearch/0
: