2802 Commits

Author SHA1 Message Date
Jenkins
e38a6e3740 Merge "Modify few words and change output format for command "ip floating list"" 2016-06-27 21:56:09 +00:00
Jenkins
9ef5ffe428 Merge "Modify some unusual help messages in computev2" 2016-06-27 20:49:15 +00:00
zhang.xiuhua
1dce52ace8 Modify few words and change output format for command "ip floating list"
According to OpenStack Documentation, preferred word choice:
Link: http://docs.openstack.org/contributor-guide/writing-style/word-choice.html
Change from 'etc.' to 'and so on'

Change-Id: Id8a5cc99a8bba8ac7531636248edaca8f98da917
2016-06-27 19:44:28 +00:00
Steve Martinelli
044a46ed5f skip image tag tests
the command ``image set tag <tag> <image>`` is now failing
skip the test so our gate isn't broken.

Change-Id: I05e415b212e76aef62c1b0b966863573eff338e9
Partial-Bug: #1596573
2016-06-27 11:26:18 -04:00
Huanxuan Ao
c7b137e421 Modify some unusual help messages in computev2
Some command help messages are unusual, for example:
common help message for a list command:
"list objects"
unusual help message:
"list obejcets command"
I think we should keep help message consistent, so I modify
the unusual help messages in computev2.

Change-Id: Ic5f11eba1a4397949e85d91cc067519752e89bff
2016-06-27 15:27:34 +08:00
Jenkins
21ac9230e8 Merge "Support multi-delete for commands in identity V2" 2016-06-24 21:24:49 +00:00
Jenkins
aa066346cc Merge "Fix several flake8 code style issues in compute tests." 2016-06-24 17:17:40 +00:00
Jenkins
6dbec64dd7 Merge "Make code more compact for get_list_opts function" 2016-06-24 13:50:48 +00:00
Jenkins
08480739c7 Merge "Remove code forgotten in cb28fb55884a9be7cd70c37343181116cf000a42" 2016-06-24 13:18:31 +00:00
Jenkins
0c74857971 Merge "Fix the problem of router delete" 2016-06-24 12:24:18 +00:00
Kyrylo Romanenko
f2b73c2737 Fix several flake8 code style issues in compute tests.
Fix issues:
H402 one line docstring needs punctuation,
W503 line break before binary operator.

Change-Id: Ie93430898403f137e7b647a97a28b0d7a4ebb463
2016-06-24 14:45:19 +03:00
Kyrylo Romanenko
ca9a6daba0 Make code more compact for get_list_opts function
Do it like in get_show_opts done.

Change-Id: If6b115c35a41997627660830fb8e5d299e8fb8e9
2016-06-24 14:28:28 +03:00
Vincent Legoll
60f3cfa6ef Remove code forgotten in cb28fb55884a9be7cd70c37343181116cf000a42
Change-Id: I2abc75c94c1b6450f56bfcf2d8b1135e5caa3598
Signed-off-by: Vincent Legoll <vincent.legoll@idgrilles.fr>
2016-06-24 12:18:40 +02:00
sunyajing
6df09fd377 Support multi-delete for commands in identity V2
Commands are "ec2 credentials delete", "service delete", "endpoint delete".
Also update their unit tests and functional tests.

Partial-Bug: #1592906
Change-Id: I1a0b7160b803a523646d09d030e6f112c81c4c24
2016-06-23 23:57:49 -04:00
SongmingYan
ee156b5fe3 Fix the problem of router delete
Change "Remove" to "Delete" when using it in route-interface-delete.

