3502 Commits

Author SHA1 Message Date
jiahui.qiang
d083ddb12f Add --default option to "volume type list"
Add "--default" option to volume v2's "type list"
command, it will show which volume type the volume
service has set as default.

Implements: bp cinder-command-support
Change-Id: Iae7ebc633ebe5554cc88390a84361887ec211fb2
2016-12-06 06:44:16 +08:00
Jenkins
158dbe124a Merge "Add '--project' and '--project-domain' options to os cmds" 2016-12-05 22:28:21 +00:00
Jenkins
fdf93e04e6 Merge "Revert "Remove marker and loop from "image list" command"" 2016-12-05 22:21:47 +00:00
jiahui.qiang
7e5a98bca9 Add some options to "volume create" command
Add "--bootable", "--non-bootable", "--read-only" and "--read-write" options
to "volume create" command for setting some attributes at the time of crration.

Change-Id: I71b4e9fccb4ee0ab1a90e7179d6d2d34dbbae909
Implements: bp cinder-command-support
2016-12-06 00:17:36 +08:00
Steve Martinelli
42f33435ed Revert "Remove marker and loop from "image list" command"
This reverts commit 0b6fdcbe4c3f3142fdd18bfd827653d894607941.

Adapt "image list" to not loop when --marker is specified on command
line.

Update tests to work with current state of code.

Change-Id: I8af58adf8637a9e34371c6280db40935d22bc3c3
2016-12-05 10:35:00 +01:00
Colleen Murphy
5203cc9707 Remove auth_with_unscoped_saml decorator
The auth_with_unscoped_saml decorator existed to make sure the user
selected the right auth plugin before trying to call either a
'federation domain' or 'federation project' command. This is outdated,
because openstackclient now uses keystoneauth[1] and keystoneauth
removed its entrypoints for the federation plugins[2] since its
_Rescoped class no longer needs them. This patch removes the decorator
since that validation check was the only thing standing in the way of
the commands working correctly. Also removed the '*_list_wrong_auth'
tests since those only existed to test the decorator, and stopped
setting the plugin in the positive tests since the
automatically-determined token plugin should now be fine.

[1] http://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=6ae0d2e8a54fd5139e63a990ab4bdce634e73c5e
[2] http://git.openstack.org/cgit/openstack/keystoneauth/commit/?id=d9e4d26bb86f8d48e43188b88bab9d7fe778d2c1

Change-Id: Id981739663113447a7bba8ddba81ba9394a19e07
Closes-bug: #1624115
2016-12-04 18:59:09 +00:00
Ankur Gupta
8c71a35eeb SDK Refactor: Prepare ip availability commands
Prepared the OSC "ip availability" commands for the SDK refactor.
See [1] for details.

[1] https://etherpad.openstack.org/p/osc-network-command-sdk-support

Change-Id: Ia22e9fafec0a91ba1b0f1ce825fcaf1d8cbbbf88
Partially-Implements: blueprint network-command-sdk-support
2016-12-04 17:31:12 +00:00
zhiyong.dai
99ba4f86b0 Adjust the code sequence in consistency_group.py
Place "CreateConsistencyGroup" above "DeleteConsistencyGroup"

Change-Id: I554a8e445fee0760450b2da3b5c4a4f3b2434d60
2016-12-04 18:21:06 +08:00
judy-yu
83675e9ee0 Avoid duplicated project_id when show network resources
Project_id appear twice when show network resources. This
patch check and not append if it already has one.

Change-Id: I744988f3f52d4a744e397a6a82fefdc4c17eacbf
Closes-Bug: #1636123
Partially-Implements: blueprint duplicated-project-id
2016-12-04 18:03:33 +08:00
Nam Nguyen Hoai
df5f12b135 Add "dns-name" option to "os port create" and "os port set"
This patch added a "dns-name" option to
"os port create" and "os port set" command.

