summaryrefslogtreecommitdiff
path: root/novaclient/v2/hypervisors.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for microversion v2.8817.4.0Stephen Finucane2021-03-021-2/+26
| | | | | | | | | | | The key change here is that the 'GET /os-hypervisors/{id}/uptime' API will now returns a HTTP 404 starting in 2.88. The 'GET /os-hypervisors/{id}' will instead now include an 'uptime' value. The 'novaclient.v2.hypervisors.HypervisorManager.uptime' method is updated to handle this. Change-Id: Ib99fbd820a586c14527ff64b319df0b7a44e1b8b Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Remove sixStephen Finucane2020-02-211-5/+1
| | | | | | | | Mostly a find-replace job. Let's do this now so we don't have to carry it for the next decade. Change-Id: I7bef9fb7c6895f746cee1aca6522786f38b9857c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Allow searching for hypervisors and getting back detailsMatt Riedemann2019-05-181-3/+12
| | | | | | | | | | | | | | The 2.53 microversion allows listing hypervisors with details and filtering on a hypervisor_hostname substring pattern match. This makes the python API binding HypervisorManager.search method allow that as well by adding a new 'detailed' boolean kwarg which defaults to False for backward compatibility for the /search and /servers routes before 2.53, but allows searching and getting detailed results back as well. Change-Id: I81fa4520af3cc7f1298c262f4fdc4e15fbc6d7ba
* Optimize limit option docs string description for novaclientchenke2019-05-171-0/+3
| | | | Change-Id: I85ee36b0447869771782d1059957a46447940b59
* Handle unicode multi-byte charactersasmita singh2019-02-221-0/+4
| | | | | | | | | | | | | | If you pass unicode multi-byte character to 'hypervisor-list' and 'instance-usage-audit-log' commands using --matching and --before options respectively, it returns keyerror. This patch fixes these issues by encoding the host name and date passed to the --matching and --before options respectively. Closes-Bug: #1804156 Change-Id: I9587af7e0fdd921fcaebe3e5c6c5bb40a9393e01
* Microversion 2.53 - services and hypervisors using UUIDsMatt Riedemann2017-07-261-6/+29
| | | | | | | | | | | | | | Adds support for the 2.53 microversion which changes the os-services and os-hypervisors APIs to use a UUID for the ID value on the resource. Also, the PUT and GET API methods have changed a bit for both resources in this microversion, so the pythong API bindings and command lines have been adjusted accordingly. Part of blueprint service-hyper-uuid-in-api Change-Id: Ic721143cc154d91e74a8a9dd2c1e991045c94305
* Remove 1.1 extension commentjichenjc2017-04-271-1/+1
| | | | | | | | According to recent nova changes, extension is deprecated and 1.1 is also deprecated, so to avoid confusion, remove those comments in the code Change-Id: Idc78af2151a0fff159c9b32595ed72a04808b7ee
* Fix the description of hypervisors.listlicanwei2016-11-181-0/+1
| | | | | | | | | trivial docstring fix http://docs.openstack.org/developer/python-novaclient /ref/v2/hypervisors.html Change-Id: I1b7a3eed1e809fde80dd49fd617931ca4e2fc072
* Add support for microversion 2.33Andrey Volkov2016-08-031-4/+27
| | | | | | | | This change allows novaclient to get several hypervisors with the help of new optional parameters 'limit' and 'marker' which were added to hipervisor-list command. Change-Id: Ib723fb1dc1cd57b6f796bb93e0dd8ddf2da4b2a0
* hypervisor command can't use cell format id to show hypervisorChung Chih, Hung2015-07-201-0/+1
| | | | | | | | | | | | | | | | | | | This bug was occurred in cell mode. In cell mode, compute node's id was not identified by integer type. It was formatted with "path!to!cell@ID". Therefore we can't using the id of hypervisor-list output. For example, > nova hypervisor-list +----------------+--------------------------+-------+---------+ | ID | Hypervisor hostname | State | Status | +----------------+--------------------------+-------+---------+ | region!child@1 | vagrant-ubuntu-trusty-64 | up | enabled | +----------------+--------------------------+-------+---------+ Change-Id: Iba0cc1993f67351b11d034f372d7a5b98dc017f0 Closes-Bug: 1475973
* Rename v1_1 to v2Andrey Kurilin2015-02-041-0/+92
Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3. Since future development(microversioning) will be done across V2, implementation should be done in appropriate module(to prevent misleading). Despite the fact that implementation for all versions are equal, discover method for contrib path worked only for v1.1. This patch fixes this bug and modifies shell tests to check all versions. Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b