3611 Commits

Author SHA1 Message Date
Huanxuan Ao
99aeff4967 Fix "ip availability show" command
SDK refactor broken ip availability show functional
test, We can not find a ip availability by network
name but only network ID, so we find network and
get the ID first, then find the ip availability
by the network ID.

Closes-Bug: 1653139
Change-Id: I246163fb875e2cdb9e5b091bac500a94268e8aa9
2017-01-06 12:59:41 +08:00
OpenStack Proposal Bot
4d15a2a8fc Updated from global requirements
Change-Id: Ie7b85846889a74026130c89ef37fe38bf8727ce3
2017-01-05 20:30:36 +00:00
Jens Rosenboom
d8749f9148 Fix creating a private flavor with ID auto
When a private flavor is created with ID auto (=default) and a project
is specified for it, instead of trying to add the project to the flavor
called "auto" the ID of the newly created project should be used.

Change-Id: I19f7a0ec26bd5d147f00ecba3312240e3601567e
Closes-Bug: 1654221
2017-01-05 15:58:47 +01:00
Dean Troyer
e0813cc54e Functional tests - port
* Rework functional tests to remove resource create/delete from
  setupClass() and teardownClass() methods.
* Add tests for more command options

Change-Id: Ic77df94fe5980e60c6a67cbf061b9a9dc601518f
2017-01-05 07:49:58 -06:00
Jenkins
82e69428f5 Merge "Update the description format" 2017-01-05 03:32:47 +00:00
Jenkins
b957ba8d92 Merge "Fixes image api URL endpoint for certain scenario" 2017-01-04 23:05:24 +00:00
Jordan Pittier
f055fe67c1 Add support for Glance 'update image members' feature
This patch adds 3 new options to the "image set" command: --accept,
--reject and --pending. This updates the membership status for
an image.

Closes-Bug: 1620481
Change-Id: I13b8c067aad68ece9ff636fbdd83bcb3663c91b2
2017-01-04 19:26:01 +01:00
Imtiaz Chowdhury
1bd2bf67da Fixes image api URL endpoint for certain scenario
openstackclient fails to get image list when the image api endpoint
has 'v2' substring in the URL. Instead of checking whether the api
endpoint URL terminates with '/v2', the current logic is checking
whether 'v2' appears anywhere in the endpoint string.

This issue was discovered on a production setup where certain
server names had 'v2' in their names. For example, when a hostname
is gopher.dev20.com, the image list APIs fail.

This commit updates the unit test to reflect this scenario. Without
the change in openstackclient/api/image_v2.py, all the unit tests
fail.

Co-Authored-By: sergio.carvalho@workday.com
Change-Id: I26b85afd646938272dbabe8e045b337b7df58c7d
Closes-Bug: 1652827
2017-01-04 18:14:10 +00:00
Jenkins
5750ff920e Merge "Show team and repo badges on README" 2017-01-04 17:46:42 +00:00
Dean Troyer
c6aceb78b7 Remove unneeded methods from OS_Config class
These are in the minimum required version of osc-lib (1.2.0).

A few methods remain that need to be released in osc-lib, expect them
in the 1.3.0 release soon.

Change-Id: I2333946da9a73e73377b646e4c06e99597990945
2017-01-04 11:43:30 -06:00
Jenkins
e6e3cd295c Merge "Beef up address scope functional tests" 2017-01-04 11:30:05 +00:00
Jenkins
c416aecb2f Merge "Add ":option: " in the help message" 2017-01-04 10:08:50 +00:00
Jenkins
6707957c87 Merge "Beef up network functional tests" 2017-01-04 04:46:48 +00:00
Jenkins
385b87c6f6 Merge "Beef up floating IP functional tests" 2017-01-04 04:46:03 +00:00
Huanxuan Ao
96578cb8ab Error handling for delete commands in identity
Add missing multi deletion error handling for
identity delete commands.
All delete commands in identity support
error handling now.

Change-Id: I05626dcb5e516a423d610906347b02236ba7eeaf
2017-01-03 23:30:49 +08:00
zhiyong.dai
be9e60be4b Update the description format
In network_qos_rule_type.py, network_service_provider.py, server.py and
volume_snapshot.py, the description format is using """ """.
In this patch, the former format is replaced with "_description = _( )".

