2317 Commits

Author SHA1 Message Date
Jenkins
865e084568 Merge "Deprecated tox -downloadcache option removed" 2015-12-16 14:04:54 +00:00
Jenkins
8b33427d1a Merge "encode the url parameters" 2015-12-16 13:55:26 +00:00
Jenkins
e85cf71aa1 Merge "Updated from global requirements" 2015-12-15 23:30:10 +00:00
OpenStack Proposal Bot
6f587155bb Updated from global requirements
Change-Id: I759f0730a31307bfb97811464d3d8a32461aae34
2015-12-15 19:00:06 +00:00
shu-mutou
0a736dd5df Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: Ic9d4f64154a5418baa159a4efdcd9dd652d142ff
Closes-Bug: #1526170
2015-12-15 16:26:20 +09:00
Jenkins
aa2687b3f7 Merge "[microversions] Increase max version to 2.12" 2015-12-14 21:11:10 +00:00
Jenkins
26077be57a Merge "[microversions] Increase max version to 2.11" 2015-12-14 21:11:05 +00:00
Jenkins
55351d0135 Merge "[microversions] Add support for 2.10" 2015-12-14 20:43:16 +00:00
Ondřej Nový
6ac9f3a412 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I22e710aae8bf34938a4f9ee85c566876a36c7bb1
2015-12-11 23:30:05 +01: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
0ec6bedf42 [microversions] Increase max version to 2.12
2.12 - Exposes VIF net-id attribute in os-virtual-interfaces. User will be
able to get Virtual Interfaces net-id in Virtual Interfaces list and can
determine in which network a Virtual Interface is plugged into.

novaclient.base.Resource class is a parent class of VirtualInterface resource.
Since `Resource` is a universal interface for any resources and doesn't
require hard-code attributes which describe partial resource, there are no
required changes to support this microversion in "novaclient as a lib".

"novaclient as CLI" doesn't provide an interface for VirtualInterface yet
(see bug 1522424 for more details). When it will be implemented, we will need
to check that new attribute is displayed correctly.

Based on the fact that 1522424 is not resolved and novaclient.base.Resource
class has enough tests, this patch doesn't require any tests.

Also this patch fixes representation of VirtualInterface resource.

Change-Id: I18cf23847d3b2b01f5a6ffae2ebc4bede54babce
2015-12-07 22:17:22 +02:00
Andrey Kurilin
529a492126 [microversions] Increase max version to 2.11
2.11 - Exposed attribute forced_down for os-services. Added ability to change
the forced_down attribute by calling an update.

This microversion was previously added in [1], but since the support for
2.6-2.10 microversion was missed, the max version was decreased to 2.5[2].

Now, support is added for all microversion 2.1-2.10, so we can enable 2.11
microversion.

[1] - I2b80ac32a95fe80363b4ad95d8d89fff097935a3
[2] - I52074f9a3e7faa6a7a51c3fa9766100acf25dee2 &
      Iba9bfa136245bd2899c427ac0c231a30c00bd7f3

Change-Id: Iab3224a5c3691437e64ab4e06c85ccc2a7deea13
2015-12-07 22:14:23 +02: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
Javeme
6a98b786b7 encode the url parameters
Change-Id: I880c0be5edbba8de560bac155126b23755635eac
2015-12-07 20:01:38 +08: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