499 Commits

Author SHA1 Message Date
Jenkins
ade841fad0 Merge "Add 'allowed address pairs' option to 'port create/set/unset'" 2017-01-26 00:34:41 +00:00
Jenkins
f14027867f Merge "Add --project and --project-domain option to "volume snapshot list"" 2017-01-25 22:27:39 +00:00
Jenkins
bfad2abf23 Merge "Fix OSC networking commands help errors" 2017-01-24 15:35:33 +00:00
Hongbin Lu
5cf77bb672 Handle 403 error on creating trust
Currently, creating trust requires permission to list roles, but
non-admin users don't have permission to do that by default. This
commit adds exception handling on listing roles, and continue to
create trust if server returns 403.

Closes-Bug: #1658582
Change-Id: I4f016b76cb46ae07ef65ed54780881bbcd6210d3
2017-01-24 01:50:36 +00:00
Rui Chen
4d9da2c40a Fix OSC networking commands help errors
OSC networking commands need to authenticate to get
service catalog, then decide to show nova-network or
neutron command help message. Fake token and fake
auth_type in prepare_to_run_command() casue os-cloud-config
use AdminToken auth plugin, but pass all the auth information
(include: username, password and so on) to it, that casue the
class initialization error. Pop the fake token and url, then
try to load auth plugin again to fix the issue.

Change-Id: I8b140f0b0a60681fc2a35a013bb0c84ff8cb9589
Closes-Bug: #1650026
2017-01-22 06:30:31 +00:00
Jenkins
bf3f12f596 Merge "Error in the return of command 'volume qos create'" 2017-01-21 06:18:08 +00:00
Jenkins
08ca61ba07 Merge "Fix quota set command error for SDK > 0.9.10" 2017-01-17 17:23:54 +00:00
jiahui.qiang
f353253122 Error in the return of command 'volume qos create'
This patch fixed a 'volume qos create' display mistake in argument
of 'specs'[1]. For command such as:

 $ openstack volume qos create hello

 [1]https://bugs.launchpad.net/python-openstackclient/+bug/1656767
Closes-bug:#1656767

