759 Commits

Author SHA1 Message Date
zhiyuan_cai
369ae3f9f0 Check if service.name available before access
Currently v3 endpoint commands access service.name directly, while
name is not a required attribute of service. So if we associate an
endpoint to a service without name, we will get an AttributeError
executing v3 endpoint commands later. This patch addresses this
issue by checking if service.name is available before accessing it.

Change-Id: I3dd686ef02a2e21e2049a49cb55634385c2ecfaf
Closes-Bug: #1406737
2015-01-04 11:26:18 +08:00
Jenkins
cbb26724fc Merge "Command docs: group" 2015-01-03 03:24:11 +00:00
Dean Troyer
3807354cfe Command docs: group
Fix up formatting for group command docs and help

Change-Id: Icda79842d52da90d5eac2b0fdbc0d576d371378d
2015-01-03 02:09:28 +00:00
Jenkins
6698f14fdb Merge "type should be required for v2.0 service create" 2015-01-03 00:47:25 +00:00
Jenkins
79f8ce6893 Merge "Command docs: ec2 credentials" 2015-01-02 23:03:42 +00:00
Jenkins
9d5a7c7c1b Merge "Rename column to default project id for long listing v3 user" 2015-01-02 19:11:45 +00:00
Jenkins
8132072630 Merge "Add docs for usage show/list" 2015-01-02 17:54:30 +00:00
Dean Troyer
b56da8dde2 Add endpoint v3 docs
(update: change version description formats for API versioning)

Change-Id: I499ea1d80ad6ad6392468305f761e695d7261e33
2015-01-02 11:29:07 -06:00
Dean Troyer
4f7777ca0e Command docs: ec2 credentials
Add ec2 credentials docs

Change-Id: I1699d1c8e9859153557081966654646966a3268d
2015-01-02 11:01:36 -06:00
Jenkins
6c0d4b82e0 Merge "Command docs: region" 2015-01-02 09:17:00 +00:00
Jenkins
ee912035ca Merge "Command docs: domain" 2015-01-02 08:50:15 +00:00
Steve Martinelli
e7ec6bc6e4 Rename column to default project id for long listing v3 user
Previously this column was coming up as empty, since user's
have a `default project id`, not just `project id`.

Change-Id: I3d7f7eb600e9526b9c6cc2a8c5d6009b9100b1f5
2015-01-02 02:39:44 -05:00
Steve Martinelli
480921d0e8 Add docs for usage show/list
Change-Id: Iaf911d69a0b63d705f8789a4640018a428b87be6
2014-12-31 14:21:48 -05:00
Dean Troyer
0720c78199 Command docs: flavor
Change-Id: Ie85ff7706ef08b70ab8ba99533465d90904cf393
2014-12-31 12:09:50 -06:00
Dean Troyer
f18f264ed7 Command docs: domain
Change the implementation of --enable|--disable on domain create
and set commands to our usual style.

Change-Id: I10f2b96281a114fa3cf3b001394844770b2a8632
2014-12-31 10:08:51 -06:00
Dean Troyer
b5ce0f145f Command docs: region
Fix up formatting fro region command docs and help

Change-Id: Icf8c03da38b30fc69e7fe70f9c14aaa99881d320
2014-12-31 10:07:14 -06:00
Steve Martinelli
caef59a4a8 Add docs for listing availability zones
Change-Id: I4c005e1d8089b46feca6cd3266f63c408648f074
2014-12-31 02:54:36 -05:00
Jenkins
60aec78c6f Merge "Catch exception when getting quota" 2014-12-31 02:43:43 +00:00
Jenkins
50a8377969 Merge "list availability zones for compute" 2014-12-31 01:54:05 +00:00
lin-hua-cheng
4a07e63e7e type should be required for v2.0 service create
Updated the service name to be optional, mostly matching the cli arguments
with v3 service create.
Implemented the following changes on service create:
- if only a single positional is present, it's a <type>.
  This is not currently legal so it is considered a new case.
- if --type option is present the positional is handled as <name>;
  display deprecation message
- if --name option is present the positional is handled as <type>.
  Making --type optional is new, but back-compatible
- Made --name and --type mutually exclusive.
- only '--name <service-name> <type>' shall appear in the help output

Change-Id: I8fd4adba3d8cd00d5a8cacc2c494d99d492c45a3
Closes-Bug: #1404073
2014-12-30 17:31:29 -08:00
Jenkins
5206278992 Merge "Add usage show command" 2014-12-31 00:02:11 +00:00
Jenkins
95313d0a2d Merge "Fix a few issues with 'usage list'" 2014-12-31 00:02:04 +00:00
Jenkins
694cd12cbd Merge "Command object docs: container, object" 2014-12-30 22:33:22 +00:00
Dean Troyer
d5caa6a26b Command object docs: container, object
Change-Id: Ie3df543a28cbee0cc809310a05f431c97b2c7e70
2014-12-30 16:09:54 -05:00
Jenkins
457f4c8998 Merge "Properly format 'attached to' column list when listing volumes" 2014-12-30 21:01:10 +00:00
Jenkins
8593b0a56a Merge "Allow service description to be set for KS V3" 2014-12-30 21:01:03 +00:00
Jenkins
be8cac9cea Merge "add doc for domain command" 2014-12-30 17:06:07 +00:00
zhiyuan_cai
7ea5f89043 Catch exception when getting quota
Quota show command will list both the quotas of nova and cinder.
But if cinder service is not enabled, EndpointNotFound exception
will be raised and thus the command is broken. Catch this exception
so quotas of nova can be listed.

