Wrong description of "attach volume" API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Medium
|
Sripriya |
Bug Description
Current api-site explains "attach volume" API like
URL: /v2.1/
METHOD: POST
BODY: {
"attach": {
[..]
}
}
but technically, the API is
URL: /v2.1/
BODY: {
"volumeAtt
"volumeId": "15e59938-
"device": "/dev/sda2"
}
}
like Tempest tests:
tempest/
84 self.attachment = self.servers_
85 self.server['id'],
86 volumeId=
87 device='/dev/%s' % self.device)
tempest_
306 def attach_volume(self, server_id, **kwargs):
307 """Attaches a volume to a server instance."""
308 post_body = json.dumps(
309 resp, body = self.post(
310 post_body)
311 body = json.loads(body)
312 self.validate_
313 return rest_client.
Changed in openstack-api-site: | |
assignee: | nobody → Sripriya (sseetha) |
Thanks for investigating the Tempest tests.