Commit Graph

10 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
gtt116 91caad97d3 Add service-delete subcommand to delete a service
In nova https://review.openstack.org/#/c/39998/ expose an API to delete
a service. Both in V1.1 and V3.

This patch make novaclient support it.

Change-Id: I4aaabc866b464c046b46eda68734f37223c6d6a0
Implements: blueprint support-delete-service
2014-04-08 20:04:54 +08:00
Masayuki Igawa 5e3a3a193b Fix Serivce class AttributeError
When we str(service_object), an AttributeError occurred like this:
========================
  File "/opt/stack/python-novaclient/novaclient/v1_1/services.py", line
24, in __repr__
    return "<Service: %s>" % self.service
  File
"/opt/stack/python-novaclient/novaclient/openstack/common/apiclient/base.py",
 line 463, in __getattr__
    raise AttributeError(k)
AttributeError: service
========================
This commit fixes it.

Change-Id: I496d522591273bf1b1e7dbadf19afaf5e64e41e3
Closes-Bug: #1276408
2014-02-05 13:31:33 +09:00
Sahid Orentino Ferdjaoui 0ddcf11732 Removes vim configuration headers
- Removes vim headers: It's not needed to set tabstop tons of times,
   this can be done by setting vimrc.
 - I did not update files in common/* and install_venv_common.py because
   these files are sync with oslo.

Note:
  http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html

Closes-Bug: #1265474
Change-Id: Ia09dc2c908187a756bf55eaba74655484304517d
2014-01-08 08:13:46 +00:00
Chris Yeoh 94b40dd2f8 Adds services support for Nova V3 API
Adds support and tests for the os-services extension
for the Nova V3 API

Partially implements blueprint v3-api

Change-Id: Ic64e465e24a6e840c567677d4f2ea9d63b742ccd
2013-12-19 23:37:23 +10: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
Sulochan Acharya d095b8a335 CLI for disable service reason
Adds cli option to allow users to give reason
for service-disable. Also adds disabled reason
as a column in service list, so any disabled service
can be seen with reason.

A recent nova change that allows disable-log-reason
allows users to provide reason for disabling service.
This just adds the cli option for the method.

Blueprint record-reason-for-disabling-service

Change-Id: If263788c34279d6b4c568d5e0320448d2ff67a12
2013-07-03 13:14:36 -05:00
Kurt Taylor 20ede68ede Fix IBM copyright strings
Update IBM copyright strings to one consistant format

Change-Id: Iabd059132cc3092b6dbbaa6c1f19fb93acee0a30
2013-04-02 18:37:27 -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 d037172b70 Add nova client support for nova-manage service command
Implements the one workitem of blueprint apis-for-nova-manage

This add three CLI (service-list/sevice-enable/service-diabel) in
nova-client.

So we can use:
"nova service-list" like "nova-manage service list" with two optional
parameters. Show a list of all running services. Filter by host and
service name.

"nova service-enable hostname servicename" like "nova-manage service
enable hostname servicename". It will enable the service specified by
hostname and serviename.

"nova service-disable hostname servicename" like "nova-manage service
diable hostname servicename". It will disable the service specified by
hostname and serviename.

This patch depends on https://review.openstack.org/#/c/15206/

Change-Id: I01d4cee4ef95c1783f6181f8b840244e748387e5
2012-11-08 18:13:12 +08:00