yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #39724
[Bug 1503522] [NEW] multiple create server response only has a single server's info
Public bug reported:
when creating multiple server with min_count/max_count, the response
only has one server's info, as follow:
{
"server": {
"id": "11f8d434-cee0-45e2-8f24-d9b13403af16",
"links": [
{
"href": "http://localhost:8774/v2/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
"rel": "self"
},
{
"href": "http://localhost:8774/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
"rel": "bookmark"
}
],
"adminPass": "jFYiGXPSU483"
}
}
}
This may be a headache if someone wants to do something for every newly
created server, and I think it is also a good design to get what you
request, the better response may be like:
{
"servers": []
}
or
[
{"server": {}}
{"server": {}}
]
any ideas?
** Affects: nova
Importance: Undecided
Status: New
** Description changed:
when creating multiple server with min_count/max_count, the response
only has one server's info, as follow:
{
- "server": {
- "id": "11f8d434-cee0-45e2-8f24-d9b13403af16",
- "links": [
- {
- "href": "http://localhost:8774/v2/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
- "rel": "self"
- },
- {
- "href": "http://localhost:8774/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
- "rel": "bookmark"
- }
- ],
- "adminPass": "jFYiGXPSU483"
- }
- }
+ "server": {
+ "id": "11f8d434-cee0-45e2-8f24-d9b13403af16",
+ "links": [
+ {
+ "href": "http://localhost:8774/v2/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
+ "rel": "self"
+ },
+ {
+ "href": "http://localhost:8774/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
+ "rel": "bookmark"
+ }
+ ],
+ "adminPass": "jFYiGXPSU483"
+ }
+ }
}
This may be a headache if someone wants to do something for every newly
- created server, and I think it is also a good design to get what you
- request.
+ created server, and I think it is also a good design to get what you
+ request, the better response may be like:
+
+ {
+ "servers": []
+ }
+
+ or
+
+ [
+ {"server": {}}
+ {"server": {}}
+ ]
** Description changed:
when creating multiple server with min_count/max_count, the response
only has one server's info, as follow:
{
"server": {
"id": "11f8d434-cee0-45e2-8f24-d9b13403af16",
"links": [
{
"href": "http://localhost:8774/v2/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
"rel": "self"
},
{
"href": "http://localhost:8774/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
"rel": "bookmark"
}
],
"adminPass": "jFYiGXPSU483"
}
}
}
This may be a headache if someone wants to do something for every newly
created server, and I think it is also a good design to get what you
request, the better response may be like:
{
- "servers": []
+ "servers": []
}
or
[
- {"server": {}}
- {"server": {}}
+ {"server": {}}
+ {"server": {}}
]
+
+ any ideas?
** Summary changed:
- multiple create server response only have one server's info
+ multiple create server response only has single server's info
--
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/1503522
Title:
multiple create server response only has a single server's info
Status in OpenStack Compute (nova):
New
Bug description:
when creating multiple server with min_count/max_count, the response
only has one server's info, as follow:
{
"server": {
"id": "11f8d434-cee0-45e2-8f24-d9b13403af16",
"links": [
{
"href": "http://localhost:8774/v2/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
"rel": "self"
},
{
"href": "http://localhost:8774/ff2f74b28d274a3489a5cbb196cdd36c/servers/11f8d434-cee0-45e2-8f24-d9b13403af16",
"rel": "bookmark"
}
],
"adminPass": "jFYiGXPSU483"
}
}
}
This may be a headache if someone wants to do something for every
newly created server, and I think it is also a good design to get what
you request, the better response may be like:
{
"servers": []
}
or
[
{"server": {}}
{"server": {}}
]
any ideas?
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1503522/+subscriptions
Follow ups