Wait for all success after nova boot with poll
Bug #1557902 reported by
tobe
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
In Progress
|
Low
|
Unassigned |
Bug Description
Now we can use nova boot with poll parameter for one instance. But if we want to boot multiple instances, it return whenever the first instance succeeds or fails.
It would be much better for testing to return the result of all instance when boot with max and min parameters.
Changed in nova: | |
assignee: | nobody → Prathyusha (seelam-prathyusha) |
Changed in python-novaclient: | |
assignee: | Prathyusha (seelam-prathyusha) → Monisha (monisha-karise) |
Changed in python-novaclient: | |
assignee: | Monisha (monisha-karise) → nobody |
To post a comment you must log in.
Confirmed:
The novaclient uses only one instance to show the progress [1] and
doesn't consider the real number of created instances. AFAIK the REST
API to create instances will always return the first instance and not
a full list of all created instances. Blueprints to change that [2]
didn't get implemented. There was a bug about that too (within the
last 12 months) but I don't find it anymore. IIRC we accept this
behavior, but don't pin me down on this.
However, there is the REST API request parameter "return_ reservation_ id"
which could maybe used in the python-novaclient to list all instances
matching this reservation_id [3]. And then the progress can be polled
per instance. If this would make the testing more reliable it's worth
a shot IMO.
References: /github. com/openstack/ python- novaclient/ blob/b80d8cb6e6 cd1e86c7dc3c99c 3e7d92641c00097 /novaclient/ v2/shell. py#L591- L592 /blueprints. launchpad. net/nova/ +spec/return- all-servers- during- multiple- create developer. openstack. org/api- ref-compute- v2.1.html# os-multiple- create- v2.1
[1] novaclient; Mitaka; create; poll for one instance: https:/
[2] https:/
[3] nova api-ref; V2.1; create multiple instances: http://