provider/openstack: AttachVolumes does not observe asynchronous attachment failures

Bug #1477010 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Invalid
Low
Unassigned

Bug Description

I don't have any more details at the moment, but I did the following:
   juju add-machine --disks cinder,1G
on Canonicstack (lcy01), and the server and volume were both created, but the volume was never attached. Last logs in machine-0.log indicated that the storage provisioner thought it had no outstanding attachments to make. Earlier logs indicated attaching failed due to the instance still being provisioned.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

Seems to be a problem with OpenStack/Canonistack, actually. I repro'd with some logs and found that it does eventually issue a successful attachment request... but the attachment (asynchronously) fails.

I tried it manually (using "nova volume-attach"), and then observed the volume status going available -> attaching -> available.

I think for the short term the best we can do is wait until the attachment is made (or not) before returning from AttachVolumes. In the longer term, we may need to make the provider API asynchronous.

Andrew Wilkins (axwalk)
summary: - provider/openstack: volumes may not attach if instance takes a long time
- to provision
+ provider/openstack: AttachVolumes does not observe asynchronous
+ attachment failures
Andrew Wilkins (axwalk)
Changed in juju-core:
assignee: nobody → Andrew Wilkins (axwalk)
Revision history for this message
Andrew Wilkins (axwalk) wrote :

Interesting development: I logged a support case with STS, and had a reply saying that they were able to create and attach a volume in lcy01. The difference is that they used "nova volume-create" instead of "cinder create". Sure enough , that works for me too.

Not sure if we should be using the nova API or cinder API; my reading suggests cinder is preferable, but perhaps we should be using nova for older OpenStack installations?

Changed in juju-core:
milestone: 1.25.1 → 1.26.0
Changed in juju-core:
milestone: 1.26.0 → 2.0-beta5
Changed in juju-core:
milestone: 2.0-beta5 → 2.0-beta4
Revision history for this message
Andrew Wilkins (axwalk) wrote :

The support case is still being "monitored". IOW, nobody's doing anything except for noting that nobody else is doing anything with it. I'll untarget this for now, under the assumption that this is a peculiarity with lcy01. We've not heard of any similar reports.

Changed in juju-core:
assignee: Andrew Wilkins (axwalk) → nobody
milestone: 2.0-beta4 → none
importance: High → Medium
importance: Medium → Low
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

I would assert that this is a peculiarity with icy01 as it's a very very old openstack.

@anyone Feel free to reopen it if you find it actually affects a newer cloud.

Changed in juju-core:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.