Change-Id: I6863b01d3534e033df745070037ee45286745c92
2017-01-03 21:31:54 +08:00
zhiyong.dai
75f2875a6e Add ":option: " in the help message
This patch mainly adds  ":option:` `" in several help messages in the doc.
This modification will create one link which helps the readers find the relative
option quickly and conveniently in website.

Change-Id: Ia047e15c3b2064e4822ee7df7922d4774d862602
2017-01-03 12:13:10 +08:00
Ankur Gupta
0fb1378c6c OSC Network Meter
Implement Neutron feature of Metering into
OpenStack Client.

Meter Rules will be implemented in seperate
patchset.

Partially Implements: blueprint neutron-client-metering

Change-Id: Ie82d42759504cbdb1c991c5183c1f0adf59e60fe
2017-01-01 17:50:19 -06:00
Dean Troyer
3da71c819d Beef up floating IP functional tests
We need to get more thorough in our functional testing, so start by
adding tests for create options.

This also removes the parts of the setupClass() and teardownClass()
methods that do not pertain to the static prereqs for testing.

Change-Id: I0a090a8abc41613d8970343d1b67d101b4c82c65
2016-12-30 16:23:49 -06:00
Dean Troyer
241e0ec1cd Beef up address scope functional tests
We need to get more thorough in our functional testing, so start by
adding tests for all create and set options, check return values.

This also removes most of the setupClass() and teardownClass()
methods as they held common state that was subject to race conditions
when running tests in parallel.

Change-Id: Ib337f9e9d16b4183bb319b58cbe943045f365ff2
2016-12-30 15:15:29 -06:00
Dean Troyer
22cee104ed Beef up network functional tests
We need to get more thorough in our functional testing, so start by
adding tests for all create and set options, check return values.

This also removes most of the setupClass() and teardownClass()
methods as they held common state that was subject to race conditions
when running tests in parallel.

Change-Id: I4179f493cea971b7c576ffbf501330b5c57f52f3
2016-12-30 14:36:10 -06:00
licanwei
0948aa6aeb update server migrate '--wait' description
'Wait for resize to complete'
==>
'Wait for migrate to complete'

Change-Id: I0e08968c0132f0a8e1ef1ce2e6179001315372c3
2016-12-30 14:16:32 +08:00
Jenkins
f020a9ffd6 Merge "Revert "WIP: Skip broken functional tests..."" 2016-12-30 02:13:52 +00:00
Dean Troyer
13c8a1c7aa Revert "WIP: Skip broken functional tests..."
SDK 0.9.11 caused some failures, its blocked now.  Revert those breakages
that occurred in 0.9.10 -> 0.9.11.

This partially reverts commit 188e32f9e642fc5eaaec83d5c231aa890354671a.

Change-Id: I8b350250dbdcbf5c4599dfb55f6685c0db18bb30
2016-12-29 08:58:12 -06:00
OpenStack Proposal Bot
17a249c5dd Updated from global requirements
Change-Id: I9fbd59f515a49e881fa8927c880087e3c814c362
2016-12-28 09:16:21 +00:00
Jenkins
317cbe2c6e Merge "Fix a spelling error" 2016-12-28 03:16:01 +00:00
Jenkins
6a2fa098d0 Merge "Fix typo in release notes" 2016-12-28 03:14:18 +00:00
Jenkins
05fbd076e4 Merge "Add unit tests for usage commands in compute v2" 2016-12-26 12:13:36 +00:00
JingLiu
6929c50a13 Fix a spelling error
Change-Id: Ic14c769d99986d5c51d26fc276f4d47d6fba3265
2016-12-26 17:01:48 +08:00
Ha Van Tu
80c703702a Fix typo in release notes
This patch replace a typo "proprty" with "property".

Change-Id: Idf228afd8827e6b33d6eb657c1f3e0cb35286a45
2016-12-26 15:30:53 +07:00
Jenkins
6245a96211 Merge "Add '--type'and other options to network rbac list" 2016-12-26 03:58:45 +00:00
jiahui.qiang
7b1febf47f Add unit tests for usage commands in compute v2
Add unit tests and fakes for command below in compute v2:
usage list
usage show

