759 Commits

Author SHA1 Message Date
Dean Troyer
1ecf1bee2d Begin low-level API for Image v1 and v2
image list for v1 and v2:
* Add --public|--private to command parsers
* Implement local public/private filtering for v1 image_list()
* Pass public/private filter to server for v2 image_list()

Change-Id: Ie7c24ea2d1bf2b3b1b7fa342eb45fee45894634d
2015-01-20 17:01:23 -06:00
Jenkins
c9c28dc31d Merge "Add version url config workaround" 2015-01-19 18:08:53 +00:00
Jenkins
b9e50a716d Merge "Add helpful messages when authN'ing with password" 2015-01-16 21:14:08 +00:00
Jenkins
ee62718dc8 Merge "Update service clist commands for v2 and v3" 2015-01-16 20:52:07 +00:00
Dean Troyer
c2c3f2e0f2 Update service clist commands for v2 and v3
Changes to the 'service list' commands for Identity v2 and v3:
* Document support for --long
* Add Description to v3 output with --long
* v3 output is now (ID, Name, Type), with (Description, Enabled) added with --long
* Change v2 output to match v3 output, with the absense of Enabled.
* Update doc to match

Closes-Bug: #1411337
Change-Id: I999e3df22f61350cdeba63bbb7d01145c2ffeeaf
2015-01-16 12:59:14 -06:00
Steve Martinelli
1d75edb167 Default user domain id and project domain id
If either of OS_USER_DOMAIN_ID or OS_USER_DOMAIN_NAME are present
then we don't tinker with anything. Otherwise, we should set
the USER_DOMAIN_ID to 'OS_DEFAULT_DOMAIN', as this provides a better UX,
since the end user doesn't have to specify these arguments.

Same logic applies for OS_PROJECT_DOMAIN_ID.

Closes-Bug: #1385338

Change-Id: I8a4034c16a1dd50d269f809abab8e960d5de20f7
2015-01-16 02:52:15 -05:00
Steve Martinelli
fff4a1cd23 Add helpful messages when authN'ing with password
Setting up auth options can be complicated, and we currently don't
do any checking before we build all our auth parameters to send off
to keystoneclient. We should do some basic checking to guide new
users.

