yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08804
[Bug 1252177] Re: The argument availability_zone of create aggregate should be optional
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => icehouse-2
--
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/1252177
Title:
The argument availability_zone of create aggregate should be optional
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
We create aggregate without availability-zone by nova-client, the log as below:
REQ: curl -i http://cloudcontroller:8774/v2/5fbc0de7642a47729bfdfa7cb17166e2/os-aggregates -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIILpgYJKoZIhvcNAQcCoIILlzCCC5MCAQExCTAHBgUrDgMCGjCCCn8GCSqGSIb3DQEHAaCCCnAEggpseyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0xMS0xOFQwNzo0OToxNS4xMDU4MjQiLCAiZXhwaXJlcyI6ICIyMDEzLTExLTE5VDA3OjQ5OjE1WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiNWZiYzBkZTc2NDJhNDc3MjliZmRmYTdjYjE3MTY2ZTIiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovL2Nsb3VkY29udHJvbGxlcjo4Nzc0L3YyLzVmYmMwZGU3NjQyYTQ3NzI5YmZkZmE3Y2IxNzE2NmUyIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovL2Nsb3VkY29udHJvbGxlcjo4Nzc0L3YyLzVmYmM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XxHlRRZaM816GnlimgnVNTxYtft7ey1eUXGq2ZpA-q49AKPuYASDXlk-pobOFy6Vg+f-+CqA-+xdRJcrt4GO-054a4GLiDopPV9wHMn4o5UYIARJbKUydoqgBRxRbAfWg==" -d '{"aggregate": {"name": "name1", "availability_zone": null}}'
RESP: [200] CaseInsensitiveDict({'date': 'Mon, 18 Nov 2013 07:49:15 GMT', 'content-length': '170', 'content-type': 'application/json', 'x-compute-request-id': 'req-f6b11fd5-0602-43d4-b878-a335eb9ff401'})
RESP BODY: {"aggregate": {"name": "name1", "availability_zone": null, "deleted": false, "created_at": "2013-11-18T07:49:15.000000", "updated_at": null, "deleted_at": null, "id": 1}}
It means we can aggregate without availability-zone, but we still need create with argument "availability_zone": null.
We can make it optional in the request.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1252177/+subscriptions