← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1742204] Re: intermittent attach failures due to libvirt locking error

 

multiattach isn't supported in the libvirt driver unless you're running
with qemu<2.10 or libvirt>=3.10, see:

https://review.openstack.org/#/c/531386/

https://review.openstack.org/#/c/266633/10/tools/fixup_stuff.sh

If you're running with master branch devstack on ubuntu xenial, you're
getting the Pike UCA by default which gives you qemu 2.10 and libvirt
3.6 which gives that write lock error.

** Changed in: nova
       Status: New => Invalid

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

Title:
  intermittent attach failures due to libvirt locking error

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  While attempting nova volume-attach on current devstack deployment I'm getting intermittent failures during the attach operation:
      http://paste.openstack.org/show/641383/

  Each time I've encountered this I've been able to simply rerun the
  command and it completes succesfully.

  To reproduce:
  Deploy devstack with cinder multi-attach patches (https://review.openstack.org/#/c/531569/)
  Create a multiattach volume-type:
      cinder type-create multiattach 
      cinder type-key multiattach set multiattach='<is> True'
  Create two instances: 
      nova boot --image <image-id> --flavor 1 i-1
      nova boot --image <image-id> --flavor 1 i-2
  Create a multiattach volume (cinder create --volume-type multiattach --name vol-1 1)
  Attach the volume to each instance:
      nova volume-attach <i-1> <vol-1>)
      nova volume-attach <i-2> <vol-1>)

  Sometimes this works, sometimes it doesn't.  It appears that the
  frequency of this failing is proportional to the length of time the
  Nova service has been up and running on the system but that might be
  nonsense.

  I've yet to encounter a case where running the second attach command
  again did not succeed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1742204/+subscriptions


References