Change-Id: Ia9fce833d318d9b52b97c12cfb89e2d3c5465fbe
2017-01-17 15:19:22 +08:00
Dean Troyer
4d3cfb9142 Release 3.7.0 cleanup
Change-Id: I75d9e2473461e316086cfad8c886c6b7d22ecd5e
2017-01-15 11:01:32 -06:00
Huanxuan Ao
0340275fa9 Fix quota set command error for SDK > 0.9.10
A bug in OpenStack SDK 0.9.11 and 0.9.12 that causes
quota set command to fail. This can be removed when
the proposed SDK fix (https://review.openstack.org/#/c/419911/)
is released and in the minimum SDK version in global requirements.

Closes-Bug: #1655445
Change-Id: I63132f5f762f0120282f8b92e72512763063e3c6
2017-01-15 20:00:53 +08:00
Jenkins
368666194b Merge "Fix quota show --default command" 2017-01-15 05:51:42 +00:00
Dean Troyer
819526591e Fix quota show --default command
Work around a bug in OpenStack SDK 0.9.11 and 0.9.12 that causes
quota show --default to fail.  This can be removed when the proposed
SDK fix (https://review.openstack.org/420301) is reelased and in the
minimum SDK version in global requirements.

quota set --network is still broken, I can't fix it at the moment...

Closes-bug: 1656572
Change-Id: Ice77e14782c33e672176afbab36bba95b73d7a11
2017-01-14 13:55:19 -06:00
Dean Troyer
339af2c20b Fix floating IP delete and show by IP
The floating IP delete and show commands did not work using IP addresses
as the selector, only ID.  The SDK floating_ip resource does not support
but OSC does, so we have to do it ourselves.

Now with more SDK 0.9.10 support!

Change-Id: Iea1b57cded6b16a56a06af87ab8f1fa001a3485e
Closes-bug: 1656402
2017-01-14 10:55:12 -06:00
Reedip
024bd3bd66 Fix quota show output
Currently Quota Show expects dictionary to be returned
for Network client, similar to Volume and Compute clients, but
Network Object is being returned, causing the "openstack quota show"
to fail.
This patch takes care of this issue.

Depends-On: Ie0e045ff4888615d68804fd739d5b995ca11e9a1
Change-Id: Ic507997cba09fcfa84dd1151d6922f56a7c5187b
Closes-Bug:#1655537
2017-01-12 22:10:32 +00:00
Jenkins
2fb5ac0cc4 Merge "Add support for Network QoS rule commands" 2017-01-11 23:37:00 +00:00
Jenkins
3c031bbb68 Merge "Add two consistency group commands" 2017-01-11 23:12:38 +00:00
Jenkins
08fc39e9b0 Merge "Add support for Glance 'update image members' feature" 2017-01-11 22:28:06 +00:00
Jenkins
afba7832a6 Merge "Fix filter error in os volume list" 2017-01-11 19:01:13 +00:00
Rodolfo Alonso Hernandez
6b114cd98f Add support for Network QoS rule commands
Added following commands:
  - network qos rule create --type minimum-bandwidth
                                   dscp-marking
                                   limit-bandwidth
  - network qos rule delete
  - network qos rule list
  - network qos rule set
  - network qos rule show

Closes-Bug: 1609472
Depends-On: I2e8869750024a8ccbc7777b95fe8ef6e26ec0885
Depends-On: Ife549ff6499217ca65e2554be8ef86ea7866b2d8

Change-Id: Ib3e1951f0917f5f23c8d9e0a380d19da2b3af5f0
2017-01-09 18:05:30 +00:00
Jordan Pittier
1cdc1319d6 Make 'object save' fast again
'openstack object save' is critically slow to download big objects. While
we 'stream' (chunked download) the data, the default chunks_size
is 1 byte [1], which is terribly inefficient.

[1] : http://docs.python-requests.org/en/master/api/#requests.Response.iter_content

Closes-Bug: 1654645


Change-Id: I2223e5897346acd2f2c1fae638d1193cff833c19
2017-01-09 16:19:29 +00:00
jiahui.qiang
51ea68ae94 Fix filter error in os volume list
This patch fixed a bug of unable to filter volume list by '--project',
'--user' in "openstack volume list".
Modify uint test for 'volume list' to check parameter of list method.

Change-Id: I1fc4296c4c7eca0f7a803dbfd5e15e3bc0d6403f
2017-01-09 00:03:11 +08:00
Jenkins
4b2ceece28 Merge "OSC Network Meter" 2017-01-08 05:55:52 +00:00
Jenkins
4811b95d1e Merge "Add options to allow filtering on agent list" 2017-01-08 03:54:19 +00:00
jiahui.qiang
27e0be0517 Add --project and --project-domain option to "volume snapshot list"
Add "--project" and "--project-domain" option to volume v2's
"volume snapshot list" command, it will filter list result by different project.

Change-Id: I7dccd6d8d9f1889fa9cb0c2d04a42d77975c645b
2017-01-07 22:21:11 +08:00
Zhou Zhihong
2e78c11c8d Add options to allow filtering on agent list
Add options to allow filtering via --agent-type
and --host on agent list

Change-Id: I1800f0777aa92a76b4b95f64f8acc18454809e81
Closes-Bug: #1641868
Partially-Implements: blueprint network-commands-options
2017-01-05 22:23:01 -08: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
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
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
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
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
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
Nguyen Phuong An
8bcfb824c8 Add 'allowed address pairs' option to 'port create/set/unset'
This patch adds '--allowed-addres-pair' and '--no-allowed-address-pair'
options to 'port create', 'port set' and 'port unset' commands.

Partial-Bug: #1612136
Closes-Bug: #1638265
Partially-Implements: blueprint network-commands-options
Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com>
Change-Id: I08d2269950467a8972a0d0110ed61f5cc7f5ca45
2016-12-20 15:16:15 +07:00
Reedip
4a5bf8d2a5 Add support for clearing router gateway
This patch adds the support to clear the gateway information
from a router.

Change-Id: I446c556750f080a6fc21fea8f531fd71838d648a
Implements: blueprint neutron-client-advanced-router
Partially-Implements: blueprint network-commands-options
2016-12-19 17:30:19 -05:00
Reedip
25104c7d4a Introduce overwrite functionality in `osc router set`
The overwrite functionality allows user to overwrite
the routes of a specific router.

Change-Id: I8d3cfe5cab2ffbfa046371c3adcd2cf446c91cbc
partially-implements: blueprint allow-overwrite-set-options
2016-12-19 16:57:02 -05:00
Jenkins
e51a2b3b17 Merge "Add support for setting router gateway" 2016-12-19 14:31:11 +00:00
Jenkins
a17687288b Merge "Add filtering options to the address scope list command" 2016-12-18 14:30:44 +00:00
Jenkins
cc4ede88e9 Merge "Add --default option to "volume type list"" 2016-12-18 12:20:28 +00:00
Yan Xing'an
d12aa86f7c Add filtering options to the address scope list command
Add --name, --ip-version, --project, --project-domain,
--share, --no-share options to the address scope list command.

Change-Id: I8ece8da473d07dfc21dfb5b17de47624241f0142
Closes-Bug: #1636046
Partially-Implements: blueprint network-commands-options
2016-12-18 19:46:11 +08:00
Reedip
841d9d8dbd Add support for setting router gateway
This patch adds the support to set the gateway information
for a router.

Implements: blueprint neutron-client-advanced-router
Partially-Implements: blueprint network-commands-options
Change-Id: Ifb5a4d1965cd7e75c0c8cf2cfb677e0628b699dc
Depends-On: I2bda0dd40afd64b6cecca5f64ef2326bda4fac92
2016-12-17 18:22:45 +00:00
Jenkins
3ff713fd57 Merge "Add some options to "volume create" command" 2016-12-16 08:20:03 +00:00
Mikhail Feoktistov
63377f25fc Add ploop to supported disk formats
This format is used for containers for Virtuozzo hypervisor

Closes-Bug: 1650342

Change-Id: Ic79f29a1fe9ea5016d3d5520c2b06e39da01ff61
2016-12-15 12:46:55 -05:00
jeckxie
74360e00f5 [TrivialFix] Fix typo error
Change-Id: Iaba9ba22de044b34b4b77f81bcdccda13af81405
2016-12-14 14:39:24 +08:00
Jenkins
112afb752b Merge "3.5.0 release note cleanup" 2016-12-14 05:22:22 +00:00
Dean Troyer
11a762e03c 3.5.0 release note cleanup
Change-Id: Ibe5e5a9a212ac483d0cb38bdb3a607d21f32e96d
2016-12-13 16:09:21 -06:00
zhiyong.dai
2f2603d908 Add two consistency group commands
Add commands:
    consistency group add volume
    consistency group remove volume
in volume v2 (v2 only)

Change-Id: I70ff287d3b5df78196b8f4b9e50402c471aef284
Implements: bp cinder-command-support
Closes-Bug: #1613964
2016-12-13 15:32:04 +08:00