Change-Id: If2d2820675aa6a12e407d608fed846b21c953b2d
Closes-Bug: #1390507
2014-12-30 09:53:26 +08:00
Steve Martinelli
5761a0f0b7 Add usage show command
Should show basic usage by project id, if not specified then
use the project id the user is authN'ing with.

Change-Id: I0284a5efd84075b18e1a7117cc9f8f7fecf16274
Closes-Bug: #1400796
2014-12-26 03:25:51 -05:00
Steve Martinelli
6e3c9a3d2d Fix a few issues with 'usage list'
* Added number of servers column, was missing
* Added a new line character after the initial usage message

Change-Id: I6c4e5bda6ba9ceafa92ecf13987c56d0bbe99961
2014-12-26 03:23:10 -05:00
Jenkins
3cb8b0ca6f Merge "Compute calls ignore region selection" 2014-12-24 18:00:20 +00:00
Jenkins
26dbad5cfb Merge "add doc for role assignment command" 2014-12-24 15:15:26 +00:00
Terry Howe
1927b03cc7 Compute calls ignore region selection
Calls to compute commands ignore region selection.  The region is
not passed to the get_endpoint call.

Change-Id: I1ccfc56d7cb27a00b8982232a40ace21f2c0e9a2
Closes-Bug: 1405416
2014-12-24 06:08:19 -07:00
wanghong
e5d71221ad add doc for group command
Change-Id: Iaaa0aeb42f9f940af63863f5d09011b5f7529281
2014-12-24 14:31:12 +08:00
wanghong
e3ba13b320 add doc for role assignment command
Change-Id: I594d444b6d1ec4e72bed03394178293737f26069
2014-12-24 14:23:25 +08:00
wanghong
d240b709b9 add doc for domain command
Change-Id: I8b5575a5f27362fa375746b955e1f17a5a8b29a6
2014-12-24 11:55:27 +08:00
lin-hua-cheng
36ab944d2e Allow service description to be set for KS V3
Change-Id: Ibf84882c9a9f408268c225190436fc1a534e1017
Closes-Bug: #1404997
2014-12-23 18:06:13 -08:00
Jenkins
a24d6e7c6f Merge "add multi-delete support for compute/image/net/volume" 2014-12-23 22:23:45 +00:00
wanghong
d8f1cbd984 add multi-delete support for identity
This is part2. Add support for these objects:
identity.project(v2.0)
identity.role(v2.0)
identity.user(v2.0)
identity.project(v3)
identity.role(v3)
identity.user(v3)
identity.group(v3)

Closes-Bug: #1400597
Change-Id: I270434d657cf4ddc23c3aba2c704d6ef184b0dbc
2014-12-23 09:39:29 +08:00
wanghong
470b7e53a8 add multi-delete support for compute/image/net/volume
This is part1, add support for these objects:
compute.server
imagev1.image
imagev2.image
network.network
volume.volume
volume.backup
volume.snapshot

Closes-Bug: #1400597
Change-Id: Ice21fee85203a8a55417e0ead8b509b8fd6705c1
2014-12-23 09:31:10 +08:00
Steve Martinelli
71d9c8b5b3 Properly format 'attached to' column list when listing volumes
Previously, no data was being returned for the 'attached to' field
when listing volumes. Dig into the the returned array to format
the column.

Change-Id: Iebd79e5ddcb4a335703d9b2675aa7128995de918
Closes-Bug: #1404931
2014-12-22 13:20:41 -05:00
Jamie Lennox
25a7c1f27f Don't import form keystoneclient.openstack.common
The keystoneclient.openstack.common directory is where we sync files
from oslo incubator. It is not a public directory and should not be
being consumed by openstackclient.

Change-Id: I011bb95c2c824e2dbc4b822ca922ae77b8d9b955
2014-12-17 18:17:56 +10:00
Steve Martinelli
381b47ff05 list availability zones for compute
Adds the command `os availability zone list`

Change-Id: I77bf52a9b84a62c3771a4838c9ea0c3af03eedb2
Closes-Bug: #1400795
2014-12-16 23:00:52 -05:00
Dean Troyer
1a25cbaf8f Followup for ec2 credentials command fix
Add functional tests for 'ec2 credentials' commands.

Also fix tenant_id in output for create and show.

Change-Id: I6ba3249b67408571624709e17f8aa2ac6d80237d
2014-12-05 22:21:32 -06:00
Dean Troyer
62a2083a78 Fix ec2 credentials commands for new auth
These commands were not updated for the new authentication model.

Closes-Bug: 1399757

Change-Id: I5d4beb9d1fa6914fef5e4c7b459cdd967e614b24
2014-12-05 12:54:22 -06:00
Jenkins
f6fc2db2ef Merge "Safely pop project parent id" 2014-12-04 22:11:51 +00:00
Steve Martinelli
13672123fc Safely pop project parent id
Since we don't support multitenancy yet, we should just pop the
parent id of a project. When keystoneclient supports mulittenancy
we should bring everything in at once (CRUD), and these changes
should be removed.

Change-Id: I82c7c825502124a24ccdbadf09ecb2748887ca5d
2014-12-04 15:34:02 -05:00
Dean Troyer
ac4950b46e Command object docs: server, server image
server
server image

Some cosmetic changes in the command source, sorting classes, help strings, etc.

Change-Id: I3f68dae77b9fe02bc6866684e05aeff943dd9cc3
2014-12-03 13:34:44 -06:00
Jenkins
cc54f989ec Merge "Add the ability to list projects based on a user" 2014-12-02 05:40:10 +00:00
Jenkins
2663e16389 Merge "Add support for domains when deleting identity v3 resources" 2014-12-02 00:43:03 +00:00