Activity log for bug #1969775

Date Who What changed Old value New value Message
2022-04-21 12:39:14 Liam Young bug added bug
2022-04-21 12:41:06 Liam Young description [Impact] * ceph-iscsi on Focal talking to a Pacific or later Ceph cluster * rbd-target-api service fails to start if there is a blocklist entry for the unit. * When the rbd-target-api service starts it checks if any of the ip addresses on the machine it is running on are listed as blocked. If there are entries it tries to remove them. When it issues the block removal command it checks stdout from the removal command looking for the string `un-blacklisting`. However from Pacific onward a successful unblocking returns `un-blocklisting` instead (https://github.com/ceph/ceph/commit/dfd01d765304ed8783cef613930e65980d9aee23) [Test Plan] If an existing ceph-iscsi deployment is available then skip to step 3. 1) Deploy the bundle below (tested with OpenStack provider). series: focal applications: ceph-iscsi: charm: cs:ceph-iscsi num_units: 2 ceph-osd: charm: ch:ceph-osd num_units: 3 storage: osd-devices: 'cinder,10G' options: osd-devices: '/dev/test-non-existent' source: yoga channel: latest/edge ceph-mon: charm: ch:ceph-mon num_units: 3 options: monitor-count: '3' source: yoga channel: latest/edge relations: - - 'ceph-mon:client' - 'ceph-iscsi:ceph-client' - - 'ceph-osd:mon' - 'ceph-mon:osd' 2) Connect to ceph-iscsi unit: juju ssh -m zaza-a1d88053ab85 ceph-iscsi/0 3) Stop rbd-target-api via systemd to make test case clearer: sudo systemctl stop rbd-target-api 4) Add 2 blocklist entries for this unit (due to another issue the ordering of the output from `osd blacklist ls` matters which can lead to the reproduction of this bug being intermittent. To avoid this add two entries which ensures there is always an entry for this node in the list of blocklist entries to be removed). sudo ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist add $(hostname --all-ip-addresses | awk '{print $1}'):0/1 sudo ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist add $(hostname --all-ip-addresses | awk '{print $1}'):0/2 sudo ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist ls listed 2 entries 172.20.0.135:0/2 2022-02-23T11:14:54.850352+0000 172.20.0.135:0/1 2022-02-23T11:14:52.502592+0000 5) Attempt to start service: sudo /usr/bin/python3 /usr/bin/rbd-target-api At this point the process should be running in the foreground but instead it will die. The log from the service will have an entry like: 2022-04-21 12:35:21,695 CRITICAL [gateway.py:51:ceph_rm_blacklist()] - blacklist removal failed. Run 'ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist rm 172.20.0.156:0/1' [Where problems could occur] * Problems could occur with the service starting as this blocklist check is done at startup. * Blocklist entries could fail to be removed. [Impact]  * ceph-iscsi on Focal talking to a Pacific or later Ceph cluster  * rbd-target-api service fails to start if there is a blocklist    entry for the unit.  * When the rbd-target-api service starts it checks if any of the    ip addresses on the machine it is running on are listed as    blocked. If there are entries it tries to remove them. When it    issues the block removal command it checks stdout from the    removal command looking for the string `un-blacklisting`.    However from Pacific onward a successful unblocking returns    `un-blocklisting` instead (https://github.com/ceph/ceph/commit/dfd01d765304ed8783cef613930e65980d9aee23) [Test Plan]  If an existing ceph-iscsi deployment is available then skip to  step 3.  1) Deploy the bundle below (tested with OpenStack provider). series: focal applications:   ceph-iscsi:     charm: cs:ceph-iscsi     num_units: 2   ceph-osd:     charm: ch:ceph-osd     num_units: 3     storage:       osd-devices: 'cinder,10G'     options:       osd-devices: '/dev/test-non-existent'       source: yoga     channel: latest/edge   ceph-mon:     charm: ch:ceph-mon     num_units: 3     options:       monitor-count: '3'       source: yoga     channel: latest/edge relations:   - - 'ceph-mon:client'     - 'ceph-iscsi:ceph-client'   - - 'ceph-osd:mon'     - 'ceph-mon:osd'  2) Connect to ceph-iscsi unit: juju ssh -m zaza-a1d88053ab85 ceph-iscsi/0  3) Stop rbd-target-api via systemd to make test case clearer: sudo systemctl stop rbd-target-api  4) Add 2 blocklist entries for this unit (due to another issue the ordering of the output from `osd blacklist ls` matters which can lead to the reproduction of this bug being intermittent. To avoid this add two entries which ensures there is always an entry for this node in the list of blocklist entries to be removed). sudo ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist add $(hostname --all-ip-addresses | awk '{print $1}'):0/1 sudo ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist add $(hostname --all-ip-addresses | awk '{print $1}'):0/2 sudo ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist ls   listed 2 entries   172.20.0.135:0/2 2022-02-23T11:14:54.850352+0000   172.20.0.135:0/1 2022-02-23T11:14:52.502592+0000  5) Attempt to start service: sudo /usr/bin/python3 /usr/bin/rbd-target-api At this point the process should be running in the foreground but instead it will die. The log from the service will have an entry like: 2022-04-21 12:35:21,695 CRITICAL [gateway.py:51:ceph_rm_blacklist()] - blacklist removal failed. Run 'ceph -n client.ceph-iscsi --conf /etc/ceph/iscsi/ceph.conf osd blacklist rm 172.20.0.156:0/1' [Where problems could occur]  * Problems could occur with the service starting as this blocklist check is done at startup.  * Blocklist entries could fail to be removed. This issue is very similar to Bug #1883112
2022-06-14 19:23:29 Chris MacNaughton attachment added lp1969775.debdiff https://bugs.launchpad.net/ubuntu/+source/ceph-iscsi/+bug/1969775/+attachment/5597267/+files/lp1969775.debdiff
2022-06-14 20:20:44 Ubuntu Foundations Team Bug Bot tags patch
2022-06-15 12:57:56 Chris MacNaughton attachment added lp1969775.debdiff https://bugs.launchpad.net/ubuntu/+source/ceph-iscsi/+bug/1969775/+attachment/5597476/+files/lp1969775.debdiff
2022-06-29 15:10:34 Robie Basak ceph-iscsi (Ubuntu): status New Incomplete
2022-10-03 04:17:19 Launchpad Janitor ceph-iscsi (Ubuntu): status Incomplete Expired