Moving this bug to Nova team since n-cpu.log reports error. Also, detach request does not reach to cinder.
** Project changed: cinder => nova -- 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/1657718 Title: LVM : Volume detach failed after rebuilding instance to different nova image. Status in OpenStack Compute (nova): New Bug description: Description Pre-requisites: 1) LVM backend must be configured and enabled. 2) Volume type LVM must be created beforehand. 3) More than one image must be present in Openstack host. Steps to Reproduce: 1. Navigate to Devstack Host CLI. 2. Run the command to create a bootable volume <volume1>: $cinder create --image <image> --name <name> --volume-type <volume-type> <size> 3. Create a volume <volume2> without selecting volume source. $cinder create --name <volume_name> --volume-type <volume-type> <size> 4. Launch an instance booting from volume1. $nova boot --flavor <flavor> --boot-volume <volume_id> <name> 5. Attach the volume2 to an instance. $nova volume-attach <server> <volume> [<device>] 6. Rebuild the instance with different image. $nova rebuild <server> <image> 7. Detach volume2 from instance. $nova volume-detach <server> <volume2> Expected Result: 1. Volume2 should be detached. Observed Results: 1. Volume detach failed. Additional Details: 1) This scenario was performed on Devstack (Newton) setup. 3) n-cpu logs are attached n-cpu Traces: 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall Traceback (most recent call last): 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 136, in _run_loop 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall result = func(*self.args, **self.kw) 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 377, in _func 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall return self._sleep_time 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall self.force_reraise() 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall six.reraise(self.type_, self.value, self.tb) 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 356, in _func 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall result = f(*args, **kwargs) 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall File "/opt/stack/nova/nova/virt/libvirt/guest.py", line 394, in _do_wait_and_retry_detach 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall reason=reason) 2017-01-19 03:10:56.006 TRACE oslo.service.loopingcall DeviceDetachFailed: Device detach failed for vdb: Unable to detach from guest transient domain. To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1657718/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

