2559 Commits

Author SHA1 Message Date
Kevin_Zheng
2253d02266 Fix funtional test gate failure caused by keystone client change.
After the merge of https://review.openstack.org/#/c/193894/
the path endpoint is used instead of ports. This causes
functional test failure.

This patch fixes this.

Change-Id: Ic052e518cbb8be531a048129ad47cd19ad460268
Closes-bug: #1586222
2016-05-27 09:18:01 +08:00
OpenStack Proposal Bot
92e7508651 Updated from global requirements
Change-Id: I037ab3105e57bb9acb6929f5fd3565aeb881adb2
2016-05-23 20:48:56 +00:00
Jenkins
ef7cb1d44d Merge "Use tempes.lib instead of tempes_lib" 2016-05-23 14:18:05 +00:00
Jenkins
2b1d4633d7 Merge "Added Support of microverison 2.26" 2016-05-23 14:18:01 +00:00
Jenkins
f510d8fd6f Merge "Deprecate --tenant option from flavor-access-list" 2016-05-23 14:17:43 +00:00
Kevin_Zheng
16bf62aa69 Use tempes.lib instead of tempes_lib
As tempest_lib is deprecated. The code has been
re-integrated in tempest under the tempest.lib
namespace, no modifies could be done to tempest_lib.

We should use tempest.lib instead of tempest_lib
to make the tests passed when we remove support
for --endpoint-type.

Change-Id: I864aa967fe6895b8f193a6ec7506dc743b0b3392
2016-05-19 14:02:45 +00:00
Matt Riedemann
1fd68964ea Deprecate --tenant option from flavor-access-list
The --tenant option in the flavor-access-list command was
never implemented and filtering by tenant is not supported
in the REST API for os-flavor-access, so to avoid confusion
this change deprecates the command line option.

It also removes the cruft that was in the python API code
so that only 'flavor' is allowed. This it not a backward
incompatible change since list() still takes kwargs and still
raises a NotImplementedError for anything in kwargs but
'flavor'.

Change-Id: I2c36376674f3a7caf5967a16ac0152f17d9fc906
Closes-Bug: #1582284
2016-05-18 14:10:42 -04:00
Sergey Nikitin
ff9b97b2c6 Added Support of microverison 2.26
This microversion allows to create/delete/update
server tags and to search servers by tags.

Implements: blueprint tag-instances

Change-Id: I66b6d4a763c507335f27a425bc3d4c2aae377c00
2016-05-18 17:36:17 +03:00
Kevin_Zheng
8030879330 Name and AZ should as be optional param on aggregate-update
'name' should be an optional parameter not required
on aggregate-update, so we can update 'availability_zone' only.

Change-Id: I778ab7ec54a376c60f19dcc89fe62fcab6e59e42
Closes-bug: #1280118
2016-05-18 11:08:58 +08:00
OpenStack Proposal Bot
4187c69184 Updated from global requirements
Change-Id: I05a64dc574712a6bcef9bba4b524879026ddbc96
2016-05-17 18:06:20 +00:00
venkatamahesh
ba00c1d426 Update the home-page with developer documentation
Change-Id: I18a6b02e8dceafd1008144e53be5817d83698741
2016-05-17 10:13:18 +05:30
Jenkins
eea2512ec8 Merge "Enhance descriptions for get and clear password" 2016-05-12 09:38:43 +00:00
OpenStack Proposal Bot
6eb2c50d52 Updated from global requirements
Change-Id: I6746189468f8f3c3a0f914fededc98d5910499b5
2016-05-06 22:22:35 +00:00
Jenkins
db4677fd3a Merge "Clean the duplicated columns for "nova network-list"" 2016-05-04 10:18:51 +00:00
OpenStack Proposal Bot
71680abacf Updated from global requirements
Change-Id: I5a864fac6ee28a0394a70b9101b87092084d6cff
2016-04-30 18:08:36 +00:00
xiexs
dceb77ff44 Clean the duplicated columns for "nova network-list"
If we specify --fields with default columns name, then there will
be an additional column which is absolutely redundant, we need to
check for such case.

Also do the same for "nova list"

Co-Authored-By: ZhiQiang Fan <aji.zqfan@gmail.com>

Change-Id: Ife0a62d2d77aee261ce39c30d3a89ba97a253dae
Closes-Bug: #1574424
2016-04-29 05:53:02 +08:00
OpenStack Proposal Bot
f59de4fbcc Updated from global requirements
Change-Id: If01e72af5a045b3458399f3908141f01836584e4
2016-04-28 16:17:01 +00:00
ZhiQiang Fan
c22cbb6fac [Trivial] change some functions in novaclient/utils.py to public
There are some functions in novaclient/utils.py which have name with
prefix `_`, in Python, this means it is a private function which
should be only used in its own module. However, these functions are
used in other modules such as novaclient/v2/shell.py.

