2949 Commits

Author SHA1 Message Date
Henry Nash
713d92df4e Add assignment list to v2 identity and deprecate alternate listing
The current identity role list command (both v2 and v3) is
overloaded with listing roles as well as assignments (if you
provide user, group, project or domain options). This is in
addition to the v3 assignment list command designed for this
purpose.

This overloading complicates the fact that roles can now be
domain specific (i.e. have a domain attribute), so the
command 'role list --domain <domain-name' will soon become
ambigious (this is in a follow on patch).

This patch:

- Adds a v2 assignments list, with support for pulling the
user and project from the auth credentials
- For comapability, adds the same auth support to the
existing v3 assignments list
- Deprecates the use of role list and user role list to list
assignments

Change-Id: I65bafdef4f8c89e863dab101369d0d629fa818b8
Partial-Bug: 1605774
2016-07-22 21:46:29 +00:00
Jenkins
719c5d79ce Merge ""server list": "Image Name", "Image ID" columns" 2016-07-22 20:38:20 +00:00
Jenkins
d2cb96a2ef Merge "Remove execute permission on a few files" 2016-07-22 20:37:54 +00:00
SongmingYan
1b878b4efd Remove execute permission on a few files
Some files have execute permission unnecessarily. Change them from
755 to 644.

Change-Id: I471ebd1c3d123ad4a7376f7f5996f53f8c2d9b0b
2016-07-22 17:38:34 +00:00
Jenkins
b59ade75e5 Merge "Support to get server rdp/serial/mks type console url" 2016-07-22 12:22:34 +00:00
Jenkins
831301e5d6 Merge "Add Support for showing flavor access list" 2016-07-22 09:11:42 +00:00
Swapnil Kulkarni (coolsvap)
d84393999a Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: If0e9fd59c47d27bc58917500c554819c6aa30b2c
2016-07-22 04:09:38 +00:00
Huanxuan Ao
b0c317ebdd Add Support for showing flavor access list
Add a attribute "access_project_id" for flavor object to
display the access project id list by using "flavor show"
command.

Change-Id: I7f0c152b816e0ca2e32e47f9b5c1aa7663d33b6d
Closes-Bug:#1575461
2016-07-22 10:20:18 +08:00
Jenkins
d20d97fd09 Merge "Set identity v3 client in networkv2 fake" 2016-07-22 00:51:48 +00:00
Jenkins
3e1d54299f Merge "Show project access for volume type" 2016-07-21 22:07:50 +00:00
Rui Chen
cf20225347 Support to get server rdp/serial/mks type console url
The patch add the support to get server rdp/serial/mks
type console url, that make osc capability equal with
current nova server side feature.

Change-Id: I3dee2531c68563725187c8251d5ea8d4c02cca0c
Closes-Bug: #1605088
2016-07-21 15:43:01 +08:00
OpenStack Proposal Bot
ba34c592a7 Updated from global requirements
Change-Id: I58e4387636739915dd90c93ce2ee6ee9522b634f
2016-07-21 04:10:27 +00:00
Jenkins
360853b51f Merge "Add unit tests for "host list" and "host show" commands" 2016-07-21 03:35:15 +00:00
Jenkins
ab18045c97 Merge "Implement rbac list and show command" 2016-07-20 16:08:36 +00:00
Jenkins
d0daf90e18 Merge "Transfer "ip floating CRUD" to "floating ip CRUD"" 2016-07-20 16:08:12 +00:00
Huanxuan Ao
e7fa8920d0 Set identity v3 client in networkv2 fake
Set identity v3 client in fake so that we needn't
set it everytime when we use it in unit test.

Change-Id: I9ed71056a357642e5aef7b670a7c85918aca59b9
2016-07-20 19:35:20 +08:00
Jenkins
412b29b972 Merge "Add port security option to network commands" 2016-07-20 10:12:40 +00:00
Sheel Rana
5e8957ef7f Show project access for volume type
OSC does not support to show project access details for
private volume types. This patch will provide support
for showing project access details for private volume types.

Closes-Bug:#1554891

Implements: bp cinder-command-support

Change-Id: I218fb07a6e69033e9f8570748eee1df8df9d6fdc
2016-07-20 16:54:58 +08:00
Tang Chen
0aa2304f38 Transfer "ip floating CRUD" to "floating ip CRUD"
This patch does the following things to transfer
"ip floating xxx" to "floating ip xxx":
* Add new command "floating ip create/delete/list/show", and doc.
* Deprecate "ip floating create/delete/list/show" command.

Change-Id: Ib071acaac81988431244e858bddafa7f93403df5
Implements: blueprint rework-ip-commands
Closes-bug: 1555990
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
2016-07-20 13:37:48 +08:00
OpenStack Proposal Bot
07e97b1a8a Updated from global requirements
Change-Id: I5aa5e608f41e0c2d900ed35ae06db1552a71ea6e
2016-07-19 21:14:19 +00:00
Jenkins
33a40a08c2 Merge "Exchange the check order for the dhcp and no-dhcp" 2016-07-19 10:59:40 +00:00
Jenkins
ae2fd1a9ae Merge "Modify some help and error messages in ec2creds identityv2" 2016-07-19 09:26:22 +00:00
Jenkins
eb0a2f9834 Merge "Update doc for credential in indentityv3" 2016-07-19 09:21:56 +00:00
qtang
34435d9ca2 Exchange the check order for the dhcp and no-dhcp
The dhcp is setting with True by default and progress always
jump into the first if check.
So the no-dhcp option always ignored there.

Check the no-dhcp option first and then the dhcp option value
to avoid this.

