In v2.1, os-hypervisors/servers API returns empty servers list in
case where hypervisors does not have any servers.
But this is not case with v2 API. v2 API does not put 'servers' field
in response if it is empty.
v2.1 APIs should be same as v2 in all cases/scenarios.
This is bug fix so not putting as microversions, its just a change to
the v2.1 code so it is equivalent to v2. If later needed then, this can
be reverted back as current ways via microversion.
This was no best test coverage to catch this kind of issue.
This was caught while merging the v2 and v2.1 tests
- I5ddf3c54dd80a67f71762769d6130db41e772b01
Reviewed: https:/ /review. openstack. org/167100 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7f5462777b3 2901adfe7f302e7 161cd682eb2682
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7f5462777b32901 adfe7f302e7161c d682eb2682
Author: ghanshyam <email address hidden>
Date: Tue Mar 24 14:33:01 2015 +0900
Fix v2.1 hypervisor servers to return empty list
In v2.1, os-hypervisors/ servers API returns empty servers list in
case where hypervisors does not have any servers.
But this is not case with v2 API. v2 API does not put 'servers' field
in response if it is empty.
v2.1 APIs should be same as v2 in all cases/scenarios.
This is bug fix so not putting as microversions, its just a change to
the v2.1 code so it is equivalent to v2. If later needed then, this can
be reverted back as current ways via microversion.
This was no best test coverage to catch this kind of issue. 7f71762769d6130 db41e772b01
This was caught while merging the v2 and v2.1 tests
- I5ddf3c54dd80a6
Change-Id: I32e5cde65baeca 71ec06b814b7db7 aa7469eac64
Closes-Bug: #1435668