Change-Id: Ie533e23375ca6b8ba4cb7e865d39fac652cc0195
2016-12-26 03:05:37 +00:00
Jenkins
1971003468 Merge "Updated from global requirements" 2016-12-24 23:02:22 +00:00
Jenkins
adc25084f4 Merge "Test-requirements.txt: Bump Hacking to 0.12" 2016-12-24 22:37:02 +00:00
Jordan Pittier
b7ad35c007 Test-requirements.txt: Bump Hacking to 0.12
We already pass all the checks.

Change-Id: I9af2eb26dfb1ecf296753dcfc505768d534929ea
2016-12-24 12:58:55 +00:00
OpenStack Proposal Bot
a3fbbd923b Updated from global requirements
Change-Id: I673f91955be4dfde1eea54b48cc7e9a554447fcd
2016-12-24 09:22:57 +00:00
Dean Troyer
188e32f9e6 WIP: Skip broken functional tests...
...so we don't have to fix them all in one review.

Do not merge this until https://review.openstack.org/#/c/414649 is merged
and funtional tests pass.

Change-Id: I4f187111d3e4d8c4a613c20a946d6b5d3562e879
2016-12-23 17:19:50 -06:00
Jenkins
b829b210b0 Merge "Should support 'auto' and 'none' as network parameter when boot instances" 2016-12-23 03:50:18 +00:00
Rodolfo Alonso Hernandez
9e1e7e1c9f Add support for QoS rule type commands
Added following commands:
    - network qos rule type list

Closes-Bug: 1612194
Depends-On: Iecf7bc7acd244a842aae963993f37a64a26b43b9
Change-Id: I38af823c726ceaba9d0b45488fa48e2d93971c92
2016-12-22 16:40:14 +00:00
Rodolfo Alonso Hernandez
5084ce14b0 Update earliest-version number format in release notes
Change-Id: I67deca8d2ff1f63d272b8d5b78cb31efd6e6d4df
Closes-Bug: #1652054
2016-12-22 13:49:27 +00:00
Kevin_Zheng
ff18e3d0e9 Should support 'auto' and 'none' as network parameter when boot instances
Nova added support using 'auto' and 'none' as network parameters since
microversion 2.37:
http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/rest_api_version_history.rst#n389
we should also add support for this in OSC.

Change-Id: I6e5f616dfa48895ebd13144effe9fda7cb94c649
Closes-bug: #1651288
2016-12-22 10:01:02 +00:00
Jenkins
5d62981beb Merge "Introduce overwrite functionality in `osc router set`" 2016-12-21 22:09:50 +00:00
Jenkins
6d63085c72 Merge "Fix all missing "os to openstack" transformation" 2016-12-21 12:15:16 +00:00
Jenkins
97538604ad Merge "Modified API calls in os usage" 2016-12-21 12:15:08 +00:00
Jenkins
931eee89ab Merge "Add one test for "backup set" command" 2016-12-21 10:01:22 +00:00
Huanxuan Ao
97c0b4bf15 Fix all missing "os to openstack" transformation
Checked and fix all missing of the review:
https://review.openstack.org/#/c/412669/
https://review.openstack.org/#/c/412673/
https://review.openstack.org/#/c/412678/

Change-Id: Ice85958874121eeb574d0b4cfa58e1590b014ed6
2016-12-21 10:29:38 +08:00
guiyanxing
af7129cda3 Add '--type'and other options to network rbac list
This patch adds '--type','--action','--long' filtering options
to network rbac list command

Change-Id: I21846820ab223bb7832e89eb2d7658bbec271aec
Closes-Bug: #1648307
Partially-Implements: blueprint network-commands-options
2016-12-21 09:43:07 +08:00
ZhaoBo
3816b4b90a Fix the missing os in command in example
This patch correct the missing one 'os example'.

Change-Id: I7c2cb01082f1eff1a7a607508f166dd54a450f44
2016-12-21 00:05:46 +08:00
Jenkins
1b3f953715 Merge "change os in command example to openstack(3)" 2016-12-20 16:01:17 +00:00
Jenkins
ce0cdb058e Merge "change os in command example to openstack(2)" 2016-12-20 16:00:58 +00:00