2. spawn a VM from that image
nova boot TestVm --flavor m1.tiny --image <image-id> --nic net-id=<net-id>
3. create volume
cinder --os-volume-api-version 2 create --name TestVOL 1
4. attach volume to the VM
nova volume-attach <VM-id> <Volume-id>
5. detach volume from the VM
nova volume-detach <VM-id> <Volume-id>
Volume stays in 'detaching’ state for some time (~30 sec) and then gets back to 'in-use' state.
relevant nova-compute logs:
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall [-] Cannot retry nova.virt.libvirt.guest._do_wait_and_retry_detach upon suggested exception since retry count (7) reached max retry count (7).
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall [-] Dynamic interval looping call 'oslo_service.loopingcall._func' failed
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall Traceback (most recent call last):
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall File "/usr/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 113, in _run_loop
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall result = func(*self.args, **self.kw)
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall File "/usr/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 269, in _func
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall return self._sleep_time
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall six.reraise(self.type_, self.value, self.tb)
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall File "/usr/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 247, in _func
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall result = f(*args, **kwargs)
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line 326, in _do_wait_and_retry_detach
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall reason=reason)
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall DeviceDetachFailed: Device detach failed for vdb: Unable to detach from guest transient domain.)
2016-02-26 07:37:11.002 21387 ERROR oslo.service.loopingcall
2016-02-26 07:37:11.002 21387 ERROR nova.compute.manager [req-7944b96d-8d80-442e-a8c6-bf2148a34309 5c52fdfdec6f46f2960fdc2108b78c63 29a3255438bc49e7895968ff67c14682 - - -] [instance: 117d58ad-642c-475e-a4e0-8a91a9c0e864] Failed to detach volume 5b07c574-656b-40a4-9c7b-6dd4701235ca from /dev/vdb
Steps to reproduce:
1. create image:
glance --os-image- api-version 1 image-update <image-id> --location http:// releases. ubuntu. com/14. 04/ubuntu- 14.04.3- server- amd64.iso --disk-format qcow2 --container-format bare
This is important step, as the issue is not reproducible with TestVM image
2. spawn a VM from that image api-version 2 create --name TestVOL 1
nova boot TestVm --flavor m1.tiny --image <image-id> --nic net-id=<net-id>
3. create volume
cinder --os-volume-
4. attach volume to the VM
nova volume-attach <VM-id> <Volume-id>
5. detach volume from the VM
nova volume-detach <VM-id> <Volume-id>
Volume stays in 'detaching’ state for some time (~30 sec) and then gets back to 'in-use' state.
relevant nova-compute logs: loopingcall [-] Cannot retry nova.virt. libvirt. guest._ do_wait_ and_retry_ detach upon suggested exception since retry count (7) reached max retry count (7). loopingcall [-] Dynamic interval looping call 'oslo_service. loopingcall. _func' failed loopingcall Traceback (most recent call last): loopingcall File "/usr/lib/ python2. 7/dist- packages/ oslo_service/ loopingcall. py", line 113, in _run_loop loopingcall result = func(*self.args, **self.kw) loopingcall File "/usr/lib/ python2. 7/dist- packages/ oslo_service/ loopingcall. py", line 269, in _func loopingcall return self._sleep_time loopingcall File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 195, in __exit__ loopingcall six.reraise( self.type_ , self.value, self.tb) loopingcall File "/usr/lib/ python2. 7/dist- packages/ oslo_service/ loopingcall. py", line 247, in _func loopingcall result = f(*args, **kwargs) loopingcall File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ guest.py" , line 326, in _do_wait_ and_retry_ detach loopingcall reason=reason) loopingcall DeviceDetachFailed: Device detach failed for vdb: Unable to detach from guest transient domain.) loopingcall manager [req-7944b96d- 8d80-442e- a8c6-bf2148a343 09 5c52fdfdec6f46f 2960fdc2108b78c 63 29a3255438bc49e 7895968ff67c146 82 - - -] [instance: 117d58ad- 642c-475e- a4e0-8a91a9c0e8 64] Failed to detach volume 5b07c574- 656b-40a4- 9c7b-6dd4701235 ca from /dev/vdb
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR oslo.service.
2016-02-26 07:37:11.002 21387 ERROR nova.compute.
relevant libvirt logs:
2016-02-26 07:00:50.876+0000: 3927: error : qemuDomainDetac hDeviceConfig: 7045 : invalid argument: no target device vdb
VERSION: 9e395940c232911 ffb851899c1" fuelclient_ sha: "4f234669cfe88a 9406f4e438b1e1f 74f1ef484a5" e1436b86ac4567a b914bfb451b" nailgun- agent_sha: "b2bb466fd5bd92 da614cdbd819d69 99c510ebfb1" 4be8748492bae1d ec2fa89b446" cfb0b56b7e07497 ad86d1fdcd3" 95ff34eadc29552 f4235fa6c52" 99d931f926e5c95 12e2b442749" 4b707c081d128cb 7eea611474f" dde5c01d4f89055 66978e5d906" checker_ sha: "a43cf96cd9532f 10794dce736350b f5bed350e9d" f69759e97e42f9b 97dfc87e85b" 82d56d0ce814345 8be67c53434"
feature_groups:
- mirantis
production: "docker"
release: "8.0"
api: "1.0"
build_number: "569"
build_id: "569"
fuel-nailgun_sha: "558ca91a854cf2
python-
fuel-agent_sha: "658be72c4b42d3
fuel-
astute_sha: "b81577a5b7857c
fuel-library_sha: "33634ec27be77e
fuel-ostf_sha: "3bc76a63a9e7d1
fuel-mirror_sha: "fb45b80d7bee58
fuelmenu_sha: "78ffc73065a967
shotgun_sha: "63645dea384a37
network-
fuel-upgrade_sha: "616a7490ec7199
fuelmain_sha: "d605bcbabf3153