Change-Id: I360e2c9a1970e64fe17e4561d7618f860b937373
Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com>
Partial-Bug: #1612136
Partially-Implements: blueprint network-commands-options
2016-12-03 17:08:17 +07:00
Jenkins
e05c8d7bb0 Merge "Refactor "snapshot" commands" 2016-12-03 04:30:51 +00:00
Jenkins
2fd5ca22f6 Merge "Add "consistency group show" command" 2016-12-02 22:56:23 +00:00
Jenkins
d2701116d3 Merge "Add "consistency group delete" command" 2016-12-02 21:02:40 +00:00
Jenkins
4debdc6dbb Merge "Updated from global requirements" 2016-12-02 20:45:15 +00:00
daizhiyong
1907220113 Add "consistency group show" command
Add "consistency group show" command in volume v2 (v2 only).

Change-Id: If496eba2955c0aacd52600bb6fba39690ddd90cb
Implements: bp cinder-command-support
Partial-Bug: #1613964
2016-12-02 20:45:13 +00:00
zhiyong.dai
094e5189b7 Add "consistency group delete" command
Add "consistency group delete" command in volume v2 (v2 only).

Change-Id: Ieebc2417df0d45a578d5617bad245d7863f09190
Implements: bp cinder-command-support
Partial-Bug: #1613964
2016-12-02 13:21:18 -06:00
Jenkins
12442371a8 Merge "SDK Refactor: Prepare security group rule commands" 2016-12-02 18:50:45 +00:00
Jenkins
279563e45b Merge "SDK Refactor: Prepare network rbac commands" 2016-12-02 18:50:37 +00:00
Jenkins
6977105383 Merge "SDK Refactor: Prepare network qos policy commands" 2016-12-02 18:50:29 +00:00
Jenkins
3730fe9f5f Merge "SDK Refactor: Prepare subnet commands" 2016-12-02 18:50:21 +00:00
Jenkins
7078502ea6 Merge "Sort list images by name by default" 2016-12-02 18:50:17 +00:00
Jenkins
d1f1f092c4 Merge "Add "--type" and "--retype-policy" options to "volume set" command" 2016-12-02 18:49:37 +00:00
Jenkins
2daeb30296 Merge "Add "Is Public" column in volume type list" 2016-12-02 18:32:49 +00:00
Jenkins
6f8a080f27 Merge "Remove outdated comments in volume unit test" 2016-12-02 18:29:15 +00:00
Jenkins
19ca396508 Merge "Using v2 as the default version of Glance" 2016-12-02 18:29:08 +00:00
Jenkins
5ec4290e27 Merge "Add commands for "consistency group snapshot"" 2016-12-02 18:29:01 +00:00
Jenkins
1c2b0c6b73 Merge "Add "consistency group create" command" 2016-12-02 18:28:22 +00:00
OpenStack Proposal Bot
d5b69c6269 Updated from global requirements
Change-Id: I8f9828e5e3a266a1ba52f9c09ddad4ed8d928e1b
2016-12-02 17:18:11 +00:00
Jenkins
307a847685 Merge "Correct reraising of exception" 2016-12-02 13:34:51 +00:00
Jenkins
2de45c2805 Merge "clean up image choices and help text" 2016-12-02 13:11:30 +00:00
Jenkins
c0dd8086e5 Merge "Updated from global requirements" 2016-12-02 07:11:23 +00:00
Jenkins
9b19a35bb7 Merge "Add --enable/disable-port-security option to port set and port create" 2016-12-02 05:28:21 +00:00
OpenStack Proposal Bot
2cb0f85288 Updated from global requirements
Change-Id: I807f29306f262cf5c7deceb240e0a257b96af456
2016-12-02 05:13:51 +00:00
gengchc2
40d73a0b58 Correct reraising of exception
When an exception was caught and rethrown, it should
call 'raise' without any arguments because it shows
the place where an exception occured initially instead
of place where the exception re-raised

