summaryrefslogtreecommitdiff
path: root/openstackclient
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge "Defer client imports"Jenkins2015-04-195-39/+73
|\ \ \ \ \ \
| * | | | | | Defer client importsDean Troyer2015-04-155-39/+73
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So we really weren't deferring the loading of client libs dadgummit, do that for real where possible. This shaves a couple of tenths off the static import times. Also defer as much import-time procesing as possible. This is a little ugly in api.auth but this also eliminates import of the auth plugins until they are needed. Change-Id: Ia11d4b9cf98231d37449103fc29101dc17afb009
* | | | | | Merge "Suppress warnings user can't fix"Jenkins2015-04-181-0/+5
|\ \ \ \ \ \
| * | | | | | Suppress warnings user can't fixDean Troyer2015-04-021-0/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requests/urllib3 started issuing warnings about certificates and SSL that our users are unable to do anything about. This is a very blunt way to suppress these warnings unless --verbose or --debug is supplied on the command line. Being more precise in the suppression requires importing the warning classes from urllib3 and dealing with the platforms where it has been unvendored from requests. Maybe in the future if there are concerns that this mutes too much otherwise. Change-Id: I50bb10a16222de12c5b95bfe042b92e43ea8ee7c
* | | | | | Merge "Print warning on authentication error"Jenkins2015-04-181-1/+2
|\ \ \ \ \ \
| * | | | | | Print warning on authentication errorTerryHowe2015-04-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least print a warning on authentication error. I have no idea why an exception is being ignored here because if there is no session, nothing is going to happen. This at least will print some useful warning: (.venv)terry@f350:~/python-openstackclient$ os flavor list --os-cloud pro WARNING: openstackclient.shell Possible error authenticating: __init__() got an unexpected keyword argument 'asdf' ERROR: openstack Authentication requires 'auth_url', which should be specified in 'HTTPClient' This error was caused by having a bogus value 'asdf' in the cloud.yaml for the cloud pro. Change-Id: Ie08432e0464cfa86b3b3f67ca29d3b7d23d2f46f
* | | | | | | Merge "Fix session timing"Jenkins2015-04-175-19/+71
|\ \ \ \ \ \ \
| * | | | | | | Fix session timingDean Troyer2015-04-075-19/+71
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subclass keystoneclient.session.Session to add the timing hooks to record the elapsed time returned by requests.Response objects, including the redirection history. Redirects are included individually and not rolled into the total time for the original request. This works for all clients that use OSC's session. Closes-Bug: #1402577 Change-Id: I9360c90c151579b89a37edb8c11c17feb15b3cb9
* | | | | | | Fix skipped image create attribute location attrMarek Aufart2015-04-171-1/+1
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Image create action accepts attribute called location, in method body is list of allowed attributes, which contain localtion, what is typo and this attribute was not passed to glance. Fixed. Change-Id: I357b06b63b8aa97f7a5f587ef3fcee7a4b360ed1 Closes-Bug: #1445460
* | | | | | Merge "Better help for --nic in create server"Jenkins2015-04-171-2/+9
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Better help for --nic in create serverDavanum Srinivas2015-04-151-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the help string from python-novaclient for a better user experience. Closes-Bug: #1444685 Change-Id: If7b8e3f68a0c6ad82b9959f162670b5568d5d12d
* | | | | | Merge "Add support to specify volume quotas per volume type"Jenkins2015-04-161-2/+10
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add support to specify volume quotas per volume typeSteve Martinelli2015-04-151-2/+10
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a --volume-type option to quota set, this will allow users to set quotas for volume attributes on a per volume-type basis. for example: openstack quota set admin --volume-type myvol --volumes 12 Change-Id: I3ce9cf82a65d4f012b339f0e0dedb752cb132c33 Closes-Bug: 1438377
* | | | | Merge "Use cliff deferred help instead of homemade one"Jenkins2015-04-141-32/+3
|\ \ \ \ \
| * | | | | Use cliff deferred help instead of homemade oneCedric Brandily2015-03-171-32/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes openstackclient homemade hack to defer help printing in initialize_app and uses cliff (new) option to defer help printing. Change-Id: Ie3e94ec96254745bfef8c5ff5abc405facfe1bea Related-Bug: #1316622
* | | | | Merge "Add warning message if unknown version supplied"Jenkins2015-04-142-0/+8
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Add warning message if unknown version suppliedTerryHowe2015-04-132-0/+8
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Print a warning message if an unknown api version is supplied. An attempt will be made to run the command anyway. Change-Id: Idec8e88fe9621f10ec4b7eecd90708fb3730f56f
* | | | Use glanceclient's inbuilt images findJamie Lennox2015-04-021-55/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | Glanceclient image listing was special cased as it wasn't implemented in glanceclient directly. This is no longer the case and we should use glanceclient's functions. Change-Id: If8d1246f1bd97c07f9f10f5457aa32124efa0be3
* | | Add support to remote_idMarco Fargetta2015-03-303-14/+292
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The federation APIs for the identity providers introduce a new parameter for every identity provider, named remote_ids, which contains a list of entity ID associated with. This parameter can be provided during the creation of the identity provider and can be updated at any time. For more information look at the blueprint: https://blueprints.launchpad.net/keystone/+spec/idp-id-registration This patch add the support to this new parameter in the command line by inserting the option "--remote-id" in the following commands: - "identity provider create" - "identity provider set" Additionally, the values can be read from a file, specified by "--remote-id-file", containing an entity id per line. Change-Id: Ie93340ee57e54128daa70d8a7bd0a9975ff7eef4 Depends-On: I12a262c55b5f6b5cc7007865edf30f14269da537 Implements: blueprint idp-id-registration
* | Merge "Add project and domain params to network create"Jenkins2015-03-243-0/+128
|\ \
| * | Add project and domain params to network createColleen Murphy2015-03-193-0/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, openstackclient has no way to specify to which project a network belongs upon creation. Instead, it uses the project ID that the user is authenticating with to fill the tenant_id column. This is a problem because an admin user is unable to specify a project for a non-admin network. To fix this and to improve feature parity with the neutron client, this patch adds project and domain parameters to the network create command and uses the given project name to look up the project ID. Neutron does not allow the project to be changed after creation, so no such parameter has been added to the neutron set command. Neutron calls the field 'tenant_id', but this change exposes the parameter as '--project' to support the newer terminology. If no project is specified, the client defaults to the previous behavior of using the auth project. Change-Id: Ia33ff7d599542c5b88baf2a69b063a23089a3cc4
* | | Add the ability to set and unset flavor propertiesMarek Aufart2015-03-192-4/+151
| |/ |/| | | | | | | | | | | | | | | | | Added flavor set and unset command which allow manage flavor properties called extra_specs. Command flavor show output was extended with these properties. Closes-Bug: 1434137 Change-Id: Ie469bade802de18aab9d58eda3fff46064008163
* | Base TokenEndpoint plugin on keystoneclient'sJamie Lennox2015-03-111-16/+5
| | | | | | | | | | | | | | | | Keystoneclient has always provided a TokenEndpoint plugin. Unfortunately it uses a different option name for url, so subclass the original and replace the options. Change-Id: I7e16b31ceb9f75f1c1f6bfb224d8f8f353d06150
* | Merge "Move OSC auth plugins so they can be found"Jenkins2015-03-105-105/+121
|\ \
| * | Move OSC auth plugins so they can be foundDean Troyer2015-03-105-105/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The plugin detection at the top of openstackclient.api.auth did not detect the plugins at the bottom of that file because, surprise, they had not been declared yet so the entry points were ignored. Move both plugin subclasses into openstackclient.api.auth_plugin. Fix a problem with the password callback that was otherwise made worse with this change. Closes-Bug: 1428912 Change-Id: Idc3b72534071e0013c8922884a8bc14137509a0f
* | | Merge "Add identity v3 catalog show"Jenkins2015-03-102-0/+78
|\ \ \
| * | | Add identity v3 catalog showTerryHowe2015-03-092-0/+78
| | | | | | | | | | | | | | | | Change-Id: Ia6b6c25eded43b899b3aa026227ad2859f1c67dd
* | | | Merge "Add identity v3 catalog list"Jenkins2015-03-102-0/+140
|\ \ \ \ | |/ / /
| * | | Add identity v3 catalog listTerryHowe2015-03-072-0/+140
| |/ / | | | | | | | | | Change-Id: Id4c1371ca28b9fd884ec75061edca700fd69886c
* | | Merge "Add ability for diplaying hypervisor statistics"Jenkins2015-03-101-0/+33
|\ \ \
| * | | Add ability for diplaying hypervisor statisticslin-hua-cheng2015-03-061-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new command 'hypervisor stats show' for displaying the hypervisor stats over all compute nodes. Change-Id: I4f98c69135b04d4f6cea67cd6350d5d99fb79dba Partial-Bug: #1423748
* | | | Merge "Fix catalog list when region name is absent"Jenkins2015-03-081-1/+2
|\ \ \ \
| * | | | Fix catalog list when region name is absentDean Troyer2015-03-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some service catalogs in the wild have services without region names defined. Let's be nice and stuff in a default value indicating this state. Closes-Bug: #1429211 Change-Id: I3ebe2534dc6e3438aaeddc7757fb2db4117eae4b
* | | | | Merge "Fix identity v2 catalog list"Jenkins2015-03-082-12/+26
|\ \ \ \ \ | |/ / / /
| * | | | Fix identity v2 catalog listTerryHowe2015-03-042-12/+26
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | The v2 catalog list was only printing the last endpoint in the catalog. Change-Id: I5401a11eedb3be1513c86261329de50c8ad82720
* | | | Merge "Add 'uptime' in 'hypervisor show'"Jenkins2015-03-081-0/+13
|\ \ \ \
| * | | | Add 'uptime' in 'hypervisor show'lin-hua-cheng2015-03-061-0/+13
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fetch the 'uptime' by making a call to hypervisor-uptime. Update the help for 'hypervisor show' to mention that it supports by Name or Id. Change-Id: I31060d203e87749cfc05810c2d9db42f2416051d Partial-Bug: #1423748
* | | | Merge "Raise AttributeError for unknown attributes"Jenkins2015-03-062-1/+2
|\ \ \ \
| * | | | Raise AttributeError for unknown attributesJamie Lennox2015-03-052-1/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not returning a value is the same as returning None. In the event that someone asks ClientManager for an attribute that doesn't exist it should raise AttributeError in the same way as other python objects rather than return an empty value. Change-Id: Id0ee825e6527c831c38e3a671958ded362fb96e1
* | | | Merge "Fix help messages"Jenkins2015-03-061-2/+2
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix help messagesRamaraja2015-03-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update help message for openstack security group rule delete Update help message for openstack security group rule list Change-Id: I017ffd424ca25b6c62193b91068eb1ba7de6c919 Closes-Bug: #1417854
* | | | Merge "Add hypervisor docs"Jenkins2015-03-061-7/+7
|\ \ \ \
| * | | | Add hypervisor docslin-hua-cheng2015-03-051-7/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: I444734925316e876afcbfdeffafea9973a837022
* | | | | Don't hack the image urlMonty Taylor2015-03-052-4/+12
|/ / / / | | | | | | | | | | | | | | | | | | | | It's actually breaking usage against HP Public Cloud. Change-Id: Ic172786c6d1272798b768078a0bcf246f8d64ca8
* | | | Merge "Rename --verify for server resize to avoid conflict"Jenkins2015-03-052-8/+8
|\ \ \ \ | |_|/ / |/| | |
| * | | Rename --verify for server resize to avoid conflictzhiyuan_cai2015-02-162-8/+8
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently server resize command has a verify argument for user to confirm resize operation. But this argument is also registered by openstack client shell which is used to enable server certificate verification. So verify argument can not be correctly passed to server resize command. This patch renames --verify to --confirm (nova client has a resize-confirm command) to solve this problem. Change-Id: I751aa3df16c3b637b82944dd350afc5cbab62120 Closes-Bug: #1416542
* | | Handle novaclient >2.20.0Dean Troyer2015-03-033-11/+19
| |/ |/| | | | | | | | | | | | | | | | | As of 2.21.0 novaclient moved all of the v1_1 classes to v2 with a deprecation warning. The version-non-specific interfaces provided in novaclient.client are insufficient to support a few specific commands in OSC so we need to conditionally import directly from the correct classes. Closes-Bug: #1418024 Change-Id: I864b1908737803069dc1419c9cbca391b985c932
* | Merge "Fix error msg in sort_items"Jenkins2015-03-021-1/+7
|\ \
| * | Fix error msg in sort_itemszhiyuan_cai2015-02-111-1/+7
| |/ | | | | | | | | | | | | | | Include direction users pass in the error msg to help users know which part of the argument is troublesome. Change-Id: I796a85fbf40f6ddf544fb52a61f967e1914abdcc Closes-Bug: #1420732
* | Merge "Fix auth-required for help command"Jenkins2015-03-024-59/+89
|\ \