Add a useful extension that will show you what
openstack api extensions are available for usage
and print out the result into a nice little table.
Useful as a example for others to base contrib/
extensions off of.
Example @ http://paste.openstack.org/show/20989/
Change-Id: I5b72f5ea73c00f1c1a0f09f670d744c820e05837
Addresses bug 1061848.
Basically, this bug comes about from not properly
setting up the auth_system for novaclient. In this
case, an exception of EndPointNotFound is flung.
Change-Id: I12533aefd9d0425dd83e2e4c63f4dd5ff6faae71
As pointed out in https://review.openstack.org/#/c/13708/ command line
arguments should have higher priority.
Also, do not fail if the environment variable is not representing an
int.
Change-Id: Ie6cd5b2d6aae47236ba0fe6d594d0c8095e9e422
This is needed for data that we don't read from IO directly, since we're
base64-encoding the user data, and this requires ther user data to not
be of the unicode type.
We're being tolerant, as we'll accept user data that is already in a str
object.
Fixes: bug 1049161
Change-Id: I4320670de564c8029c7aef14da2492c6f8752efe
The list and secgroup-list commands have this option, and
nova-volume/cinder respect this search option too nowadays.
Change-Id: Ie95432727dec9702e09a0ce314bf418f6a36b799
nova volume-create and nova volume-snapshot-create do not display
the data returned from the api. This makes it difficult to find
the id of of the newly created object.
Fixes bug 1053432
Change-Id: Ie25566f4e7d05d98421a5ea9e75521d40282a40d
Fixes Bug #1052161
"python setup.py build" fails on Windows due to a hardcoded shell path:
/bib/sh
Change-Id: I34f58ea09317c0be6ac23c5d9591bc83bc78782b
Fixes bug #1051007
httplib2 defaults to using HTTP CONNECT tunnelling even for plain HTTP
connections. This is problematic with proxies configured to only allow
tunnelling to port 443. This is the default configuration for squid.
Hack around the problem by forcing httplib2 to use the HTTP_NO_TUNNEL
proxy type which disables tunnelling except for port 443.
Change-Id: I59cd95ed74a9bb795779fc38fbc0935266cc8b22
Related to bug 1046054.
Once I6157e408 lands, we will be respecting the all-tenants search option
in the security groups retrieval API. Hence the CLI should be capable of
adding this option when appropriate.
Change-Id: If1217a5ffc7316e4661326c38da9b2956424ab05
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
Add flavor extra specs so that user can list/set/unset
extra specs in nova client
blueprint extra-specs-in-nova-client
Change-Id: I6ad7293e29764648c79943c4d05f3a09931af411
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Running show against an instance UUID calls for the
instance/flavor/image data. This patch allows --minimal
to be passed and the extra lookups will be skipped.
Change-Id: I76e9ac58a67b7cb595ca08c173ec9758119b46ae
Legacy users of novaclient may not pass all of the new nic args,
so this patch only passes them on if they are set.
Fixes bug 1044231
Change-Id: I1c8323a3a09613ad4e8dfcc1dfe379dbda50f125
novaclient current throws an image not found error when you use the 'show'
command against an instance that was built from a snapshot which was
subsequently deleted.
Change-Id: If950b4582d0af9947c30fb24eea78a0829edecf3
When novaclient gets a Connection Refused it now presents that as a
ConnectionRefused exception with appropriate information rather than as
an HTTP exception. Addresses bug 1047078.
vagrant@precise64:/opt/stack/python-novaclient$ nova image-list
ERROR: ConnectionRefused: '[Errno 111] Connection refused'
Change-Id: Iebf4d78a524004d5e79d2219b35f90fbd38ee690
Fixes bug #1045456
The date range in Nova's os-simple-tenant-usage is expected to be in UTC
time since launch/termination dates are stored in the DB in UTC time and
we use the client supplied parameters to query DB without conversion.
Switch from using datetime.today() to datetime.utcnow() to fix the issue.
Add a test for the default date range.
Import timeutils from openstack-common so we can control the return value
of utcnow() in the tests.
Change-Id: Iac77e3a4cc9561714d1492c54cef931f9764531e
- When debugging with switch --debug display show the POST request directly
in the curl command line making easy to copy and paste.
Change-Id: Id62ef2c32a3e9d492dd2d34c4bd7575bda10eb0f
A small change to fix a doc sting mistake and a string formatting
error on floatingIP. Fixes bug 1043906.
Change-Id: I212e317efb81afdb450fd79f16552fd393e86bd9
This fixes bug 1042158 and is a port of
Josh Durgin's fix to python-cinderclient
Patch set 2, remove unnecessary secondary option for
image_id
Change-Id: If028f784f1c6de9b47705cb580711849d1c00060
blueprint project-specific-flavors
This change implements client bindings for the project specific flavor API in following change
https://review.openstack.org/#/c/11270/
Change-Id: Id8d559985f9369f53926e63ee5f5ce23a051e25b
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