change in podspec causing removing resource and juju units
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
hi,
I am working on k8s charm for zookeeper and Kafka stuck into a problem where a change in pod spec causing pods to stop and start which end up deleting a juju unit, resources including persistent volume and creating a new one. As I am using persistent volume so any persistent volume also gets deleted and added again when pod stops and start.
to reproduce the problem.
deploy zookeeper 3 units
juju deploy cs:~narindergup
wait for units to be ready might take 5-10 minutes for status update
juju status
Model Controller Cloud/Region Version SLA Timestamp
look microk8s-localhost microk8s/localhost 2.7.5 unsupported 17:15:45Z
App Version Status Scale Charm Store Rev OS Address Notes
zookeeper-k8s rocks.canonical
Unit Workload Agent Address Ports Message
zookeeper-k8s/0 maintenance idle 10.1.31.14 2888/TCP,
zookeeper-k8s/1 active idle 10.1.31.15 2888/TCP,
zookeeper-k8s/2* active idle 10.1.31.16 2888/TCP,
enable the ha-mode
juju config zookeeper-k8s ha-mode=true
above command cause a pod spec change and which exhibits the behavior
juju status
Model Controller Cloud/Region Version SLA Timestamp
look microk8s-localhost microk8s/localhost 2.7.5 unsupported 17:24:48Z
App Version Status Scale Charm Store Rev OS Address Notes
zookeeper-k8s rocks.canonical
Unit Workload Agent Address Ports Message
zookeeper-k8s/3* active idle 10.1.31.17 2888/TCP,
zookeeper-k8s/4 active idle 10.1.31.18 2888/TCP,
zookeeper-k8s/5 active idle 10.1.31.19 2888/TCP,
Thanks and Regards,
Narinder Gupta
Changed in juju: | |
milestone: | none → 2.8-rc1 |
Changed in juju: | |
milestone: | 2.8-rc1 → 2.7.6 |
Zookeeper podspec is http:// paste.ubuntu. com/p/mqxjxZyBx h/ and adding another unit causes the podspec to change with --servers= %(zookeeper- units)s by adding the number of units. Which causes the zookeeper podspec to change and then pod gets stop and start.