Removing ceph-iscsi unit does not remove a gateway

Bug #1902745 reported by Przemyslaw Hausman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Ceph iSCSI Charm
New
Undecided
Unassigned

Bug Description

When ceph-iscsi unit is removed with `juju remove-unit ceph-iscsi/0`, it does not clean up after itself.

Reviewing the configured gateways with `gwcli` reveals a stale gateway in an "(UNKNOWN)" state:

1 gateway is inaccessible - updates will be disabled
/iscsi-target...-igw/gateways> ls
o- gateways ................................ [Up: 1/2, Portals: 2]
  o- node02.maas ............................. [172.27.81.85 (UP)]
  o- node10.maas ........................ [172.27.81.94 (UNKNOWN)]

The user must delete the gateway manually with:

/iscsi-target...-igw/gateways> delete node10.maas confirm=true

I'd suggest that when the charm unit is gracefully removed (e.g. with `juju remove-unit`) it cleans up after itself and removes the gateway.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.