On 7/26/2017 12:24 AM, [email protected] wrote:
Hello All,
This is follow up mail on my y'days mail regarding bug
_https://bugs.launchpad.net/python-novaclient/+bug/1667794_
It looks like all the cli commands that are related to
http://10.141.67.190:8774/v2.1/os-hypervisors/wipro/servers api
are expecting exact match.
Commands which are affected if we change
http://10.141.67.190:8774/v2.1/os-hypervisors/wipro/servers api
from pattern match to exact match are as below :
It’s clearly seen that these commands expect exact match only.

How is this clear? The help on the --host parameter to the 'nova hypervisor-servers' command says:

"The hypervisor hostname (or pattern) to search for."

Hence, I am planning to correct/change http://10.141.67.190:8774/v2.1/os-hypervisors/wipro/servers api
to match hostname as exact match “NOT” as a pattern.

This is basically already done for you in microversion 2.53:

https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id48

If you need to list hypervisors and get the servers hosted on those hypervisors in the response, you can do that with the "with_servers" query parameter on these APIs:

GET /os-hypervisors?with_servers=True
GET /os-hypervisors/detail?with_servers=True

The /servers and /search routes are deprecated in the 2.53 microversion, meaning they won't work with microversion >= 2.53, you'll get a 404 response.

The novaclient change for 2.53 is here:

https://review.openstack.org/#/c/485435/

Given this, what else do you need? Please be clear about what your use case is and how it is not solved using the 2.53 microversion. There may need to be changes to the CLI but let's separate that concern from the REST API changes.

--

Thanks,

Matt

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to