yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #55917
[Bug 1619833] [NEW] api-ref for create server block_device_mapping_v2 is wrong type
Public bug reported:
The current api-ref for create server shows the
'block_device_mapping_v2' request parameter as:
"block_device_mapping_v2": { "boot_index": "0", "uuid": "ac408821-c95a-
448f-9292-73986c790911", "source_type": "image", "volume_size": "25",
"destination_type": "volume", "delete_on_termination": true }
but specifying it this way raises an error:
DEBUG [nova.api.openstack.wsgi] Returning 400 to user: Invalid input for
field/attribute block_device_mapping_v2. Value: {u'uuid':
u'76fa36fc-c930-4bf3-8c8a-ea2a2420deb6', u'volume_size': 8192,
u'boot_index': 0, u'delete_on_termination': True, u'destination_type':
u'volume', u'source_type': u'image'}. {u'uuid': u'76fa36fc-c930-4bf3
-8c8a-ea2a2420deb6', u'volume_size': 8192, u'boot_index': 0,
u'delete_on_termination': True, u'destination_type': u'volume',
u'source_type': u'image'} is not of type 'array'
so it should be more like:
"block_device_mapping_v2": [{ "boot_index": "0", "uuid": "ac408821-c95a-
448f-9292-73986c790911", "source_type": "image", "volume_size": "25",
"destination_type": "volume", "delete_on_termination": true }]
** Affects: nova
Importance: Undecided
Status: New
** Tags: api-ref
--
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/1619833
Title:
api-ref for create server block_device_mapping_v2 is wrong type
Status in OpenStack Compute (nova):
New
Bug description:
The current api-ref for create server shows the
'block_device_mapping_v2' request parameter as:
"block_device_mapping_v2": { "boot_index": "0", "uuid": "ac408821
-c95a-448f-9292-73986c790911", "source_type": "image", "volume_size":
"25", "destination_type": "volume", "delete_on_termination": true }
but specifying it this way raises an error:
DEBUG [nova.api.openstack.wsgi] Returning 400 to user: Invalid input
for field/attribute block_device_mapping_v2. Value: {u'uuid':
u'76fa36fc-c930-4bf3-8c8a-ea2a2420deb6', u'volume_size': 8192,
u'boot_index': 0, u'delete_on_termination': True, u'destination_type':
u'volume', u'source_type': u'image'}. {u'uuid': u'76fa36fc-c930-4bf3
-8c8a-ea2a2420deb6', u'volume_size': 8192, u'boot_index': 0,
u'delete_on_termination': True, u'destination_type': u'volume',
u'source_type': u'image'} is not of type 'array'
so it should be more like:
"block_device_mapping_v2": [{ "boot_index": "0", "uuid": "ac408821
-c95a-448f-9292-73986c790911", "source_type": "image", "volume_size":
"25", "destination_type": "volume", "delete_on_termination": true }]
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1619833/+subscriptions
Follow ups