2321 Commits

Author SHA1 Message Date
Jenkins
5bf5de6f45 Merge "Outdated test data clean up in volume" 2016-11-22 16:03:09 +00:00
Jenkins
bf6f4bb58b Merge "Show disk format vhdx in help" 2016-11-22 15:39:47 +00:00
Jenkins
f4536e708d Merge "Add '--network' and other options to floating ip list" 2016-11-18 23:08:20 +00:00
Jenkins
9a4075334b Merge "Use project_domain_id only in password auth" 2016-11-18 18:02:35 +00:00
Boris Bobrov
e51a8d6374 Use project_domain_id only in password auth
The method being changed constructs domain-related parameters that will
further be passed to the auth plugin. If project domain is not
passed, the method sets it to the default domain.

token_endpoint does not expect any information about domain,
because it uses only a token and URL. Passing it to auth plugin causes
an exception.

Construct domain-related parameters only for specific plugins, such
as password or totp.

Change-Id: I13db3bbe31a0ed843e9f4528d37c768546e2bee9
Closes-Bug: 1642301
2016-11-18 13:52:58 +00:00
Steve Martinelli
0ef8535036 translate all command help strings
Leverage the new cliff command class attribute (_description)
to get the help of a command, this allows us to mark strings
for translation. We could not do this before since the help
was grabbed from the docstring.

This also depends on a new release of cliff and a bump to the
minimum level in osc's requirements.

Closes-Bug: 1636209
Depends-On: Id915f6aa7d95a0ff3dc6e2ceaac5decb3f3bf0da
Change-Id: I8673080bb5625e8e3c499feaefd42dfc7121e96f
2016-11-17 02:33:42 +00:00
Dean Troyer
0ac4370c09 Do proper deprecation for security group rule create
Review I03fd0e14e470e7272930ac2651e73263b83bd4e1 renamed the
--src-group and --src-ip options to --remote-group and --remote-ip
but did not properly deprecate the old option names.

Add deprecation warnings when the old option names are used.

Also, format the warnings using the new proposed translation guideline
for marking substrings to not be translated, such as literal names
and option names.

Change-Id: I63d085d190fc28b8637e7686016eda4efbdda1be
2016-11-16 07:53:30 -06:00
Huanxuan Ao
7684ab4a29 Outdated test data clean up in volume
Now all the volume unit tests (both v1 and v2)
are using fake classes. All the old fake data
and code can be removed.

Change-Id: Ib35ad4b6c94c42a21215e012f80f8978a74a3d18
2016-11-16 20:07:50 +08:00
songminglong
839c5f7a84 Add '--network' and other options to floating ip list
The patch adds filtering '--network', '--port',
'--fixed-ip-address' options to floating ip list command

Partial-Bug: #1614379
Change-Id: I82319d0985d9e864431097c90264a20bf88167cc
2016-11-13 10:11:03 +08:00
Jaspreet Singh Rawel
ff7fda061e Show disk format vhdx in help
Currently disk format type vhdx is missing in help.

Closes-Bug: 1635518

Change-Id: Ibe5976f722c4eb966b12a7b1e1c2702fd08ce84b
2016-11-11 12:38:37 +05:30
Jenkins
95c26cebaa Merge "network.common.NetworkAndComputeShowOne: catch HttpException" 2016-11-10 18:10:41 +00:00
Jenkins
85c26caa2e Merge "Not appropriate name sg rule attribute" 2016-11-10 18:10:34 +00:00
Jenkins
85f2afdad0 Merge "Add description field port create & port set" 2016-11-10 18:10:27 +00:00
Jenkins
518fbf0397 Merge "Support --provider-* options in the network list command" 2016-11-10 18:09:24 +00:00
Jenkins
81c0129365 Merge "Add option to allow filtering by mac-address on port list" 2016-11-10 18:09:14 +00:00
Jenkins
496dbfc52e Merge "Use FakeImage class to replace duplicated image info in volume test" 2016-11-10 18:09:07 +00:00
Jenkins
f3d3813522 Merge "Allow input the QoS policy name in network rbac create command" 2016-11-10 18:09:00 +00:00
Jenkins
c89d441008 Merge "Add direction and protocol options to os security group rule list cmd" 2016-11-10 18:08:53 +00:00
Jenkins
55ddaf7bbe Merge "Add "--read-only" and "--read-write" options in "volume set"" 2016-11-10 16:59:18 +00:00
Jordan Pittier
52279b1b04 network.common.NetworkAndComputeShowOne: catch HttpException
Problem: if a user issue the cmd 'openstack floating ip create public'
and has already maxed his quota for FIP, OSC exits with a not so useful
message:

