Cinder API v2 - os-attach fails without mountpoint specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Matt Riedemann |
Bug Description
URL = http://
{"os-attach" : {"instance_uuid" : "instance-id"}}
HTTP Status code = 500
Response text = {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
This works when specifying a mount point. Here are the logs from cinder-api.log:
./api.log:
./api.log:
./api.log:
./api.log:
Changed in cinder: | |
importance: | Undecided → Low |
assignee: | nobody → Mitsuhiro Tanino (mitsuhiro-tanino) |
In the API reference guide(http:// developer. openstack. org/api- ref-blockstorag e-v2.html), the mountpoint is a optional parameter, but contrib/ volume_ actions. py expects mountpoint is included in the request body.
Seems mountpoint is used as only debug logging purpose at attach_volume in manager.py, so we may make the "mountpoint" as an optional.