Commit Graph

14 Commits

Author SHA1 Message Date
Andrey Kurilin 0a60aae852 Rename v1_1 to v2
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
2015-02-04 17:40:46 +02:00
melanie witt 9ce03a98eb fix host resource repr to use 'host' attribute
This change fixes an AttributeError raised when attempting to
represent a host resource as a string.

Change-Id: I33369b20ed7f5219c3b507107b8f3a37b46eacee
Closes-Bug: #1327005
2014-07-28 18:54:01 +00:00
liuan 73a0e7298a change 'Host' object's 'host' attribute to 'host_name'
The function __repr__ of Host class which is located in hosts.py try to
access 'host' attribute, source code is "self.host",But in fact, Host object
don't has this attribute, it should be 'host_name'! We can find this attribute
from nova/api/openstack/compute/contrib/hosts.py file.

So I simply change 'self.host' to 'self.host_name'.

Change-Id: Ie76ba04da7592a596ab728fec981e9a1dbcc6a5f
Fixes: bug 1210043
2013-08-09 13:13:25 +08:00
Sumanth Nagadavalli 7fdb52ac74 Fixing host-action on V2
Changed host-actions to GET from POST for reboot, startup
and shutdown, as per nova-api reference documentation.

Change-Id: I863b75960b2e427fd9384a336727132ca3c130c6
Fixes: bug #1206425
2013-07-30 15:09:09 +05:30
Dirk Mueller af7ca70e3e Fix and enable gating on H402
End one-line docstrings with punctuation.
Change them to command style where necessary.

Change-Id: I8ff689c3a2f20d489286f80112c6dc95c97f2f31
2013-07-17 15:44:05 +02:00
Alessio Ababilov c9fc9b5b8f Make ManagerWithFind abstract and fix its descendants
ManagerWithFind requires list() method in its descendants.
Make it abstract and fix its improper descendants that do
not implement list() (SecurityGroupRuleManager and many others).

Fixes: bug #1180393
Change-Id: Ic8b466a57554018092c31c6d6b3ea62f181d7000
2013-05-15 21:47:05 +03:00
Davanum Srinivas c5b579926f Fix Copyright Headers from LLC to Foundation
follow the lead from nova and oslo projects

Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
2013-03-13 20:12:23 -04:00
Hans Lindgren 65b55d8f9b Revert API changes in "Unify Manager._update behaviour"
This revert some of commit 6307310466,
specifically the changes made to the API since those changes were
never merged in Nova.

Resolves bug 1145768.

Change-Id: I8f83c5a33cfed0c3a659f5221b8b2e730ca9463f
2013-03-12 10:32:42 +01:00
Alessio Ababilov b5f3307e80 Update hosts API action calls (startup etc.)
These calls are now implemented as normal
POST os-hosts/{host_name}/action requests.

Change-Id: I8cd401e3b4e552c6787d1f984041ad3c345e6eca
2013-01-11 23:33:24 +04:00
Alessio Ababilov 6307310466 Unify Manager._update behaviour
Now _update call usually returns an instance of self.resource_class.
This simplifies the code and makes novaclient closer to keystoneclient.

Also, update hosts and services API according to changes on nova.
(If50a6b6e20f9b3fe66d486bb9b15d3eb4b62daf9).

Change-Id: I447e49e5fce0afba8a9c1a5df6dfa7200cc93e18
2012-12-23 14:50:38 +02:00
ivan-zhu 51faac4a09 Add ability of nova client to display availability zones when listing hosts
Implements the one workitem of blueprint apis-for-nova-manage

Add an optional parameter for nova host-list
Now, we can use the command: nova host-list --zone nova
It will return the hosts that availability_zone=nova.
This patch depends on https://review.openstack.org/#/c/14741/

Change-Id: Ide41e75e7d1471e23d19f51e63a8d9951337a411
2012-11-02 00:25:51 +08:00
Joe Gordon 888cfeb2c3 Add host-list command
Rename describe_resource => host-describe

Change-Id: Ic3548c3404ccbb1abd2ea9f096e3df8950d43e89
2012-06-27 10:05:33 -07:00
Armando Migliaccio ddc1b2c083 bug 932408: python-novaclient miss OSAPI host operations
add client bindings for host-related actions.

Change-Id: I98b3c11ec189029bafe73f499070ab132de640af
2012-02-17 18:37:10 +00:00
masumotok 029f6fcbe5 Adding describe-resource subcommand
Change-Id: I1acabee03be6bae194788176271acd9ae0e74bb3
2012-02-03 13:31:35 +09:00