Change-Id: I9ebc38c787acbcb42d2f8efeee41f6cb943e4b9b
Related-bug: #1560446
2016-06-24 03:52:49 +00:00
OpenStack Proposal Bot
6828f5ce27 Updated from global requirements
Change-Id: I43d04f2cbb0543d55783252d8618ddafdda3a66c
2016-06-24 03:17:41 +00:00
Jenkins
5b144334bf Merge "Support JSON data for port binding profile" 2016-06-23 21:31:05 +00:00
Jenkins
8b70f31178 Merge "Add FakeObject classes to fakes.py, update unit tests in identity V2." 2016-06-23 20:59:27 +00:00
Jenkins
05e818ce50 Merge "Improve masking of secrets in configuration show" 2016-06-23 20:59:19 +00:00
Jenkins
a7aa9e8ca0 Merge "Improve server functional tests" 2016-06-23 20:56:07 +00:00
Jenkins
13e27c35cd Merge "use env vars to specify OS_IDENTITY_API_VERSION" 2016-06-23 20:56:00 +00:00
Jenkins
28f261eeca Merge "support multi-delete for volume-type" 2016-06-23 20:55:08 +00:00
Jenkins
b7909252a5 Merge "Use resource id when name given for identity show" 2016-06-23 17:14:02 +00:00
Jenkins
377daebaa4 Merge "Fix errors for "host set" command" 2016-06-23 15:27:37 +00:00
Jenkins
29dd2b12df Merge "Standardize logger usage of catalog in identity" 2016-06-23 15:27:06 +00:00
Richard Theis
d08cf31dc8 Improve server functional tests
Patch set [1] fixed timing issues related to the server functional
tests. As part of the review, additional enhancements were
suggested. This patch set provides those enhancements. In particular,
the functional tests will now check for the cirros256 flavor and
the cirros-*-uec image.

[1] https://review.openstack.org/#/c/313870/

Change-Id: I7fe18e26b3d09db92bbe669ffafcd16618cae383
2016-06-23 08:30:22 -05:00
Jenkins
45f355b66c Merge "Remove OSCGenericPassword plugin" 2016-06-23 13:18:49 +00:00
sunyajing
e8483c9022 Standardize logger usage of catalog in identity
Change-Id: I5307f949b3a350e41840a4a5c191ceacf1b3b291
Partially-Implements: blueprint log-usage
2016-06-23 08:22:51 +00:00
Jenkins
51fcd7c30c Merge "Refactor unit test of "compute service list" command" 2016-06-23 06:20:34 +00:00
David Rosales
337d013c94 Use resource id when name given for identity show
Currently a user is allowed to specify either a resource ID or name
when running openstack identity comands. In some cases, when a name
is specified instead of an ID, the command will return as not able
to find the resource when it in fact does exist.

The changes here are to check the client against the token on such
requests and to extract the ID of the resource specified if enough
information exists between the two. We then use the ID associated
with the resource to complete the user requests.

Change-Id: I40713b0ded42063b786dc21247e854224b9d2fe2
Closes-Bug: #1561599
2016-06-22 21:55:46 -07:00
Dean Troyer
ccbb2dd1e8 Remove OSCGenericPassword plugin
The need for this has passed plus with 3.0 we can take the breakage hit,
if any.

Change-Id: Ic019842f00033d2cd67b75f036e7e817e4b7c075
2016-06-22 13:54:32 -05:00
Jenkins
fd03f5250a Merge "Fix token/endpoint auth plugin" 2016-06-22 15:51:02 +00:00
Jenkins
775b1acccd Merge "Make set/unset commands in compute/image/common return normally when nothing specified" 2016-06-22 14:37:44 +00:00
Huanxuan Ao
70f8ae7534 Refactor unit test of "compute service list" command
The unit test of "compute service list" only checked the
"Disabled Reason" columns and its data. It is not enough.
This patch change the test to check all datas in the list.

Also, this patch modify the "Id" to "ID" in this command.

Change-Id: I988fd6365f2652185dd96d9417f294eba9c31cd9
2016-06-22 19:02:39 +08:00
sunyajing
000c253d76 Add FakeObject classes to fakes.py, update unit tests in identity V2.
Clean up fakes.py , use FakeCatalog, FakeProject, FakeService,
FakeEndpoint, FakeRole classes instead, also update their unit tests.

Change-Id: I510d175ec194165b0595ebd430e8cc596d363587
Partially-Implements: blueprint refactor-identity-unit-test
2016-06-22 17:02:25 +08:00
Jenkins
de909e4afc Merge "Support bulk deletion for "flavor/aggregate delete"" 2016-06-22 06:48:50 +00:00
Huanxuan Ao
7177014fcc Fix errors for "host set" command
"Host set" command cannot work. Because:
1.Host has no 'ID' attribute, so 'ID' attribute cannot be found
in "host set" command.
2.value "True" and "Flase" are invalid in updata() method of host.
3.Some update functionalities is not supported in host API now.

