Add a new cli argument (--timeout) which
is by default 600 seconds which will be
set in the requests library so that timeouts
can occur correctly.
Change-Id: I716ac15fe08f42c9464ee43010bc8fd2667bcbde
* Implement correct certificate verification
* Add --os-cacert
* Rework tests for requests
Pinned requests module to < 1.0 as 1.0.2 is now current in pipi
as of 17Dec2012.
Blueprint: tls-verify
Change-Id: I9a25a94c8dfcaf483c4c8328439809d65cf10b38
The commit to replace --os-no-cache with --os-no-cache works fine
with the cli options, but the env variable is stored in os_cache
which has the opposite of the intended effect. This patch converts
the variable to a bool and then inverts it before it stores it
in os_cache. This makes it work properly again.
Fixes bug 1089696
Change-Id: Iea12806603ecdc39c6475ad4d6f867ebb1e01633
Deprecates the old --no-cache option in favor of --os-cache.
The old CLI args (--no_cache and --no-cache) and ENV option
(OS_NO_CACHE) are still supported but no longer show up
in help.
The new option for --os-cache can also be set via the OS_CACHE ENV
variable... which now defaults to False. This should be much more user friendly.
Fixes LP Bug #1087776.
Change-Id: I3cea089c7e11ce75f22c2d7f3242b02b80441323
Currently, nova client can only discover extensions in two ways:
1. Installing the extension in the novaclient/v1_1/contrib/ directory.
2. Installing the extension in the top-level python path or modifying
the path to be picked up by pkgutils.iter_modules()
This patch allows a third, more flexible option of discovering
extensions via entry points. This means the extension can be
installed anywhere and entry points can be registered with python
to be picked up by pkg_resources.iter_entry_points().
To register an entry point, simply add the extension module to
the setup() call in setup.py like this:
setuptools.setup(
name='mydistribution',
packages=setuptools.find_packages(),
entry_points={
'novaclient.extension' : [
'foo = mydistribution.mynovaclientexts.foo'
]
},
)
Change-Id: Ic1e223a9173546131e742506897f585f4ac65767
When calling nova without arguments you'll receive the following
output:
error: too few arguments
Try 'nova help ' for more information.
Changing 'and' to 'or' the help is also shown when calling nova
without arguments. I think that's the expected behavior.
Change-Id: Id14f0292ad00e6e45ad66dd010f449c3abbf3871
Fixes bug 934081.
Previously, manipulating secgroups with Unicode names would fail
in _get_secgroup, due to the command-line argument being a raw
byte string, and the secgroup name from cs.security_groups.list()
being a Unicode string. This causes a UnicodeWarning and the
"if secgroup == s.name" test to fail for the desired secgroup, so
secgroup-add-rule and secgroup-delete would fail.
This change converts them to byte strings for comparison, fixing
these commands.
Likewise, error messages containing Unicode secgroup names would
fail to print. (i.e. "Security group <x> already exists")
Change-Id: Ie90cb49b8f11e3283fe509e95a8e9fd468cc9892
This changes every command-line option with a '_' in its name
and changes them to '-'. The old option names are maintained
for backward compatibility but are no longer in the help text.
BP command-options
Note: there is a dodgy hack in novaclient/shell.py to handle
usage-list's --end option that conflicts with --endpoint-type
if --endpoint_type is also present for backward compatibility.
If --endpoint_type is not added to the parser it works. Go figure.
Better solutions that do not break backward compatibility are welcome.
Rebased due to https://review.openstack.org/11072 merging.
Note: --availability_zone changed to --availability-zone with no
backward compatability since this s a new option.
Change-Id: I09ab546659be0a0d3f0eadb22ab5e13fac2f059d
- Remove the NOVA_RAX_AUTH hack and provide (temporary) compatibility
with the new system.
- Example plugin for RAX and HP provided here :
RAX - https://github.com/emonty/rackspace-auth-openstack
HP - https://github.com/emonty/hpcloud-auth-openstack
- Plugin are allowed to specify their own auth_url directly.
- Thanks to mtaylor for helping on this.
Change-Id: Ie96835be617c6a20d9c3fc3bd1536083aecfdc0b
Will use and/or store your Openstack Auth token in the operating
system's keyring if available. Cuts about a 1/2 second off operations.
Change-Id: Ibe2dc0c49baefd23afe3844a78c1df884a4fb7c7
--timings = show timings for each call made to nova (including auth)
--bypass_url = api node endpoint to use instead of one from service catalog
For example:
nova --timings --bypass_url=http://10.24.31.37:8774/v1.1/nova-staging boot --image f304d266-0a49-4877-b34c-63aea8360297 --flavor 3 delete_me_2
Change-Id: Ib2a258b7e969ad56ce4ee2bd64c61310278cb856
example without patch:
nova [...] flavor-delete 123
ERROR:
example with this patch:
nova [...] flavor-delete 123
ERROR: Flavor 123 could not be found. (HTTP 404)
fixes bug 981286
Change-Id: I9c5cead521e48b4970850262fb9af279ec5a7753
With no other arguments, '--help' now outputs the same as 'help', so
that the list of subcommands are no longer omitted. Additionally,
'$subcommand --help' now yields the same output as 'help $subcommand'.
Change-Id: Iabd926574e296ad14b622862b9fba038fdede66e
Previously we were giving advice like this:
"Try 'nova volume-show help' for more information."
Bad advice -- that doesn't work. Now when there's a subcommand
specified we make a proper suggestion:
"Try 'nova help volume-show' for more information."
Change-Id: I6ef49f9e4e1b67074f51ab442abd4a196d437b00
Output 'nova help' on error rather than `nova'
Change-Id: I71c3fb6786472c42b0bfd93a085168ba75d37590
Old-Change-Id: I67360589a4af5697d3f90afa74b8504eefaf4976
Change the argument names used for common Keystone authentication per the
updated http://wiki.openstack.org/CLIAuth:
--auth_url -> --os_auth_url
--password -> --os_password
--username -> --os_username
--tenant_name -> os_tenant_name
--region_name -> os_region_name
All old args are depricated but available for backward compatibility.
Fixes bug 954531
Change-Id: Ic67c447e4e4b8d793f587c789cecd149446194f3
* Depends on https://review.openstack.org/#change,4479
* Adds support to change service type including tests
* Adds decorator for methods that need to use another service type
* Changes volume and snapshots to use the volume endpoint
* These extensions will move into the volume client once it exists
* Fixes bug 940017
Change-Id: I683e4ca6c67e278d8aa8a9acec3dc0f1872f43f2
This is declared as NOVACLIENT_UUID_CACHE_DIR.
Resolves bug 932468 , defaulting to previous behaviour.
Added myself to AUTHORS
Change-Id: I154500517d7c882a4a090588a95f4b3bfee70595
Particularly to pythons logging infrastructure, and to always print
a backtrace if the CLI throws an exception. Show --debug in the
help output since end users may certainly have legitimate reasons for
wanting debug output.
Change-Id: Icfdaaf5511db8eecbf650e7ef4437b342b560141
Depricate --apikey, --projectid, --url (though still present for
compatibility). Fully support OS_* env vars per
http://wiki.openstack.org/CLIAuth Password Flow.
Fixes lp897304
Change-Id: I655631194ed62133c24f30c9114e6fdc0fa77636
fixes bug 920474.
the nova client was not defaulting to version 1.1 unless NOVA_VERSION was
set. This makes version 1.1 the default if NOVA_VERSION is not set in the
environment.
It also makes shell.py usable from a git checkout as in:
PYTHONPATH=$PWD python novaclient/shell.py image-list
Change-Id: I02b7e060d1c0694639fcb146a7394b92014c140b
Added @unauthenticated decorator to mark subcommands that do not
need authentication. And checks to skip authentication for these
commands.
Added novaclient.keystone to setup.py
Change-Id: Id2fd60af305c30a950bdbae8f897192bfae4d797