This patch removes the prefix _ for these functions.

Change-Id: I7bc8a76fd390a7dd30eecbb5c7e641b6ccfb40c0
2016-04-27 20:13:45 +08:00
jichenjc
4b4573ef9d Enhance descriptions for get and clear password
per http://paste.openstack.org/show/495955/
it shows nova get-password and clear-password is calling
'os-server-password' and in turn operate on metadata server
instead of the operating systme itself, the existing wording
lead to confusion in nova client description.

Change-Id: If69622c181ad3259855d45cb21909e5b7de53615
2016-04-26 12:41:20 +08:00
Jenkins
3bed5446d7 Merge "Use common find_server from v2.shell" 2016-04-26 00:48:31 +00:00
Jenkins
ed645a7618 Merge "Add a note message for reboot" 2016-04-25 17:39:00 +00:00
xiexs
2b9310eaed Add a note message for reboot
Currently nova reboot only performs a hard-reboot to
baremetal nodes as ironic doesn't support the soft-reboot
yet. And as absence of this information, end user has to try
to excute this command firstly and then probably realize
the difference between the baremetal nodes and ordinary
VM instance about this command:

 * For VM instance
   nova reboot       : perform a soft reboot by default.
   nova reboot --hard: perform a hard reboot.

 * For baremetal node
   nova reboot       : perform a hard reboot by default.
   nova reboot --hard: perform a hard reboot as well.

For more user-friendly, we'd better add some notes into
the help message explicitly.

Change-Id: I7b3f6da4b5f8a514c6d923f3546470d9de459003
Partial-Bug: #1485416
2016-04-23 20:29:48 -04:00
Jenkins
445dadcaae Merge "Restrict positional arguments for Client" 2016-04-24 00:13:11 +00:00
Gleb Stepanov
a47850b093 Decorate FakeHTTPClient with versions
Remove api_version check from get_servers_1234_migrations method
and substitute it by api_version.wraps decorator.

Change-Id: Iea780ae92bece4e2013778485d244123251e9dcc
2016-04-22 18:32:10 +03:00
Andrey Kurilin
2a72b86cd1 Restrict positional arguments for Client
It is hard to deprecate or remove arguments for Client objects. We already
have several args which are not used anywhere and we need to do something
with them(clean code).

Change-Id: I2218ff0c750922a105d21a13e42f193ffd86ec01
2016-04-19 12:39:12 +03:00
Andrey Kurilin
fd23ff9000 Use common find_server from v2.shell
- extend v2.shell._find_server with raise_if_notfound param
- reuse v2.shell._find_server for instance_action extension
- fix instance-action-list on v2.21 (it was unable to work
  with deleted instances)

Change-Id: I7b538124c6ab0ee00164822b324aaf2d37c8c2af
2016-04-14 12:05:57 +03:00
OpenStack Proposal Bot
f6efc861b7 Updated from global requirements
Change-Id: I9bf801b449d32cb8b354aa010a67737f91d000b7
2016-04-14 02:38:15 +00:00
Jenkins
d00a473238 Merge "Deprecate image list/show/delete/update CLIs/APIs" 2016-04-13 16:02:17 +00:00
Matt Riedemann
a602e59806 Deprecate image list/show/delete/update CLIs/APIs
This deprecates all of the image CLIs/python API bindings that use
the Nova os-images API which is a proxy to the Glance v1 API.

This will emit a warning each time a deprecated CLI/API is used and also
updates the help docs for the deprecated CLIs and docstrings for APIs.

The plan is to do a release once this is merged so people start seeing
it and then we'll actually remove the deprecated CLIs/APIs in the first
python-novaclient release after the Nova server 15.0.0 'O' release.

Depends-On: Iff5fb3180855de7adb3399f6be16bedc8543b4ec

Change-Id: I3f60cc7f4c6e27861c4a84b925d573f35f1a1848
2016-04-12 11:57:57 -04:00
Andrey Kurilin
d133a664ae Make functional tests work with v3 keystone
This patch adds support of v3 keystone to novaclient's functional tests.

Closes-Bug: 1568527