Change-Id: Ide640e2cab3936d419ca62105304ff5d4a8a2074
Closes-Bug: #1602588
2016-07-19 16:35:36 +08:00
Huanxuan Ao
60639d76a7 Support bulk deletion for delete commands in identityv3
Support bulk deletion for delete commands in the list below
identity/v3/consumer
identity/v3/credential
identity/v3/domain
identity/v3/ec2creds
identity/v3/endpoint
identity/v3/federation_protocol
identity/v3/identity_provider
identity/v3/mapping
identity/v3/policy
identity/v3/region
identity/v3/service_provider
identity/v3/service

The unit test in identityv3 need to be refactored, so I add
some functional tests instead. I will add all unit tests at
one time after the refactor completed.

Change-Id: I82367570f59817b47c87b6c7bfeae95ccfe5c50e
Closes-Bug: #1592906
2016-07-19 09:49:36 +08:00
Jenkins
55c1c575d6 Merge "Added a note on how to test changes" 2016-07-18 23:03:47 +00:00
Jenkins
86e4b2a374 Merge "Unskip the tests affected by warlock 1.3.0" 2016-07-18 23:03:40 +00:00
Jenkins
3b396d2e3b Merge "Follow upper constraints for all tox targets" 2016-07-18 23:00:38 +00:00
Jenkins
5b0f87ff1f Merge "Add create_one_image_member() in FakeImage class and update test" 2016-07-18 22:54:30 +00:00
Jenkins
9fed459bf3 Merge "Allow format selection in get_opts" 2016-07-18 22:54:23 +00:00
Jenkins
6ce53fed83 Merge "Support error handling for delete commands in volumev2" 2016-07-18 22:41:07 +00:00
Jenkins
13f1aa9b81 Merge "Make set/unset commands pass normally when nothing specified in identityv3" 2016-07-18 22:15:31 +00:00
Jenkins
099c3bbd82 Merge "Add "--project" option to "volume type create" command" 2016-07-18 19:38:02 +00:00
Jenkins
ba0e1b6ef5 Merge "image list: Add Checksum column" 2016-07-18 18:38:49 +00:00
Jenkins
beaa06138e Merge "Pass security group id to novaclient" 2016-07-18 18:35:15 +00:00
Jenkins
5bd7d68ee3 Merge "Add network-topolopy support" 2016-07-18 18:34:49 +00:00
OpenStack Proposal Bot
9f6148132c Updated from global requirements
Change-Id: I74744755891f65da2c1d7b7b475230d395a3a8ee
2016-07-17 23:59:46 +00:00
Steve Martinelli
5ce351c492 Unskip the tests affected by warlock 1.3.0
1) This reverts commit 044a46ed5f040020cf80adc1ace987802344e87d
which was broken by warlock 1.3.0

Change-Id: Ia286d9394586884018c4e62cf581e39a809f5545
2016-07-17 17:02:01 +00:00
Steve Martinelli
e2a9fd29c1 Follow upper constraints for all tox targets
With the exception of releasenotes and cover, we should follow
upper constraints. The tox_install file was copied over from
python-neutronclient [1].

[1] http://git.openstack.org/cgit/openstack/python-neutronclient/tree/tools/tox_install.sh

Change-Id: I633fa149820efafd7b2acec0388fa8bc8d06c988
2016-07-17 17:01:52 +00:00
Huanxuan Ao
50dd4a1a1e Add create_one_image_member() in FakeImage class and update test
Usually we use a fake object in unit test. To match the other
test, add create_one_image_member() in FakeImage class in imagev2
to create a fake image member, delete the old data and update
the unit test of image.

Change-Id: I062a362b15db7e8bc89ec48c540d310199fd6c0b
2016-07-15 20:05:04 +08:00
Jenkins
1821f20c42 Merge "Add python-neutronclient to OSC plugins" 2016-07-15 07:22:45 +00:00
Huanxuan Ao
c0467edc64 Update doc for credential in indentityv3
Change-Id: I5f49c038a75ea67674b6d9279a6e60d6ded8d12f
2016-07-15 10:54:45 +08:00
OpenStack Proposal Bot
17dc8526ab Updated from global requirements
Change-Id: I51ce0df359d992153cbe0588c4f67d829a360032
2016-07-15 01:43:03 +00:00
Jenkins
1c745700d9 Merge "Change to plural form of object in multi delete error message in networkv2" 2016-07-14 22:41:11 +00:00
Kyrylo Romanenko
9f346c3fb6 Allow format selection in get_opts
Default is "value".

Change-Id: I244253f6cd53104a57ef12f6b14e1653c89d38bc
2016-07-14 14:09:18 +03:00
Huanxuan Ao
5e06d6a3a6 Change to plural form of object in multi delete error message in networkv2
Usually, the error message of multi delete is:
"'result' of 'total' 'objects' failed to delete"
the objects is a plural form.
To match the other multi delete error messages
in OSC, change the object in delete error message
in networkv2 to a plural form. Just add a 's' in
the message.

Change-Id: I17e0735d025bb61014db709d2639813565015b3d
2016-07-14 18:34:19 +08:00
Huanxuan Ao
9b51127ecc Support error handling for delete commands in volumev2
Some delete conmmands in volumev2 did not support
error handling, this patch add them and also add
the unit tests for bulk deletion

Change-Id: I56ade6f9c7396c78fb989547476c4d94ccd76eae
2016-07-14 17:49:26 +08:00
Jenkins
52cb503fb0 Merge "Modify compute agent set command" 2016-07-14 09:22:21 +00:00
Jenkins
bae17d9547 Merge "Add Python3.5 to setup.cfg tox.ini" 2016-07-14 08:28:37 +00:00
Jenkins
63a6789add Merge "Use FakeProject and FakeDomain classes in unit tests of networkv2" 2016-07-14 06:25:39 +00:00