Comment 0 for bug 1550180

Revision history for this message
Olga Klochkova (oklochkova) wrote :

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
 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

relevant libvirt logs:

2016-02-26 07:00:50.876+0000: 3927: error : qemuDomainDetachDeviceConfig:7045 : invalid argument: no target device vdb

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "569"
  build_id: "569"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "33634ec27be77ecfb0b56b7e07497ad86d1fdcd3"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"