Activity log for bug #1921336

Date Who What changed Old value New value Message
2021-03-25 08:00:02 Hua Zhang bug added bug
2021-03-25 08:00:18 Hua Zhang tags sts
2021-03-26 03:18:54 Hua Zhang description Our customer is doing series upgrade gnocchi and mongodb were there in same container, and gnocchi upgrade-series was going into error state, so once they removed mongodb from the container gnocchi upgrade went fine. Then they redeployed mongodb on different container facing the issue 'no replset config has been received'. mongodb/6 maintenance executing 42/lxd/9 10.110.244.146 27017/tcp,27019/tcp,27021/tcp,28017/tcp no replset config has been received nrpe/162 waiting allocating 10.110.244.146 agent initializing mongodb/7 maintenance executing 43/lxd/9 10.110.244.147 27017/tcp,27019/tcp,27021/tcp,28017/tcp no replset config has been received nrpe/161 waiting allocating 10.110.244.147 agent initializing Obviously, missing unit for leader is the root cause, it causes init_replset [1] not to be run so the issue happens. $ juju run --unit mongodb/20 is-leader False $ juju run --unit mongodb/21 is-leader False But why is leader missing? The above is all that has been done, then we tried: 1, we removed the application several times with the former name, and it always failed. juju remove-application mongodb --force juju deploy mongodb -n 2 --constraints "spaces=oam-space" --bind "internal-space configsvr=internal-space data=internal-space database=internal-space mongos=internal-space mongos-cfg=internal-space nrpe-external-master=internal-space replica-set=internal-space" --to lxd:42,lxd:43 2, we restarted juju agent and juju unit on two hosts according to lp:1810331 [2], it failed as well. 3, Finally redeploying with a diffeent name fixed the issue. and I also did many tests but it didn't reproduce. I also analyzed some data. 1, unitstates.json shows leader is false for both mongodb/20 and mongodb/21, see https://paste.ubuntu.com/p/ss8Rc4yKTv/ 2, settings.json shows there is no mongodb/20 and mongdob/21, see - https://paste.ubuntu.com/p/GJgsWwmkYq/ [1] https://git.launchpad.net/charm-mongodb/tree/hooks/hooks.py#n1300 [2] https://bugs.launchpad.net/juju/+bug/1810331 Our customer is doing series upgrade gnocchi and mongodb were there in same container, and gnocchi upgrade-series was going into error state, so once they removed mongodb from the container gnocchi upgrade went fine. Then they redeployed mongodb on different container facing the issue 'no replset config has been received'. mongodb/6 maintenance executing 42/lxd/9 10.110.244.146 27017/tcp,27019/tcp,27021/tcp,28017/tcp no replset config has been received nrpe/162 waiting allocating 10.110.244.146 agent initializing mongodb/7 maintenance executing 43/lxd/9 10.110.244.147 27017/tcp,27019/tcp,27021/tcp,28017/tcp no replset config has been received nrpe/161 waiting allocating 10.110.244.147 agent initializing Obviously, missing unit for leader is the root cause, it causes init_replset [1] not to be run so the issue happens. $ juju run --unit mongodb/20 is-leader False $ juju run --unit mongodb/21 is-leader False But why is leader missing? The above is all that has been done, then we tried: 1, we removed the application several times with the former name, and it always failed. juju remove-application mongodb --force juju deploy mongodb -n 2 --constraints "spaces=oam-space" --bind "internal-space configsvr=internal-space data=internal-space database=internal-space mongos=internal-space mongos-cfg=internal-space nrpe-external-master=internal-space replica-set=internal-space" --to lxd:42,lxd:43 2, we restarted juju agent and juju unit on two hosts according to lp:1810331 [2], it failed as well. 3, Finally redeploying with a diffeent name fixed the issue. and I also did many tests but it didn't reproduce. I also analyzed some data. 1, unitstates.json shows leader is false for both mongodb/20 and mongodb/21, see https://paste.ubuntu.com/p/ss8Rc4yKTv/ 2, settings.json shows there is no mongodb/20 and mongdob/21, see - https://paste.ubuntu.com/p/GJgsWwmkYq/ The present version is: series=bionic, cs:mongodb-54, mongodb=3.6.3 [1] https://git.launchpad.net/charm-mongodb/tree/hooks/hooks.py#n1300 [2] https://bugs.launchpad.net/juju/+bug/1810331
2021-04-06 10:27:48 Joseph Phillips juju: status New Triaged
2021-04-06 10:28:59 Joseph Phillips juju: importance Undecided Medium
2022-11-03 16:57:50 Canonical Juju QA Bot juju: importance Medium Low
2022-11-03 16:57:51 Canonical Juju QA Bot tags sts expirebugs-bot sts