yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00866
[Bug 1087165] Re: Create server API accepts invalid device name in bdm
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => grizzly-3
--
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/1087165
Title:
Create server API accepts invalid device name in bdm
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Branch: master
Steps to repro:
1. Boot a new instance from volume, specifying an incorrect device name.For example, following JSON request body containing a space in the device name:
{"server": {"name": "ins001", "imageRef":
"f29a46e1-77f9-4f59-9003-cb723a4c09db", "block_device_mapping":
[{"volume_size": "1", "volume_id":
"0aeb1092-9946-4a91-9c17-af3cf4b24dc4", "delete_on_termination": "0",
"device_name": "vd a"}], "flavorRef": "1", "max_count": 1,
"min_count": 1}}
2. Monitor the newly spawned instance status.
Expected Behavior:
Nova API should return a 400 Bad Request response (since device name is invalid i.e. in this case contains a space).
Actual Behavior:
Nova API returns a 202 Accepted and the instance creation fails.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1087165/+subscriptions