cinder fails with badRequest... "Invalid input for field/attribute device"

Bug #1636648 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Andrew Wilkins

Bug Description

Reported by a user, Juju volumes are failing to attach in his OpenStack. The logs contain the following:

2016-10-25 13:04:57 DEBUG juju.worker.storageprovisioner volume_ops.go:172 failed to attach volume 7 to machine 29: failed to attach volume
caused by: request (http://192.168.0.24:8774/v2/8f4d995e639c442284908a6eada7c9ce/servers/c5e9b1aa-2ff1-4394-aa29-ec3d4de9f081/os-volume_attachments) returned unexpected status: 400; error info: {"badRequest": {"message": "Invalid input for field/attribute device. Value: . u'' does not match '(^/dev/x{0,1}[a-z]{0,1}d{0,1})([a-z]+)[0-9]*$'", "code": 400}}

We should be omitting the "device" field in os-volume-attachment requests.

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

See also lp:1492450

Andrew Wilkins (axwalk)
Changed in juju:
status: Triaged → In Progress
Andrew Wilkins (axwalk)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Andrew Wilkins (axwalk) wrote :

Apparently this is still happening, with Mitaka on MAAS.

Changed in juju:
status: Fix Released → Triaged
milestone: 2.0.1 → 2.0.2
Changed in juju:
importance: High → Critical
Revision history for this message
Andrew Wilkins (axwalk) wrote :
Revision history for this message
Andrew Wilkins (axwalk) wrote :
Changed in juju:
status: Triaged → In Progress
Andrew Wilkins (axwalk)
Changed in juju:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju:
status: Fix Committed → Fix Released
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.