Reviewed: https://review.openstack.org/365270 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2ad6aa911640f506b884d7142a6d4df93059e41b Submitter: Jenkins Branch: master
commit 2ad6aa911640f506b884d7142a6d4df93059e41b Author: tamilhce <tamil...@gmail.com> Date: Sat Sep 3 16:04:38 2016 +0000 fixing block_device_mapping_v2 data_type 'block_device_mapping_v2' should be an list type Closes-Bug: #1619833 Change-Id: Id7fa0e1dc2cff6438e82ad83b2087f67e0fa628b ** Changed in: nova Status: In Progress => Fix Released -- 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): Fix Released 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp