2306 Commits

Author SHA1 Message Date
Jenkins
55351d0135 Merge "[microversions] Add support for 2.10" 2015-12-14 20:43:16 +00:00
OpenStack Proposal Bot
c6dd7c7ba9 Updated from global requirements
Change-Id: I810adfef5817fad05b840349473dee220cf2aec2
2015-12-11 15:25:55 +00:00
Jenkins
250c360262 Merge "[microversions] update test_versions with implemented versions" 2015-12-10 23:51:18 +00:00
Javeme
e919c9b792 remove the default arguments "[]"
remove the default arguments "[]" when the function is defined.

ref: http://docs.python-guide.org/en/latest/writing/gotchas/

Change-Id: I71ee8fbf5dec12d93bbed0e336124ad833014845
2015-12-09 20:59:48 +08:00
Jenkins
691e8d4f8b Merge "Add accessIPv4 and accessIPv6 when create server" 2015-12-09 04:39:50 +00:00
Jenkins
b7ade7ef5a Merge "Fix H404/405 violations in novaclient/v2/[a-f]" 2015-12-09 04:39:46 +00:00
Jenkins
d336385dd2 Merge "Fix H404/405 violations in novaclient/tests/*" 2015-12-09 04:31:28 +00:00
Jenkins
5d730143bc Merge "Help msg about libvirt always default device names" 2015-12-09 01:29:25 +00:00
OpenStack Proposal Bot
0022939038 Updated from global requirements
Change-Id: Ice2396d08b3abf254f08949a072a31fa349652be
2015-12-08 01:42:00 +00:00
Andrey Kurilin
65658ed6fc [microversions] Add support for 2.10
2.10 - Added user_id parameter to os-keypairs plugin, as well as a new
property in the request body, for the create operation. Administrators will
be able to list, get details and delete keypairs owned by users other than
themselves and to create new keypairs on behalf of their users.

Change-Id: I13ca3f8a4dd9cf11bec79966bb8a2ab48847be22
2015-12-07 22:14:21 +02:00
Andrey Kurilin
96a7e1ddc4 [microversions] update test_versions with implemented versions
Change-Id: Ifc401e00fc6436ac85ade3fa119ef9a47607a5ec
2015-12-07 22:13:23 +02:00
Ghanshyam
a37c4328a1 Fix H404/405 violations in novaclient/v2/[a-f]
There is a lot of H404/405 violations in novaclient, and it is better
to fix those to have a better doc string for class/methods.

This patch fixes these violations for [a-f] files under  novaclient/v2
folder.

As there are lot of violations and cannot be fixed in single patches,
So separating those in multiple patches for easy review.

