On POST requests, keystone should return '201 Created' according to
api docs.
Related to but not dependent on:
https://bugs.launchpad.net/keystone/+bug/1131119
Change-Id: I04c398ad7946f5ddcfd2059e4f8d97608e5d0ed3
Fixes: bug #1131845
For unknown reasons all tests continued to pass even after
this change was introduced, besides that being a very odd thing
to have happen it is better to fix said attributes for those
that are running the tests individually in there own CI pipelines.
Change-Id: Iee6acc1d4a528afb840459ca47d754ec7bae8f32
follow on to previous attempt to fix to bug 1116302,
looks like we missed an import
Fixes LP#1116302
Change-Id: If56e3cedaa63a594907bb851a2701bd64806ed85
This is dependent on nova change:
I4f8f677af58afcb928379e5cf859388d1da45d51
Related to blueprint network-adapter-hotplug
Change-Id: Ieef603e85c6557cbfd2fe4ae7109e6ca235ba51d
Currently novaclient doesn't use the limit or marker params.
As a step to addressing bug 1001345 which requires pagination,
this patch introduces the use of limit as an option
passed to the image-list function.
Change-Id: Ia32f9e923b4eb9bcdde3b7bc1722c59d7791d104
Added unit tests for shell code, that wasn't covered before.
Implements: bp/python-novaclient-unittests
Change-Id: I76e3df05d53e6c08e224feb30eb90ae819d8cdce
Issue was identified in the review for the previous
patch for bug 1116302. Took this chance to rename _IOError
to a better name (KeyringIOError)
Change-Id: I321353d519eaebea27617702f92ecafe2052eb8e
When novaclient is in debug mode then the HTTPClient will
configure its logger with a StreamHandler that holds an
instance of thread.lock, which cannot be copied. As a result
running novaclient with the --debug flag will cause errors
and mask real issues being debugged.
Fixes bug 1123561
Change-Id: Idf19d62ff3e5b02b029f9089f403a697164231ac
Using novaclient with some extensions via python code, you might have an
invocation like this:
extensions = shell.OpenStackComputeShell()._discover_extensions("1.1")
novaclient = Client("1.1", user, apikey, project, authurl, extensions=extensions,
endpoint_type=shell.DEFAULT_NOVA_ENDPOINT_TYPE,
service_type=shell.DEFAULT_NOVA_SERVICE_TYPE)
If you have an extension like 'myextension.py' in the v1_1/contrib directory, you'll
end up with a very sensible attribute on the resulting novaclient object, i.e.
novaclient.myextension
If you have a package distributed in the package myextension_python_novaclient_ext,
then it'll automatically be picked up as an extension (awesome!) but the name is not
as intuitive.
novaclient.myextension_python_novaclient_ext
This patch simply changes this to allow the Extension to provide a name for itself.
The possibility of collisions exists, but is not really any more significant than
before (where you might have different versions of the same package installed in the
system or heck, even a bizarrely named 'myextension_python_novaclient_ext.py' in the
contrib/ directory).
Fixes bug 1058366
Change-Id: Ie68463ffd7a939744e035b20fd50a7dc8da605de
find_network_password_sync throws a gnomekeyring.IOError
when a non-root user tries to run nova client
from a ssh console. If we don't catch this exception nova client
throws the traceback (shown in the bug report) and stops.
If we catch this exception (just like we catch ValueError),
and return None, Nova client executes just fine.
Fixes LP# 1116302
Change-Id: If6937b3f8eafb1dc55224b2ca2bd0f93ae07f8c6
This adds an additional command to list the interfaces associated with a
baremetal node.
It also fixes some docstrings and renames the existing interface
commands to be more consistent with the node commands.
Change-Id: Ia6ae383d76adb1c9d632bf69ec22438f1412c66f
Aggregates do not require an availability zone any more, but in order to
keep the current API, allow for availability zone to be set to None (the new
default value)
Fixes bug 1123468
Change-Id: I216c4fc808a91b0a5f602ee02ae1bca46adb73f4
Fixes a regression introduced in commit
c73afa9fd1df14bff9186c1e73ac8f3593ef81db.
This completely breaks Horizon in last
DevStack version.
Change-Id: Ib754c6ea325534399a34ff76a290475ac652fea9
Fixes: bug #1122958
This adds --html and --xml options to 'nova coverage-report'
to enable selection of coverage report format.
If specifying none of these, text-formatted report will be created.
This also adds --combine option to 'nova coverage-start' to make sure
that 'nova coverage-report --html' works fine.
Fixes bug 1114766
Change-Id: I9fee26bd5c45cac35f425ac7abbced4e2f3ff4df
The requests module dropped all configuration with the 1.0.0 release.
There's no danger_mode and no 'verbose'' mode. The former
shouldn't be necessary anymore and the latter can be done by setting
a different log handler for the request.logging root logger.
Change-Id: Iec169ef6e39097814cdbf1b777bc0590236692ba
When using "nova x509-create-cert", the private key should be written to
a file with the permissions 0400, not (world-readable) 0644, in line
with how ssh private keys are treated.
bug 1112605
Change-Id: I0b20378efba38fa58f4ad9a33cd15b3432ebb8a2
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Adds a --fields argument that sets the fields to display.
ID is always displayed.
Fixes bug #1076473
Change-Id: If3462e6a490ea16da4834a7f40f96b111c9e8227
Adding "availability-zone-list" sub-command allow user list all
availability zones and its status in a region.
* summary list for normal user: list availability zones summary whitin a
flat view.
* details list for administrator user: list availability zones details
within a tree view, include zones, hosts and components.
Implement one workitem for bp:show-availability-zone
Change-Id: Id87fe470c7e0f6fbfb9465551f63717724b5fc18