Change-Id: Iff5fb3180855de7adb3399f6be16bedc8543b4ec
2016-04-12 17:24:41 +03:00
OpenStack Proposal Bot
77f214bdbd Updated from global requirements
Change-Id: I1a150011a588bde5f0bf77c3f4383b4cfbbf5fe1
2016-04-08 00:33:13 +00:00
Jenkins
85eb9f7236 Merge "Fix typos in docstrings and comments" 2016-04-07 13:18:42 +00:00
Jenkins
c1f975f4ff Merge "Remove busted baremetal CLIs and API bindings" 2016-04-06 12:49:57 +00:00
Jenkins
96e4449f44 Merge "Switch to 2.1 default api_version in v2.Client" 2016-04-06 12:22:32 +00:00
Dao Cong Tien
a967e40185 Fix typos in docstrings and comments
Change-Id: Ib94c2b999f8295ec526d4e44883b86ab8b5a0688
2016-04-06 09:36:28 +07:00
Matt Riedemann
0634a38cdc Remove busted baremetal CLIs and API bindings
The os-baremetal-nodes compute API does not proxy
baremetal node create/delete or interface add/remove
requests to Ironic, so there is no point in even
having CLIs or python bindings for these operations
in the client.

There isn't a point in deprecating these since they
are already unusable, so let's just remove them.

Change-Id: Id5dd7fbddff87e506460904e352713ae777a8073
Closes-Bug: #1566535
2016-04-05 17:32:20 -04:00
OpenStack Proposal Bot
41fccc3828 Updated from global requirements
Change-Id: I0cc4f0d0f4d01ad0c73043f99495a525defde397
2016-04-05 13:33:33 +00:00
Jenkins
9d9cb2a0aa Merge "Fix ServerGroup.NAME_ATTR" 2016-04-05 10:50:09 +00:00
Jenkins
4b57352a54 Merge "[tests] initialize client objects inside setUp" 2016-04-04 17:30:19 +00:00
Jenkins
0193797fcf Merge "Remove deprecated volume(snapshot) commands/bindings" 2016-04-04 17:30:08 +00:00
Jenkins
7897740f28 Merge "Add default values for domain related options" 2016-04-04 14:55:41 +00:00
Jenkins
4435207af2 Merge "Using glance 'image-list'/'image-show' in boot help message" 2016-04-04 12:10:19 +00:00
Andrey Kurilin
e458fab8ef Add default values for domain related options
Keystone V3 requires that the options os_user_domain_id/os_user_domain_name
and os_project_domain_id/os_project_domain_name be set. These options do not
have default values and novaclient will fail if they are not set by user.

This patch adds default values for os_project_domain_id and
os_user_domain_id in case of Keystone V3 env.
This is consistent with what the OpenStack CLI does.

Also, two functional tests are added to check authentication via
Keystone V2 and V3.

Partial-Bug: #1522402

Change-Id: Ieb41a7fbf24107f7250ef34218604fba96531195
2016-04-04 10:57:41 +00:00
Matt Riedemann
a425702689 Remove deprecated volume(snapshot) commands/bindings
23f13437dd64496fcbc138bbaa9b0ac615a3cf23 deprecated the
purely volume or volume-snapshot related CLIs and python
API bindings during Kilo. python-cinderclient should be
used for the python API bindings now, and python-openstackclient
should be used for the CLI for those operations.

The alternate_service_type context manager is also removed
since it was only used for proxying through to the volume API
endpoint.

Since the proxy for creating volumes is removed, we have to
add python-cinderclient for testing the volume attachment
CLIs/APIs that are left intact.

Change-Id: I09a6501603667350f49b1b1fa130353a6d5272a2
2016-04-03 14:05:05 -04:00
Andrey Kurilin
b9807c0648 Switch to 2.1 default api_version in v2.Client
Direct initialization of versioned clients is restricted, but we tries to
decrease the number of possible bugs and issues, so default value for
api_version was added to v2.Client .

Let's set it to 2.1, since 2.0 is too old API version.

Change-Id: If127f858f7f670a090a57267f46a69ea4c056cce
2016-04-01 19:25:44 +03:00
Andrey Kurilin
7d8db71964 [tests] initialize client objects inside setUp
All tests from contrib dir inizialize fakeclient at module level.
It is bad practice and we should do preparatory steps at setUp method.

Change-Id: I2dd2988cd015d1dfb576fe004cb9461b02b55db3
2016-04-01 19:23:33 +03:00
Rui Chen
51306fc4c9 Fix ServerGroup.NAME_ATTR
Finding by specify server group name failed in ServerGroupsManager.find(),
ServerGroup.NAME_ATTR is "server_group_name" currently, but NAME_ATTR
should be "name", because only "name" attribute exists in ServerGroup
object, not "server_group_name".

Change-Id: Id6b7676d14e6283d856a069da5ff287dc3228386
Closes-Bug: #1563301
2016-04-01 10:02:11 +00:00
Jenkins
8c204ac1a2 Merge "Handle error response for webob>=1.6.0" 2016-03-30 12:59:24 +00:00
Jenkins
d9e8e364e0 Merge "Fix host-evacuate-live for 2.25 microversion" 2016-03-29 19:52:22 +00:00
Jenkins
c3884691a0 Merge "Removed unused Oslo Incubator code" 2016-03-29 14:34:25 +00:00