>jordan@jordan-XPS13-9333:~ $ openstack floating ip create public
>HttpException: Conflict

This patches catch the HttpException earlier and prints a more
verbose message:

> jordan@jordan-XPS13-9333:~ $ openstack floating ip create public
> Error while executing command: Quota exceeded for resources: ['floatingip']

Change-Id: I7c87524d871d230d92f007c32e06439b34c7194a
2016-11-10 16:30:23 +01:00
Jenkins
b37ad9992b Merge "Add "volume migrate" command" 2016-11-10 14:13:28 +00:00
Jenkins
8b2f256828 Merge "Add 'description' option" 2016-11-09 20:05:56 +00:00
Sindhu Devale
52c4a55d43 Add 'description' option
This patch adds '--description' option to
os security group rule create cmd.

Change-Id: I604bcdeb4658d2dcc4d860a87e704e186cca5225
Partially-Implements: blueprint network-commands-options
Partially-Implements: blueprint neutron-client-descriptions
2016-11-08 21:52:41 +00:00
Jenkins
874933debd Merge "SDK refactor: Prepare floating ip commands" 2016-11-08 19:47:56 +00:00
Jenkins
6bba1f0008 Merge "SDK Refactor: Prepare subnet pool commands" 2016-11-08 19:47:49 +00:00
Jenkins
c27da0564c Merge "SDK Refactor: Prepare network segment commands" 2016-11-08 19:47:41 +00:00
Jenkins
b072edd80a Merge "SDK Refactor: Prepare address scope commands" 2016-11-08 19:10:38 +00:00
Jordan Pittier
55669b90c0 Add 'all-projects' option to 'volume backup list'
Similar to what 'volume list --all-projects' does, 'volume backup
list --all-projects' list volume backups accross all projects.

Change-Id: Id5dda9b5adc822c4ddfb2dda339946d3322858e2
2016-11-08 17:35:51 +01:00
Huanxuan Ao
e07b0e0919 Add options to "volume backup list" command
Add "--name", "--status", "--volume", "--marker" (v2 only)
and "--limit" (v2 only) options to "volume backup list" command

Change-Id: If20cb7650f2359d393ee314d9e055a8659c73009
Closes-Bug: #1612484
Closes-Bug: #1639712
2016-11-08 04:47:57 +00:00
judy-yu
3a915b5b5f Not appropriate name sg rule attribute
For ingress rules set ip-prefix means src-ip-
prefix, but for egress rules set ip-prefix means
dst-ip-prefix. It is not appropriate to name
src-ip directly. So as to src-group.

Change-Id: I03fd0e14e470e7272930ac2651e73263b83bd4e1
Closes-bug: #1637365
2016-11-04 17:23:46 +08:00
Sindhu Devale
86a3c7a415 SDK refactor: Prepare floating ip commands
Prepare the OSC "floating ip" commands for the SDK refactor.

Change-Id: I02052185b3ce0b053acdcf76a0f68d49e6f7e608
Partially-Implements: blueprint network-command-sdk-support
2016-11-03 14:54:11 +00:00
Yi Zhao
84beac5994 Add filtering options --name,--enable,--disable to router list
Change-Id: I171b6be4501b02c3df66589c45177200919117db
Closes-Bug: #1637945
Partially-Implements: blueprint network-commands-options
2016-10-31 16:54:08 +08:00
Yan Xing'an
960b2658dc Support --provider-* options in the network list command
Add --provider-network-type, --provider-physical-network, --provider-segment
options into network list command.

Change-Id: I02546170211fb3e7e55d5dc7e7cdc6d387fd26e5
Closes-Bug: #1635580
Partially-Implements: blueprint network-commands-options
2016-10-27 23:37:59 -07:00
Yan Xing'an
8ca1cc6370 Add --long option and more columns to the hypervisor list command
Support --long option and more columns in output of hypervisor
list command, including 'Hypervisor Type', 'Host IP', 'State',
and 'vCPU Used', 'vCPUs', 'Memory MB Used', 'Memory MB' with
--long option.