Change-Id: I3ec3680debbfad7c06f2251396e0e8e4e3df6c50
2016-12-02 09:56:27 +08:00
Jenkins
3a509be871 Merge "Introduce overwrite functionality in `osc subnet set`" 2016-12-01 21:57:15 +00:00
Nam Nguyen Hoai
ce079d2261 Add '--project' and '--project-domain' options to os cmds
This patch added '--project' and '--project-domain' options to
filter subnets resulted by 'os subnet list',
'os floating ip create' and 'os security group list' commands.

Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com>
Change-Id: I727663d49ffa6aa042fdeb60797f18bb753b0372
Closes-Bug: #1613231
Closes-Bug: #1610909
Closes-Bug: #1613629
Partially-Implements: blueprint network-commands-options
2016-12-01 14:59:10 +07:00
Jenkins
d6e058fa1f Merge "Add network service provider list to OSC" 2016-11-29 15:13:42 +00:00
Jenkins
155114e457 Merge "Trivial:modify one parameter" 2016-11-29 13:51:29 +00:00
Ankur Gupta
ac7d27adc6 Add network service provider list to OSC
Add network service providers commands to OSC

Change-Id: Iea8bbe460061d67e36a4346b349e07612112c732
Depends-On: Ie0be92e0717b8b13e31068276a12b5fbf784e374
2016-11-28 22:54:08 -06:00
Sindhu Devale
246f60ab13 Add --enable/disable-port-security option to port set and port create
This patch adds the currently missing options
`--enable-port-security` and `--disable-port-security`
in the `os port set` and `os port create` commands.

Partially-Implements: blueprint network-commands-options

Change-Id: I4dc11cdf32bf482a5937f5464fe8a3b418644ec3
2016-11-28 16:33:34 -06:00
jiahui.qiang
747ec5b897 Add unit tests for server create in computev2
Unit tests for server create is not completed. Some of the code in
take_action has not been tested.

Change-Id: Ifd3f42400408d3437e0bc6cd42acbb6db861b1f3
2016-11-28 23:24:22 +08:00
Jenkins
b12782726f Merge "Add QoS support to Network object." 2016-11-28 13:57:07 +00:00
zhiyong.dai
fca81526ff Trivial:modify one parameter
This patch modifies a wrong parameter to make the metavar
consistent with the optional argument.
Change-Id: I27ed30fdbc3adbc19d2f5662d6952cfe15dc52b1
2016-11-28 20:27:03 +08:00
Rodolfo Alonso Hernandez
4132392c2f Add QoS support to Network object.
Added "qos_policy" parameter to Network class.

Change-Id: Idc00f2792eef5b1f0910084d95cf9a8e83fe818c
Closes-Bug: 1627069
2016-11-28 09:35:00 +00:00
Reedip
abfcd7810c Introduce overwrite functionality in `osc subnet set`
The overwrite functionality allows user to overwrite
the dns-nameservers of a specific subnet.

Change-Id: I421808a3bdeb4565668f627b7929c4762cf40212
partially-implements: blueprint allow-overwrite-set-options
partially-implements: blueprint network-commands-options
2016-11-28 05:49:21 +00:00
jiahui.qiang
dc1d510350 Fix description errors in volume fakes
In volumev2 fakes.py. Description of some 'get_*' methods is incorrect.
the error will mislead the user. this patch has already fixed it.

Change-Id: I048e3c2b625c7b54ab19f2b923d4970427f277ff
2016-11-27 06:18:00 +08:00
jiahui.qiang
6ca4dc3533 Add options to "volume snapshot list" command
Add "--name", "--status" and "--volume" options
to "volume snapshot list" command for filtering results.

Change-Id: I72db1abce7701f31598deec34801a4d1f5713870
Closes-Bug:#1645252
2016-11-26 23:13:50 +08:00
Flavio Percoco
1f8485b94f Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/30af7c8ad287756d38d131d1f5dceae0

Change-Id: I2d906fa0675463e21f2786d93f464c465f2bc3b1
2016-11-26 12:05:49 +01:00
jiahui.qiang
71e6d44476 Add "volume host set" command
Add "volume host set" command in volume v2 to support freeze(disable)
and thaw(enable) the specified cinder-volume host

Change-Id: Iee1604d72f9eccd9e327b0ef8d345909a733a647
Implements: bp cinder-command-support
2016-11-25 05:21:00 +08:00
OpenStack Proposal Bot
da03f6e17d Updated from global requirements
Change-Id: I517d93ce1a2fcdb6b674bd5617902c4daf078031
2016-11-24 18:50:36 +00:00