yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #11814
[Bug 1294556] [NEW] os-aggregates sample files miss
Public bug reported:
os-aggregates' sample files are different in V2 and V3.
~$ vi /opt/stack/nova/doc/api_samples/os-aggregates/aggregates-list-get-
resp.json
1 {
2 "aggregates": [
3 {
4 "availability_zone": "nova",
5 "created_at": "2012-11-16T06:22:23.361359",
6 "deleted": false,★
7 "deleted_at": null,
8 "hosts": [],
9 "id": 1,
10 "metadata": {
11 "availability_zone": "nova"
12 },
13 "name": "name",
14 "updated_at": null
15 }
16 ]
17 }
~$ vi /opt/stack/nova/doc/v3/api_samples/os-aggregates/aggregates-list-
get-resp.json
1 {
2 "aggregates": [
3 {
4 "availability_zone": "nova",
5 "created_at": "2013-08-18T12:17:56.856455",
6 "deleted": 0,★
7 "deleted_at": null,
8 "hosts": [],
9 "id": 1,
10 "metadata": {
11 "availability_zone": "nova"
12 },
13 "name": "name",
14 "updated_at": null
15 }
16 ]
17 }
The 'deleted' element is 'false' in V2 but '0' in V3, and it's the same
with aggregates-get-resp.json
I also found in the response from the API, 'deleted' is 'false'
curl -i 'http://10.21.42.98:8774/v3/os-aggregates' -X GET -H "X-Auth-
Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept:
application/json" -H "X-Auth-Token: MIISPQYJKoZIhvcNA...
RESP BODY: {"aggregates": [{"name": "agg1", "availability_zone": "nova",
★"deleted": false,★ "created_at": "2014-03-18T19:38:33.000000",
"updated_at": null, "hosts": [], "deleted_at": null, "id": 1,
"metadata": {"availability_zone": "nova"}}, {"name": "agg2",
"availability_zone": null, "deleted": false, "created_at":
"2014-03-18T19:41:06.000000", "updated_at": null, "hosts": [],
"deleted_at": null, "id": 2, "metadata": {}}]}
So i think this is a bug of V3 sample file.
** Affects: nova
Importance: Undecided
Assignee: Haiwei Xu (xu-haiwei)
Status: New
** Changed in: nova
Assignee: (unassigned) => Haiwei Xu (xu-haiwei)
--
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/1294556
Title:
os-aggregates sample files miss
Status in OpenStack Compute (Nova):
New
Bug description:
os-aggregates' sample files are different in V2 and V3.
~$ vi /opt/stack/nova/doc/api_samples/os-aggregates/aggregates-list-
get-resp.json
1 {
2 "aggregates": [
3 {
4 "availability_zone": "nova",
5 "created_at": "2012-11-16T06:22:23.361359",
6 "deleted": false,★
7 "deleted_at": null,
8 "hosts": [],
9 "id": 1,
10 "metadata": {
11 "availability_zone": "nova"
12 },
13 "name": "name",
14 "updated_at": null
15 }
16 ]
17 }
~$ vi /opt/stack/nova/doc/v3/api_samples/os-aggregates/aggregates-
list-get-resp.json
1 {
2 "aggregates": [
3 {
4 "availability_zone": "nova",
5 "created_at": "2013-08-18T12:17:56.856455",
6 "deleted": 0,★
7 "deleted_at": null,
8 "hosts": [],
9 "id": 1,
10 "metadata": {
11 "availability_zone": "nova"
12 },
13 "name": "name",
14 "updated_at": null
15 }
16 ]
17 }
The 'deleted' element is 'false' in V2 but '0' in V3, and it's the
same with aggregates-get-resp.json
I also found in the response from the API, 'deleted' is 'false'
curl -i 'http://10.21.42.98:8774/v3/os-aggregates' -X GET -H "X-Auth-
Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept:
application/json" -H "X-Auth-Token: MIISPQYJKoZIhvcNA...
RESP BODY: {"aggregates": [{"name": "agg1", "availability_zone":
"nova", ★"deleted": false,★ "created_at":
"2014-03-18T19:38:33.000000", "updated_at": null, "hosts": [],
"deleted_at": null, "id": 1, "metadata": {"availability_zone":
"nova"}}, {"name": "agg2", "availability_zone": null, "deleted":
false, "created_at": "2014-03-18T19:41:06.000000", "updated_at": null,
"hosts": [], "deleted_at": null, "id": 2, "metadata": {}}]}
So i think this is a bug of V3 sample file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1294556/+subscriptions
Follow ups
References