Reviewed: https://review.openstack.org/565703 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8b8c5da59efb087295b676d4261f84dfadf62503 Submitter: Zuul Branch: master
commit 8b8c5da59efb087295b676d4261f84dfadf62503 Author: Vishakha Agarwal <agarwalvishakh...@gmail.com> Date: Wed May 2 16:42:58 2018 +0530 Re-using the code of os brick cinder To avoid the errors during force delete of logical volume, cinder library os brick is already using udevadm settle for it. Calling the same library of cinder in nova too. Change-Id: I092afdd0409ab27187cf74cd1514e9e0c550d52c Closes-Bug: #1191960 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1191960 Title: force-delete of cinder volume errors with Can\'t remove open logical volume Status in Cinder: Fix Released Status in OpenStack Compute (nova): Fix Released Bug description: As a consequence of Bug #1191431, few volumes were left in error_deleting state. Few of the cleared off by issuing cinder delete <uuid>, however few of the errored out. 1.When you try deleting such volume from Horizon > volume > check box > Delete Volumes Error: You do not have permission to delete volume: <Volume: 078cd44b-7b39-4867-a1e9-78bb758ae0a7> 2.When you try using 'Force Delete Volume' option against the suspected volume. The request gets submitted successfully, however you will see following error messages in /var/log/cinder/cinder-volume on the controller node: ProcessExecutionError: Unexpected error while running command. Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvremove -f cinder-volumes/volume-078cd44b-7b39-4867-a1e9-78bb758ae0a7 Exit code: 5 Stdout: ''Stderr: ' Can\'t remove open logical volume "volume-078cd44b-7b39-4867-a1e9-78bb758ae0a7"\n' 3.When you try delete manually through command line, you get the following error: lvremove -f /dev/cinder-volumes/volume-078cd44b-7b39-4867-a1e9-78bb758ae0a7 Can't remove open logical volume "volume-078cd44b-7b39-4867-a1e9-78bb758ae0a7" Workaround 1.The volume is left in in-use state by tgtd service that causes cinder delete and force-delete not to work. Stop the service that is using it: service tgt stop lvremove /dev/cinder-volumes/volume-078cd44b-7b39-4867-a1e9-78bb758ae0a7 2.Now, remove it through cinder-api or cli service tgt start cinder force-delete 078cd44b-7b39-4867-a1e9-78bb758ae0a7 Note: lsof /dev/cinder-volumes/volume-078cd44b- 7b39-4867-a1e9-78bb758ae0a7 reported tgtd using it. Expected behavior: force-delete option must address such anomalies. To manage notifications about this bug go to: https://bugs.launchpad.net/cinder/+bug/1191960/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp