Forcefully Delete Cinder Volume of Non-existing Cinder Hosts.
PreviousInstance Unreachable on Separate Hypervisor – Stale Flow (OVS/VLAN)NextAccessing Instance Console Fails From Primary Region
Last updated
# openstack volume show <VOLUME_ID> -c id -c os-vol-host-attr:host -c status -c attachments# openstack volume set --state available --detached <stale-volume-uuid>
OR
# cinder reset-state --state available --attach-status detached <stale-volume-uuid># LD_LIBRARY_PATH="/opt/pf9/pf9-cindervolume-base/pf9-lib:/opt/pf9/python/pf9-lib:${LD_LIBRARY_PATH}" PYTHONPATH="/opt/pf9/python/lib/python3.6:/opt/pf9/pf9-cindervolume-base/lib/python3.6/site-packages:${PYTHONPATH}" /opt/pf9/pf9-cindervolume-base/bin/cinder-manage --config-dir /opt/pf9/etc/pf9-cindervolume-base/conf.d volume update_host --currenthost <old-host-id@lvm-backend> --newhost <new-host-id@lvm-backend># openstack volume delete --force <volume-uuid># openstack volume show <VOLUME_ID>