Change-Id: Ibe5afef349d1be6d70903e06bee402ca30738ea1
Partial-Bug: #1521899
2015-12-07 17:35:19 +09:00
Ghanshyam
573bdaa290 Fix H404/405 violations in novaclient/tests/*
There is a lot of H404/405 violations in novaclient, and it is better
to fix those to have a better doc string for class/methods.

This patch fixes these violations for files under  novaclient/tests/
folder.

As there are lot of violations and cannot be fixed in single patches,
So separating those in multiple patches for easy review.

Partial-Bug: #1521899
Change-Id: I6e712ece14c745013bfba0bee9d77e7875dd2263
2015-12-07 14:17:56 +09:00
Jenkins
06af0bf79b Merge "Fix repr of a host from a hosts.list()" 2015-12-04 19:55:33 +00:00
Jenkins
713b6f12e8 Merge "[microversions] Increase max version to 2.9" 2015-12-04 13:10:07 +00:00
Jenkins
0718f1a252 Merge "[microversions] Add support for 2.8" 2015-12-04 12:59:12 +00:00
Jenkins
f02ca48a4e Merge "Fix H404/405 violations in client.py,base.py,api_version.py" 2015-12-03 17:51:58 +00:00
Jenkins
d1fed78d09 Merge "Remove novaclient.v1_1 module" 2015-12-03 17:02:08 +00:00
Andrey Kurilin
0a535e3287 [microversions] Increase max version to 2.9
2.9 - Add a new locked attribute to the detailed view of servers. locked
will be true if anyone is currently holding a lock on the server, false
otherwise.

This microversion doesn't require any change in novaclient's code.
Just added functional tests and changed version

Change-Id: I7f33757e6f03f172e5a13ade0aa5e8d3a10dbf01
2015-12-03 10:10:21 +00:00
Andrey Kurilin
9fe53065ef [microversions] Add support for 2.8
2.8 - Add new protocol for VM console (mks)

Also, this patch removes code duplication and fixes docstrings for consoles
methods.

Co-Authored-By: jichenjc <jichenjc@cn.ibm.com>

Change-Id: Ic24183a5118872581b30f82734fa9d6ce0e53544
2015-12-03 12:09:56 +02:00
Ghanshyam
aa73df2649 Fix H404/405 violations in client.py,base.py,api_version.py
There is a lot of H404/405 violations in novaclient, and it is better
to fix those to have a better doc string for class/methods.

This patch fixes these violations for below files-
-api_versions.py
-base.py
-client.py

As there are lot of violations and cannot be fixed in single patches,
So separating those in multiple patches for easy review.

Change-Id: I30a714fc3b0b317f7ffa4a99fbb224b4d5f5477b
Partial-Bug: #1521899
2015-12-03 11:45:22 +09:00
Jenkins
51df01e972 Merge "Remove python 2.6 support from python-novaclient" 2015-12-02 20:43:32 +00:00
Jenkins
520ffae282 Merge "Optimize "open" method with context manager" 2015-12-02 20:42:54 +00:00
Jenkins
3aa9b5aa76 Merge "[microversions] Increase max version to 2.7" 2015-12-02 18:56:09 +00:00
Jenkins
247f1883f9 Merge "Print current nova default nova API microversion" 2015-12-02 15:45:54 +00:00
Jenkins
ee2db5f173 Merge "Not transform to str on potential unicode fields" 2015-12-02 15:45:18 +00:00
Chung Chih, Hung
47ee8b9676 Help msg about libvirt always default device names
Supplying a device name for any of the block devices specified as part
of the `nova boot` or `nova volume-attach` call will not be honoured by
any libvirt compute nodes.
We should modify documentation make this more clear.

Change-Id: I3209c2829225492df25ff9ab9098071372957bd5
Closes-Bug: 1479214
2015-12-02 10:38:44 +00:00
OpenStack Proposal Bot
9314c89dde Updated from global requirements
Change-Id: I617a357f6b09d39a702f7478e641d240413c7943
2015-12-01 06:10:06 +00:00
Jenkins
f1b8a717d4 Merge "force releasenotes warnings to be treated as errors" 2015-12-01 00:52:37 +00:00
Chuck Carmack
81f8fa655c Remove python 2.6 support from python-novaclient
Since oslo is removing support for python 2.6, nova
needs to also remove support from clients and libraries.
This commit is to remove support from python-novaclient.

-- Python 2.6 compatibilty code was removed.
-- Python 2.6 was removed as a tox environment, install venv,
and from the classifiers in setup.cfg.
-- Release notes have been updated.

UpgradeImpact

Co-Authored-By: Andrey Kurilin <andr.kurilin@gmail.com>

Change-Id: I3f587ff38d478d075af5fd014e2b4b8416e185d4
Closes-bug: 1518390
2015-11-30 16:04:24 +00:00
Andrey Kurilin
7a9d4e58bf [microversions] Increase max version to 2.7
2.7 - Check the is_public attribute of a flavor before adding tenant
access to it. Reject the request with HTTPConflict error.

Since novaclient already have Conflict expection, there is no required
changes on client side.

Change-Id: I48dca20b3795185363367bac0e2ee65ce938593f
2015-11-30 15:30:04 +02:00
xiexs
6036114aa4 Optimize "open" method with context manager
Use opening context manager to open a file.

Change-Id: I50e4f2df54737e1ea5b4c7fbe8639f1cd981a627
2015-11-29 00:59:25 +08:00
Sylvain Bauza
bb7956bfaa force releasenotes warnings to be treated as errors
Per http://lists.openstack.org/pipermail/openstack-dev/2015-November/080521.html,
we need to make sure that there are no warnings for reno.

Change-Id: I899d223f5347633a17ac5c7fb3991a3cd1f4c781
2015-11-28 00:57:58 +01:00
OpenStack Proposal Bot
245624541a Updated from global requirements
Change-Id: I5d9a308a020f8e99837c4f0a29b87e2542b2cffe
2015-11-27 22:42:13 +00:00
Jenkins
d12d6f90cd Merge "Check response headers for microversions" 2015-11-25 12:53:49 +00:00
melanie witt
c3dda7636c Fix repr of a host from a hosts.list()
The os-hosts API uses different attribute names depending on
whether the host was returned as part of a list or not.
A host returned from 'show host' has the attribute "host"
whereas a host returned from 'list hosts' has the attribute
"host_name".

This adds a host_name property to the Host class that will set the
"host" attribute if necessary. Although this doesn't exactly mirror
the responses coming back from nova api, it will make it easier for
users to use the objects interchangeably for hosts.list() operations
and hosts.update() operations, for example.

Co-Authored-By: Chung Chih, Hung <lyan.h@inwinstack.com>

Closes-Bug: #1434167

Change-Id: I5c339bdd1ab867d972759ade9a10b86bfda1e70a
2015-11-25 07:58:38 +00:00
OpenStack Proposal Bot
fadfbea7de Updated from global requirements
Change-Id: I2b15450f0ce8b074fef50ed1dc61915fd9ed081f
2015-11-24 14:45:58 +00:00
jichenjc
297231c108 Add accessIPv4 and accessIPv6 when create server
nova support accessIPv4 and accessIPv6 as input param
but nova client don't support it as input param when
doing create operation.
Because it's already support in v2.1 so no microversion
introduced.

Change-Id: Idd50fe921f8c931ee28902f90ffdde6bfba34359
Closes-Bug: 1522359
2015-11-24 21:59:21 +08:00
Sylvain Bauza
3e8cee01d5 Add reno for release notes management
Since reno is the new tool for Relnotes, we need to add it
to novaclient  and provide some Sphinx docs for Liberty and Mitaka.

Change-Id: Ie42642a0e0037311cfa14cd8bf6b7041b62a4675
2015-11-23 21:03:34 +01:00
Andrey Kurilin
4393d90524 Check response headers for microversions
novaclient provides version negotiation on CLI layer. In case of usage
novaclient as a lib, user can specify api_version with microversion part
and can try communicate with Nova endpoint which doesn't support
microversions. Nova endpoint will not check X-OpenStack-Nova-API-Version
header and will execute request(it can be correct or not). It this case
we should warn user about his mistake and about "incorrect" response.

Change-Id: I7a5ab964b7b2b2a49cc80c22bf67ad5548afb30b
2015-11-23 20:13:13 +02:00
jichenjc
8b8edc72e0 Not transform to str on potential unicode fields
some fields such as instance.display_name can be unicode,
nova client should not translate it to 'str'. otherwise
it will report UnicodeEncodeError.

Change-Id: I4f6011105b3b11dbbcb23f3a7c1bbcf7f20bcc8c
Closes-Bug: 1518141
2015-11-22 04:34:07 +08:00
OpenStack Proposal Bot
6c3df9d141 Updated from global requirements
Change-Id: Iea54d70a609dfd263ff9a3ad0c92cbf8c7fc4b88
2015-11-21 16:22:56 +00:00
jichenjc
608aa525f1 Print current nova default nova API microversion
nova client only print server side min and max version, but not print
client side min and max version.

Change-Id: Ic48d7eff3ae84bf7897e97a2eff1302a7c64bc2a
Closes-Bug: 1517870
2015-11-21 21:23:22 +08:00
Jenkins
cafba0c61e Merge "improve readme contents" 2015-11-20 14:58:08 +00:00
Jenkins
62b1379cf8 Merge "Fix typo in error message" 2015-11-19 13:25:52 +00:00
Jenkins
dada6cc91d Merge "Added command for device to cinder volume mapping" 2015-11-19 13:25:49 +00:00
Jenkins
33285761aa Merge "Remove --tenant suggestion for flavor-access-list" 2015-11-19 13:25:43 +00:00
Jenkins
55ae89fb70 Merge "Add sort_dir/key to flavor list" 2015-11-19 12:44:57 +00:00
Jenkins
bc54eaa0b1 Merge "Add pagination params for flavor list" 2015-11-19 12:44:23 +00:00
ricolin
18ea9dca18 improve readme contents
Add more information in README.rst

Change-Id: I290c0871e3ba665f4c066a3d34cc2214455d68fa
2015-11-19 16:21:14 +08:00