This patch solves the problems 1 and 2 in OSC. But the problem 3
is a API problem and can't be solved in OSC, only XenServer driver
support to set enable/disable and maintenance host, it is a normal
problem.
After this patch the output of "host set" command is:
The requested functionality is not supported. (HTTP 501)
(Request-ID: req-14031fce-8c90-48a0-8492-dc8e3dd349f3)
Just the same as the "host-update" command in novaclient.

Change-Id: Ibe94c4d3d492d3d63355de803810edb988e1b4e9
Closes-Bug: #1594689
2016-06-22 14:20:53 +08:00
Jenkins
3c1aae9cf4 Merge "Updated from global requirements" 2016-06-21 21:08:39 +00:00
Jenkins
94534e26cf Merge "Add "--project" option to the "flavor create" command." 2016-06-21 20:15:19 +00:00
Dean Troyer
cefe715031 Fix token/endpoint auth plugin
[This is not quite reduced from the original proposed fix as some
changes have merged that complicate the switch to OSC_Config and
v2 auth broke anyway.]

Fix the --os-token --os-url breakage in the switch to ksa.

Closes-bug: 1593664
Change-Id: I3ac23234fbf647fb145c7bd151d53c5c105462bf
2016-06-21 14:54:31 -05:00
OpenStack Proposal Bot
f6a188c3e1 Updated from global requirements
Change-Id: I99fc95e55e3a8030ed9175658895335beef059c3
2016-06-21 18:05:37 +00:00
Huanxuan Ao
014835930d Add "--project" option to the "flavor create" command.
Add ``--project`` and ``--project-domain`` options to the
``flavor create`` command. We can use these options to add
the flavor access to a givin project when we create the flavor.

Change-Id: Ic1907272c1d1ae526f9c9e86f32ba06c6da147c0
2016-06-21 16:28:18 +00:00
Jenkins
a60f16b938 Merge "Refactor setting defaults for some scope parameters" 2016-06-21 15:37:45 +00:00
Jenkins
b86915aa7e Merge "Refactor check_valid_auth_options function" 2016-06-21 14:13:36 +00:00
Jenkins
6c79919a5b Merge "Make the print info support i18n" 2016-06-21 13:56:35 +00:00
Huanxuan Ao
2d7a02f2ff Fix a missing i18n support in security_group_rule.py
Change-Id: Id1459366ccf894275a11c2af840568d4fd114e18
2016-06-21 17:06:59 +08:00
Tang Chen
9c62af8a42 Make set/unset commands in compute/image/common return normally when nothing specified
After this patch, all set/unset commands will return normally
when nothing specified.

Change-Id: Id94d0329faa1a674006a9aae901f834b41917317
Close-bug: #1588588
2016-06-21 15:15:18 +08:00
Alvaro Lopez Garcia
1de4c66009 Improve masking of secrets in configuration show
The command "configuration show" tries to redact some of the secrets
that are shown on the screen. However, this failed redacting options
that were marked as secrete by the auth plugins (if any) and it redacted
other options that were not redacted at all. For example, when using
the OpenID Connect plugins, it redacted the "access_token_endpoint" as
the word "token" appears there, but it failed to redact "client_secret"
even when this option is marked as secret in the corresponding plugin.

Change-Id: Idfad4fbbe5ddcff5e729e1dcd756d0379ad31dee
2016-06-21 06:56:23 +00:00
Alvaro Lopez Garcia
099a2c38b9 Refactor setting defaults for some scope parameters
The code is setting defaults for some scope parameters, cheking if the
name ends with some specific substring (namely ending in "password")
causing failures in some plugins that end with the same string, but do
not allow those parameters (like "user_domain_id" in "v3oidcpassword").

Closes-Bug: #1582774
Change-Id: Id7036db3b783b135353d035dc4c1df7c808d6474
2016-06-21 08:55:30 +02:00
Alvaro Lopez Garcia
78ae57112c Refactor check_valid_auth_options function
The functions check_valid_auth_options() function was relying on the name
for checking the set of required options, but this could cause errors
with external auth plugins. If somebody defines an auth plugin plugin
named "footoken" the check function would check for a "token" option,
even if the plugin has not defined that option. This change tries to
improve this situation, cheking for some options only if they have been
defined in the plugin.

Change-Id: I4255f2e7d4d23449c95be957ea7b6b60983f2608
2016-06-21 08:54:36 +02:00