Activity log for bug #1945514

Date Who What changed Old value New value Message
2021-09-29 17:35:56 Simon Déziel bug added bug
2021-09-29 17:38:54 Simon Déziel bug added subscriber Ubuntu containers team
2021-09-29 17:39:05 Simon Déziel attachment added juju-crashdump-d22dca66-6df3-4b82-9dce-548a13ee8532.tar.xz https://bugs.launchpad.net/juju/+bug/1945514/+attachment/5529151/+files/juju-crashdump-d22dca66-6df3-4b82-9dce-548a13ee8532.tar.xz
2021-09-29 17:40:51 Simon Déziel description The problem is twofold: 1) randomly calling relation_departed: When adding an additional unit, the existing unit had it's relation_departed hook triggered out of the blue, apparently when I added an extra unit. Here's what I've done: # deploy initial unit (https-client/33): $ juju deploy ./https-client_ubuntu-20.04-amd64.charm Located local charm "https-client", revision 30 Deploying "https-client" from local charm "https-client", revision 30 # establish relation with lxd: $ juju relate https-client lxd # so far so go so let's add one more unit (https-client/34): $ juju add-unit https-client # check the juju logs: unit-https-client-34: 16:31:28 INFO juju Starting unit workers for "https-client/34" unit-https-client-34: 16:31:28 INFO juju.worker.apicaller [5c4e7f] "unit-https-client-34" successfully connected to "[2602:fc62:b:1018:1::a025]:17070" unit-https-client-34: 16:31:28 INFO juju.worker.apicaller [5c4e7f] password changed for "unit-https-client-34" unit-https-client-34: 16:31:28 INFO juju.worker.apicaller [5c4e7f] "unit-https-client-34" successfully connected to "172.17.18.217:17070" unit-https-client-34: 16:31:28 INFO juju.worker.migrationminion migration phase is now: NONE unit-https-client-34: 16:31:28 INFO juju.worker.logger logger worker started unit-https-client-34: 16:31:28 INFO juju.worker.upgrader no waiter, upgrader is done unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Legacy hooks/https-relation-departed does not exist. unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-33/charm/.unit-state.db already exists unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Emitting Juju event https_relation_departed. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Operator Framework 1.2.0 up and running. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Legacy hooks/https-relation-departed does not exist. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-lxd-21/charm/.unit-state.db already exists unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Emitting Juju event https_relation_departed. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: _on_https_relation_departed unit-lxd-21: 16:31:29 INFO unit.lxd/21.juju-log https:39: Deleting juju-relation-test-https-client/33:autoremove from trusted list In the above, we see https-client/33's departed hook was called for no reason. 2) not calling relation_departed: # after the unexpected departure of https-client/33, I added another unit (https-client/35): $ juju add-unit https-client # this one behaved fine (joined and didn't cause any disruption) # now to break the relation: $ juju remove-relation https-client lxd # check the juju logs: unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Operator Framework 1.2.0 up and running. unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Legacy hooks/update-status does not exist. unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Using local storage: /var/lib/juju/agents/unit-lxd-21/charm/.unit-state.db already exists unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Emitting Juju event update_status. unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Operator Framework 1.2.0 up and running. unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Legacy hooks/update-status does not exist. unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Using local storage: /var/lib/juju/agents/unit-https-client-34/charm/.unit-state.db already exists unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Emitting Juju event update_status. unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Legacy hooks/https-relation-broken does not exist. unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Legacy hooks/https-relation-broken does not exist. unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Legacy hooks/https-relation-broken does not exist. unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-35/charm/.unit-state.db already exists unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-33/charm/.unit-state.db already exists unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-34/charm/.unit-state.db already exists unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Emitting Juju event https_relation_broken. unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Emitting Juju event https_relation_broken. unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Emitting Juju event https_relation_broken. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Operator Framework 1.2.0 up and running. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Legacy hooks/https-relation-departed does not exist. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-lxd-21/charm/.unit-state.db already exists unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Emitting Juju event https_relation_departed. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: _on_https_relation_departed unit-lxd-21: 16:35:51 INFO unit.lxd/21.juju-log https:39: Deleting juju-relation-test-https-client/34:autoremove from trusted list In the above, none of the https-client units saw their relation_departed hook invoked, only their (non-existent) relation_broken hook. For some reason, the lxd unit received a relation_departed for https-client/34 (but no other). Additional information: $ juju --version 2.9.15-ubuntu-amd64 $ juju status --relations --color Model Controller Cloud/Region Version SLA Timestamp test overlord maas/default 2.9.14 unsupported 16:44:05Z App Version Status Scale Charm Store Channel Rev OS Message https-client active 3 https-client local 30 ubuntu lxd active 1 lxd local 30 ubuntu Unit Workload Agent Machine Public address Ports Message https-client/33* active idle 68 2602:fc62:b:1018:0:1:0:c https-client/34 active idle 69 2602:fc62:b:1018:0:1:0:f https-client/35 active idle 72 2602:fc62:b:1018:0:1:0:e lxd/21* active idle 57 2602:fc62:b:1018:0:1:0:b Machine State DNS Inst id Series AZ Message 57 started 2602:fc62:b:1018:0:1:0:b cloud-vm08 focal default Deployed 68 started 2602:fc62:b:1018:0:1:0:c cloud-vm03 focal default Deployed 69 started 2602:fc62:b:1018:0:1:0:f cloud-vm04 focal default Deployed 71 started 2602:fc62:b:1018:0:1:0:7 cloud-vm05 focal default Deployed 72 started 2602:fc62:b:1018:0:1:0:e cloud-vm06 focal default Deployed 73 started 2602:fc62:b:1018:0:1:0:2 cloud-vm07 focal default Deployed 74 started 2602:fc62:b:1018:0:1:0:3 cloud-vm10 focal default Deployed 75 started 2602:fc62:b:1018:0:1:0:d cloud-vm11 focal default Deployed 76 started 2602:fc62:b:1018:0:1:0:12 cloud-vm14 focal default Deployed 77 started 2602:fc62:b:1018:0:1:: cloud-vm01 focal default Deployed 78 started 2602:fc62:b:1018:0:1:0:13 cloud-vm12 focal default Deployed 79 started 2602:fc62:b:1018:0:1:0:14 cloud-vm13 focal default Deployed 81 started 2602:fc62:b:1018:0:1:0:5 cloud-vm09 focal default Deployed 82 pending pending focal The problem is twofold: 1) randomly calling relation_departed: When adding an additional unit, the existing unit had it's relation_departed hook triggered out of the blue, apparently when I added an extra unit. Here's what I've done: # deploy initial unit (https-client/33): $ juju deploy ./https-client_ubuntu-20.04-amd64.charm Located local charm "https-client", revision 30 Deploying "https-client" from local charm "https-client", revision 30 # establish relation with lxd: $ juju relate https-client lxd # so far so good so let's add one more unit (https-client/34): $ juju add-unit https-client # check the juju logs: unit-https-client-34: 16:31:28 INFO juju Starting unit workers for "https-client/34" unit-https-client-34: 16:31:28 INFO juju.worker.apicaller [5c4e7f] "unit-https-client-34" successfully connected to "[2602:fc62:b:1018:1::a025]:17070" unit-https-client-34: 16:31:28 INFO juju.worker.apicaller [5c4e7f] password changed for "unit-https-client-34" unit-https-client-34: 16:31:28 INFO juju.worker.apicaller [5c4e7f] "unit-https-client-34" successfully connected to "172.17.18.217:17070" unit-https-client-34: 16:31:28 INFO juju.worker.migrationminion migration phase is now: NONE unit-https-client-34: 16:31:28 INFO juju.worker.logger logger worker started unit-https-client-34: 16:31:28 INFO juju.worker.upgrader no waiter, upgrader is done unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Legacy hooks/https-relation-departed does not exist. unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-33/charm/.unit-state.db already exists unit-https-client-33: 16:31:29 DEBUG unit.https-client/33.juju-log https:39: Emitting Juju event https_relation_departed. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Operator Framework 1.2.0 up and running. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Legacy hooks/https-relation-departed does not exist. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-lxd-21/charm/.unit-state.db already exists unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: Emitting Juju event https_relation_departed. unit-lxd-21: 16:31:29 DEBUG unit.lxd/21.juju-log https:39: _on_https_relation_departed unit-lxd-21: 16:31:29 INFO unit.lxd/21.juju-log https:39: Deleting juju-relation-test-https-client/33:autoremove from trusted list In the above, we see https-client/33's departed hook was called for no reason. 2) not calling relation_departed: # after the unexpected departure of https-client/33, I added another unit (https-client/35): $ juju add-unit https-client # this one behaved fine (joined and didn't cause any disruption) # now to break the relation: $ juju remove-relation https-client lxd # check the juju logs: unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Operator Framework 1.2.0 up and running. unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Legacy hooks/update-status does not exist. unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Using local storage: /var/lib/juju/agents/unit-lxd-21/charm/.unit-state.db already exists unit-lxd-21: 16:35:36 DEBUG unit.lxd/21.juju-log Emitting Juju event update_status. unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Operator Framework 1.2.0 up and running. unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Legacy hooks/update-status does not exist. unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Using local storage: /var/lib/juju/agents/unit-https-client-34/charm/.unit-state.db already exists unit-https-client-34: 16:35:47 DEBUG unit.https-client/34.juju-log Emitting Juju event update_status. unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Legacy hooks/https-relation-broken does not exist. unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Legacy hooks/https-relation-broken does not exist. unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Operator Framework 1.2.0 up and running. unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Legacy hooks/https-relation-broken does not exist. unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-35/charm/.unit-state.db already exists unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-33/charm/.unit-state.db already exists unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-https-client-34/charm/.unit-state.db already exists unit-https-client-35: 16:35:50 DEBUG unit.https-client/35.juju-log https:39: Emitting Juju event https_relation_broken. unit-https-client-33: 16:35:50 DEBUG unit.https-client/33.juju-log https:39: Emitting Juju event https_relation_broken. unit-https-client-34: 16:35:50 DEBUG unit.https-client/34.juju-log https:39: Emitting Juju event https_relation_broken. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Operator Framework 1.2.0 up and running. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Legacy hooks/https-relation-departed does not exist. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Using local storage: /var/lib/juju/agents/unit-lxd-21/charm/.unit-state.db already exists unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: Emitting Juju event https_relation_departed. unit-lxd-21: 16:35:51 DEBUG unit.lxd/21.juju-log https:39: _on_https_relation_departed unit-lxd-21: 16:35:51 INFO unit.lxd/21.juju-log https:39: Deleting juju-relation-test-https-client/34:autoremove from trusted list In the above, none of the https-client units saw their relation_departed hook invoked, only their (non-existent) relation_broken hook. For some reason, the lxd unit received a relation_departed for https-client/34 (but no other). Additional information: $ juju --version 2.9.15-ubuntu-amd64 $ juju status --relations --color Model Controller Cloud/Region Version SLA Timestamp test overlord maas/default 2.9.14 unsupported 16:44:05Z App Version Status Scale Charm Store Channel Rev OS Message https-client active 3 https-client local 30 ubuntu lxd active 1 lxd local 30 ubuntu Unit Workload Agent Machine Public address Ports Message https-client/33* active idle 68 2602:fc62:b:1018:0:1:0:c https-client/34 active idle 69 2602:fc62:b:1018:0:1:0:f https-client/35 active idle 72 2602:fc62:b:1018:0:1:0:e lxd/21* active idle 57 2602:fc62:b:1018:0:1:0:b Machine State DNS Inst id Series AZ Message 57 started 2602:fc62:b:1018:0:1:0:b cloud-vm08 focal default Deployed 68 started 2602:fc62:b:1018:0:1:0:c cloud-vm03 focal default Deployed 69 started 2602:fc62:b:1018:0:1:0:f cloud-vm04 focal default Deployed 71 started 2602:fc62:b:1018:0:1:0:7 cloud-vm05 focal default Deployed 72 started 2602:fc62:b:1018:0:1:0:e cloud-vm06 focal default Deployed 73 started 2602:fc62:b:1018:0:1:0:2 cloud-vm07 focal default Deployed 74 started 2602:fc62:b:1018:0:1:0:3 cloud-vm10 focal default Deployed 75 started 2602:fc62:b:1018:0:1:0:d cloud-vm11 focal default Deployed 76 started 2602:fc62:b:1018:0:1:0:12 cloud-vm14 focal default Deployed 77 started 2602:fc62:b:1018:0:1:: cloud-vm01 focal default Deployed 78 started 2602:fc62:b:1018:0:1:0:13 cloud-vm12 focal default Deployed 79 started 2602:fc62:b:1018:0:1:0:14 cloud-vm13 focal default Deployed 81 started 2602:fc62:b:1018:0:1:0:5 cloud-vm09 focal default Deployed 82 pending pending focal
2021-09-29 19:21:28 John A Meinel juju: importance Undecided Critical
2021-09-29 19:21:28 John A Meinel juju: status New Triaged
2021-09-29 19:23:44 Simon Déziel attachment added juju debug-log -m controller --replay https://bugs.launchpad.net/juju/+bug/1945514/+attachment/5529180/+files/log.txt.gz
2021-09-29 20:11:46 Simon Déziel attachment added juju debug-log --replay https://bugs.launchpad.net/juju/+bug/1945514/+attachment/5529193/+files/full-log.txt.gz
2021-09-29 21:12:44 Dominique Poulain bug added subscriber Dominique Poulain
2021-10-07 23:28:28 Ian Booth juju: milestone 2.9.17
2021-10-20 11:09:14 Heitor bug added subscriber Heitor
2021-10-22 01:28:09 Canonical Juju QA Bot juju: milestone 2.9.17 2.9.18
2021-11-01 21:33:24 John A Meinel juju: assignee Ian Booth (wallyworld)
2021-11-04 10:33:39 Canonical Juju QA Bot juju: milestone 2.9.18 2.9.19
2021-11-17 21:51:15 Canonical Juju QA Bot juju: milestone 2.9.19 2.9.20
2021-11-26 23:57:21 Canonical Juju QA Bot juju: milestone 2.9.20 2.9.21
2021-12-01 12:40:34 Canonical Juju QA Bot juju: milestone 2.9.21 2.9.22
2021-12-10 04:27:29 Canonical Juju QA Bot juju: milestone 2.9.22 2.9.23
2022-01-12 12:16:34 Canonical Juju QA Bot juju: milestone 2.9.23 2.9.24
2022-02-01 08:34:49 Canonical Juju QA Bot juju: milestone 2.9.24 2.9.25
2022-02-15 13:00:30 Canonical Juju QA Bot juju: milestone 2.9.25 2.9.26
2022-03-09 11:02:44 Canonical Juju QA Bot juju: milestone 2.9.26 2.9.27
2022-03-18 12:36:29 Canonical Juju QA Bot juju: milestone 2.9.27 2.9.28
2022-03-30 13:20:40 Canonical Juju QA Bot juju: milestone 2.9.28 2.9.29
2022-04-19 02:34:37 Ian Booth juju: assignee Ian Booth (wallyworld)
2022-04-19 02:35:50 Ian Booth juju: status Triaged Incomplete
2022-04-27 12:17:49 Canonical Juju QA Bot juju: milestone 2.9.29 2.9.30
2022-05-12 10:39:55 John A Meinel juju: importance Critical High
2022-05-12 10:39:56 John A Meinel juju: milestone 2.9.30 2.9-next
2023-04-25 14:30:50 Ian Booth juju: milestone 2.9-next
2023-06-29 04:17:21 Launchpad Janitor juju: status Incomplete Expired