Change-Id: I0c790c7835309dded03e230cf497168e19404537
Closes-Bug: #1637074
2016-10-27 04:33:47 -07:00
Jenkins
0b63d5d586 Merge "Rename variable to avoid shadowing of built-in name" 2016-10-25 10:44:05 +00:00
Jenkins
824ed8490f Merge "Avoid duplicated project_id when show network" 2016-10-25 10:28:31 +00:00
Jenkins
7825e1a2c3 Merge "Adds information about private key generation for instance access" 2016-10-25 10:28:15 +00:00
Jenkins
b6a8822921 Merge "Warning for empty password set for user create/set" 2016-10-25 10:19:30 +00:00
Anne Gentle
5055074db0 Adds information about private key generation for instance access
- Also updated the help text in the command itself.

Change-Id: Ib3d4f94ef415a3f12024d0d7c000d2de20de001b
Partial-Bug: 1549410
2016-10-25 08:51:20 +02:00
judy-yu
151c161a5e Avoid duplicated project_id when show network
Project_id appear twice when show network. This
patch check and not append if it already has one.

Change-Id: I4400239f454522101b639a0412050dd60eb6a612
Closes-Bug: #1636123
Partially-Implements: blueprint duplicated-project-id
2016-10-24 17:16:48 +08:00
Yan Xing'an
65a08d6af6 Improve a network testcase
Fix a typo networ to network, and add assertEqual lines.

Change-Id: I13c0c775c1d5f7a8f579d387cd9bea1bdd74aebc
2016-10-20 21:56:00 -07:00
Huanxuan Ao
292608dc08 Use FakeImage class to replace duplicated image info in volume test
FakeImage class has been added in image v1 so that
we can reuse it in volume v1 unit test to replace
the duplicated image info in volume v1 fake.

Change-Id: I0f96e568bd65e59241b57704fc2a379319a386d8
2016-10-21 10:39:06 +08:00
Yan Xing'an
e6fb658606 Correct help string of the subnet pool list options
Correct help string of subnet pool list options, from
"subnets" to "subnet pools".

Change-Id: Ic6dd6649f411748cd0c6e6b08f0451c8a0fa220f
Partially-Implements: blueprint network-commands-options
2016-10-20 06:25:58 -07:00
Huanxuan Ao
57d5f94540 Allow input the QoS policy name in network rbac create command
We could input a QoS policy ID for the "rbac_object"
parameter in "network rbac create" command but not
name before. After this change, "rbac_object" parameter
can be both QoS policy name or ID.

Change-Id: I0fd6b5b5ae410074d85475ef49e5a0a9a52bf86f
2016-10-20 12:37:40 +08:00
Yan Xing'an
a1e3056414 Add option to allow filtering by mac-address on port list
Added support to allow filtering ports via --mac-address
option to the port list command.

Change-Id: I903e443f2f9057571d46520c4cafb88d1972c0cb
Partial-bug: #1634333
Partially-Implements: blueprint network-commands-options
2016-10-19 02:50:47 -07:00
qtang
3770ad08b2 Warning for empty password set for user create/set
Raise warning when empty password set for user

Change-Id: If03516f3f1290e4c329fe3d1277dee0512de0410
Closes-Bug: #1607959
2016-10-19 03:07:54 +00:00
Carl Baldwin
d373d76d1d Reset allocation pools to [] instead of ''
the sdk expects subnet allocation pools to be reset to an empty array,
not an empty string.

Currently this results in an error message:

  "Invalid input for allocation_pools. Reason: Invalid data format
   for IP pool"

Change-Id: I7cc84b9c8e4abdbd2c91e5d591ad31f0849c1a83
Closes-Bug: #1634672
2016-10-19 00:27:49 +00:00
Kyrylo Romanenko
acc39673ab Rename variable to avoid shadowing of built-in name
Change-Id: I06e2617db1d5508723bc343072a15586af89b390
2016-10-18 19:12:23 +03:00
Huanxuan Ao
daffce3a6a Add "--read-only" and "--read-write" options in "volume set"
Add "--read-only" and "--read-write" options in "volume set"
command to set volume access mode.

Implements: bp cinder-command-support
Change-Id: I76ba85c7d3ff0eb026a9cbd794368d8b2b0d17fe
2016-10-18 14:34:05 +08:00
Huanxuan Ao
d7c8bb88e4 Add "volume migrate" command
Add "volume migrate" command in volume v1 and v2
to support migrating volume to a new host

Change-Id: Ie4e6037171a31a872006a13f9fd1e15eaa627c26
Implements: bp cinder-command-support
2016-10-18 11:48:30 +08:00