Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3.
Since future development(microversioning) will be done across V2,
implementation should be done in appropriate module(to prevent misleading).
Despite the fact that implementation for all versions are equal, discover
method for contrib path worked only for v1.1. This patch fixes this bug and
modifies shell tests to check all versions.
Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b
To remove aliases for `arg` and `env` functions in novaclient.utils,
we should use `arg` and `env` directly from cliutils in novaclients modules.
This patch removes aliases in `novaclient.utils` and starts using
`args` and `env` from novaclient.openstack.common.cliutils directly.
Change-Id: I4585adae62bc66ad6bc9d19be10d4679bb3dc5a1
Module gettextutils from oslo-incubator was graduated to separate
library (oslo.i18n) and removed from repository, so we should use
new library.
Change-Id: I15d36ac5a2bb88b332ffa38d29488b75c55a20a9
Using the existing server live_migrate api, this new feature,
adds the ability for admins to live-migrate all running instances
from one host to other hosts. The patch implements the feature
for Nova API V2 and API V3.
Co-Authored-By: Cédric Soulas <cedric.soulas@cloudwatt.com>
Change-Id: Ie8dd1b66fb8eaefa6ff38752b1e4f46bab145820
Implements: blueprint host-servers-live-migrate
Adding nova client functionality to use the auto find
destination host for evacuate.
This change makes the target host optional
on evacuate command.
Partial Implements: blueprint find-host-and-evacuate-instance
Co-Authored-By: Leandro Costantino <leandro.i.costantino@intel.com>
Change-Id: I4e6b52df9c55b223c8693058d73125962cff4d16
Currently nova baremetal-node-list doesn't display the
list of MAC addresses for each node because this is part
of the interfaces object, and not a top level field.
It also doesn't display the task state, which is very useful
when trying to find which nodes have failed to build.
This change fixes both issues
Change-Id: If7a3bcab1220be400519ac811bd727ca8ff85827
Closes-Bug: #1308147
This adds support for the os-server-external-events extension in nova,
which allows other services to deliver events to nova.
It also adds a shell command to trigger the "network-changed" event
manually, which will cause nova to refresh its network cache from
neutron.
Related to blueprint admin-event-callback-api
Change-Id: I1a302a43b6b7a6d8bdc03965a8f4c1a151bcab88
Module py3kcompat was removed from oslo-incubator. We need remove its
usage in client side firstly. This make us move smoothly when sync
oslo-incubator code.
Change-Id: I8b07c32c9852e747579a23685f3c8a07ac13ec01
Partial-Bug: #1280033
This change make all the text visible by the user i18n. The
messages changes are in prints, logs, exceptions, helps, etc
Pep8 errors about "Multiple positional placeholders" also fixed
Change-Id: I731afea790baddbc34d059b93a35e3d275fc1df8
- Removes vim headers: It's not needed to set tabstop tons of times,
this can be done by setting vimrc.
- I did not update files in common/* and install_venv_common.py because
these files are sync with oslo.
Note:
http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html
Closes-Bug: #1265474
Change-Id: Ia09dc2c908187a756bf55eaba74655484304517d
In Python 3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ across
Python runs.
In the test case, the fixed expecting string will not match the test
result, it is relying on the dict order.
This change transforms the input dict to a sequence of two-element list,
with fixed order, and update the related expecitng string.
Close-Bug #1231871
Change-Id: Ia998cdb6978fc024dd0d3c9bd161fbdebe68638a
- Corrected places where `dict.keys()` was being treated as a list
- Corrected usage of `urllib.urlencode()`
Change-Id: I0a24b2f64fab6c905e20073ff7ebaa3c5ffe7c90
This patch adds support for the assisted volume snapshots API extension.
This is used by Cinder to ask Nova to perform a volume snapshot on its
behalf. It's required when the volume is actually file backed (like
qcow2) and the hypervisor needs to be involved in the snapshot
operation.
Required for blueprint qemu-assisted-snapshots
Change-Id: I50ee9bf92c8de98528638d1724fe35e07bed729e
This command lets Admin's list migrations by applying filters
Implements: blueprint list-resizes-through-admin-api
Change-Id: I587c62dab537186cfc8b387fbc46cdb56fb9976c
Bug 1195670
Nova supports force_delete or restore instance in the API level,
thus it makes sense to support this feature in novaclient.
Change-Id: I7cc3d2d2a7ab8dfe043176a3ea97c10deae683c9
Added a new extension that adds the ability for admins to migrate all
servers of a host to another available hosts.
Implements blueprint host-servers-migrate
Change-Id: I4e9c4be7ceb098d7a3bf553fd44addd46e8bce72
Adding a wrapper for all instances of a host, to be able to set/delete
metadata for all instances at once.
Implements blueprint tag-instances-of-host
Change-Id: I3d1a9ab54aad60bfccd0ece2285d145031fb5e15
Added a new extension that adds the ability for admins to evacuate an
entire host to another host. This internally uses the
existing server.evacuate api.
The target host is optional so that a free host will be chosen by the
scheduler in the api.
Implements: blueprint evacuate-host
Change-Id: I2352836d01952e281e15edb9bdd1b912106516d6
'instance-action-list' is not possible to identify the order
and time of the specified instance actions.
This patch fixes the sort of 'Start_time' and add field.
Change-Id: If9e6aaf8eb631819bf8e1c915cb1da64d6fcd2f4
Implements: blueprint instance-action-list-output
Adds an extension for querying instance-actions info on an instance.
There are two new commands: 'instance-action-list <server>' which lists
actions that have been recorded for that instance, and 'instance-action
<server> <request_id>' which provides more details for the action with
that request_id on that server.
Change-Id: I22492d682d50b78f522f10269221fea9483df6dd
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
On subcommand baremetal-node-create or baremetal-add-interface,
the details of the added resource (a node or an interface) are
printed. This is useful in a script (e.g. devstack).
Some refactoring are also included.
Change-Id: I25f019f3dda33de5b49ab2c5442762283be1cf5a
This implements the various REST API calls that BareMetal adds to Nova.
(The nova API is implemented in review 19077)
Change-Id: I187862e9aa5dea41a7edf716aa75cc3d9982fbc8
Modifies novaclient, changing the existing networks implementation to a
more appropriate os-admin-networks namespace, and supplements with a
tenant-base network extenion that lives under the os-networks namespace
as a Nova API extension. Also removes from the duplicately named network
test methods.
Implements: blueprint tenant-networks
Change-Id: I54c9f017b86fc413f1646c7bded8cebd94f6a287
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