Change-Id: I9c88f1c9637b3870c151952ecc797aaf65be271a
Closes-Bug: #1400531
2015-01-16 02:41:24 -05:00
Dean Troyer
d3b87d7795 Add version url config workaround
This subclasses KSC's generic Password plugin to allow version discovery with
default Keystone configurations that leave admin_endpoint and public_endpoint
at the default values (http://localhost:xxxx).  This patch copies the scheme
and netloc from the original auth_url into the URL returned from version
discovery if the returned netloc begins with 'localhost'.

Due to the specific nature of this review, the Keystone team is not
inclned to include it in keystoneclient so it is addressed here.

Closes-bug: #1410364
Change-Id: I877fe74d86aab3a63122a07b77d1302a007f5b30
2015-01-15 13:51:31 -06:00
Jenkins
9057cedfd4 Merge "Deprecate project usage list command" 2015-01-15 18:02:34 +00:00
Vladimir Eremin
3296781b2c Use session for neutron client
python-openstack client is now using sessions to create clients. This
patch implements creating Network client using sessions.

Related to c3c6edbe8a083aef0fb6aea3cb461ff8e715fc59

Change-Id: If90ac705eb11dfc1e3abbe2ce18c3d8ccefdbdfb
Closes-Bug: 1411179
2015-01-15 10:33:39 +00:00
Jenkins
8dd8cdcdfe Merge "Check if service.name available before access" 2015-01-15 07:34:36 +00:00
Dean Troyer
bc11c4d7d8 Deprecate project usage list command
Rather than pointing the 'project usage list' entry point directly to
ListUsage, this makes a ListProjectUsage subclass to alias the desired
command and still allow for changing behaviour or issuing a deprecation
messages.  This implementation simply sets a new 'deprecated' attribute
in the command class that cliff will use to skip this command when
generating help output.

The actual skipping of the command in help output is dependant on
https://review.openstack.org/147349 merging in cliff, this review will
simply have no effect on help output until a version of cliff with
that update is present.

The deprecation message printed is somewhat generic until
https://review.openstack.org/147381 is merged in cliff.
Until that is merged, the deprecation message will not have the name
of the actual command given by the user in it, but rather the text
'this command'.

Closes-bug: #1406654
Change-Id: Ie08d4f88d71a660fca1862405351109cd0aa86b6
2015-01-15 00:04:55 -06:00
Jenkins
4a8a2fb27d Merge "Rework role list v2 for --user and --project" 2015-01-13 22:35:21 +00:00
Jenkins
dee071528d Merge "Command doc: policy" 2015-01-13 07:45:22 +00:00
Jenkins
872e509ca5 Merge "Tweaks to the catalog doc and show command" 2015-01-13 07:45:15 +00:00
Jenkins
2525ec4e52 Merge "Fine tune some of the helps commands" 2015-01-13 07:41:47 +00:00
Steve Martinelli
c04b49ef07 Tweaks to the catalog doc and show command
Looks like providing a service id isn't working, so it the help
message was reduced to just type and name.
Added a bit more to the docs, too.

Change-Id: Id7f8b48bdf99773ad55ca7f204f3c779f84633d5
2015-01-13 05:59:38 +00:00
Steve Martinelli
019c155e9b Fine tune some of the helps commands
try and add some consistency with the show and delete commands.

replace 'show x' with 'display x'
change 'delete a y' with just 'delete y'

Change-Id: I47dfa8ee23ac5c41b355796415eb515155832f65
2015-01-13 00:58:57 -05:00
Steve Martinelli
673e0d88ff Command doc: policy
Also tweaked a bunch of the code to not show 'blob', but 'rules'
instead.

Change-Id: I6db798d272ff416a77f169c0e912d2096fa02504
2015-01-12 21:59:44 -05:00
Steve Martinelli
b17c475f8a Upgrade hacking to 0.10
Also resolve the only error that was produced.

Change-Id: Ic81ab01aa0cddc15bb27419d7fec3e5a6d4ec0c7
2015-01-12 15:22:39 -05:00
Jenkins
a7a1a576e0 Merge "fix some small issues in catalog show" 2015-01-12 18:14:44 +00:00
Dean Troyer
6ebbd278cf Command docs: add service
Co-Authored-By: Lin Hua Cheng <os.lcheng@gmail.com>

Change-Id: Icd39e6d769fd4c4797fcf4ef9eb97c71ed166b3b
Closes-Bug: #1404434
2015-01-12 05:22:52 +00:00
wanghong
a8f60a8aa1 fix some small issues in catalog show
I think there are three issues we should fix:
1. wrong indentation of 'continue'
2. currently, name is optional for service, but according to the
   currrent logic, if a service doesn't have name attribute we will
   select it anyway
3. we always loop all catalogs

Change-Id: I9fce66677affa396b6a12afea76e87cab9215a58
2015-01-12 12:08:43 +08:00
Steve Martinelli
ffb7832159 Rework role list v2 for --user and --project
`os user role list` does the same as v3's `os role list`.
We should rework v2's `role list` to basically call `os user role list`
under the covers.

Closes-Bug: #1409179
Change-Id: I9839f6be139d6a6a3f6bbf79957e218dd8e03fe3
2015-01-10 01:02:33 +00:00
Steve Martinelli
d2943d2592 Command doc: access token
Change-Id: I1b7103e28273f0a63c7d6b6003317b9e69702b05
2015-01-09 09:20:29 +00:00
Steve Martinelli
d9c217e5bc Request token authorize
Command doc and tweaks to the code

Change-Id: I8f251bf9ca77f16b01a509844e79ddde82048b0d
2015-01-09 09:20:24 +00:00
Jenkins
f8d4dd25b4 Merge "Command doc: snapshot" 2015-01-09 09:17:42 +00:00
Jenkins
c7d7866b0c Merge "Fix up snapshot command" 2015-01-09 09:17:34 +00:00
Jenkins
32c933528b Merge "Request token creation docs + tweaks" 2015-01-09 08:38:46 +00:00
Jenkins
bf964810b7 Merge "Command doc: consumer" 2015-01-09 08:38:39 +00:00
Steve Martinelli
460b530d8b Command doc: snapshot
Change-Id: Ibe5cd0a8422788762e0c52b702b7bd54e6a46813
2015-01-09 03:14:08 -05:00
Steve Martinelli
0170733270 Fix up snapshot command
Several issues with the current snapshot command were resolved:

  * --long for list was added to include volume id/name, and properties
  * changed output from metadata to properties
  * added new option to set properties with 'snapshot set'
  * added new command to unset properties with 'snapshot unset'

Change-Id: I5902cfe876cefada701d4d658a50a4282ff300d6
2015-01-09 03:04:31 -05:00
Steve Martinelli
0d7a50d384 Command doc: image
Change-Id: Ib1563b58351315dc2a44ad77882f8c834a1214c0
2015-01-09 00:16:21 -05:00
Jenkins
f38d6e7aee Merge "Allow user list to filter by project" 2015-01-08 23:07:12 +00:00
Jenkins
b7a130ff44 Merge "Command doc: federation protocol" 2015-01-08 23:07:06 +00:00
Jenkins
1dd6112501 Merge "Command doc: identity provider" 2015-01-08 23:06:59 +00:00
Jenkins
0af779a91b Merge "Command doc: mapping" 2015-01-08 23:06:13 +00:00
Jenkins
c1f28bf7ca Merge "Command doc: backup" 2015-01-08 23:04:59 +00:00
Jenkins
e252bae4c7 Merge "Fixup backup list output" 2015-01-08 23:04:51 +00:00
Steve Martinelli
6025fa83f1 Request token creation docs + tweaks
Added command docs, and changed request token to take in name or
id of a project, and also support a domain option.

Change-Id: I87363274e5b7a0c687e234f5a4bcaaf166d28840
2015-01-08 22:28:26 +00:00
Steve Martinelli
c885c72cba Command doc: consumer
Change-Id: Ie687e1d7f80810106a64204828299f9d143b8d7c
2015-01-08 17:28:09 -05:00
Steve Martinelli
0ff28d5251 Allow user list to filter by project
Adds a --project filter to `os user list`, which really
calls the role assignment manager behind the scenes.

Change-Id: I57a75018f12ed3acdf8f6611b6b58bd974f91da2
Closes-Bug: #1397251
2015-01-08 16:49:17 -05:00
Steve Martinelli
a0c63dedf4 Command doc: federation protocol
Change-Id: I1289eb0caf31fca21c5c377cf13aebd1434a00ee
2015-01-08 21:41:43 +00:00
Steve Martinelli
c9cf126a83 Command doc: identity provider
Change-Id: Ie73accfaa3d45205a2521e6e61efd16142c460b2
2015-01-08 16:41:28 -05:00
Steve Martinelli
e8be3b64c1 Command doc: mapping
Also tweaked the code for `mapping set` as it was previously
using cliff Show instead of cliff Command.

Change-Id: I0ea1383a9f2dddf4b2f717b2aa16bbd60ab1720c
2015-01-08 16:39:06 -05:00
Steve Martinelli
79d0e21a45 Command doc: backup
Change-Id: Iecd4dbddea637bd6540d94b37253a9ba434c9db3
2015-01-08 21:05:19 +00:00
Steve Martinelli
55b8540374 Fixup backup list output
Name and Description were not appearing at all, and we didn't have
a --long alternative, which had a bunch of useful information.

Closes-Bug: #1408585
Change-Id: I7ca42a8d23ad60f6b9cc862799cb08a3e491b6e8
2015-01-08 21:03:47 +00:00
Steve Martinelli
265ca582f0 Command docs: volume
Change-Id: Id1e500d5fb19ffdeb0d1bde9e22c3143c0873d0c
2015-01-07 16:58:12 -05:00
Steve Martinelli
ca92608974 Command doc: volume type
Change-Id: I7e36daa027639d6a782043d4181c1b328335975a
2015-01-05 21:46:32 -05:00
Jenkins
32c15633f4 Merge "Add endpoint v3 docs" 2015-01-04 05:07:50 +00:00