Commit Graph

38 Commits

Author SHA1 Message Date
Andrey Kurilin 0a60aae852 Rename v1_1 to v2
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
2015-02-04 17:40:46 +02:00
Andrey Kurilin 96a124fae6 Remove aliases for `args` and `env` in utils
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
2014-12-04 17:22:12 +02:00
Eugeniya Kudryashova 75727c2d37 Fix E128 failures in novaclient/v1_1/
E128 continuation line under-indented for visual indent

Change-Id: I93660ef15df87993738c98f8bb1a88cc65f99870
2014-11-18 17:21:30 +02:00
Andrey Kurilin 8de2237cc4 Enable check for E126
E126 continuation line over-indented for hanging indent

Change-Id: Id64edce8278d96c1b2d4a6ca536e9fc8fbef478c
2014-10-23 17:28:25 +03:00
Andrey Kurilin dc09cf27e3 Port to use oslo.i18n
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
2014-10-16 01:19:48 +03:00
Andrey Kurilin 8b8aa499e1 Enable check for E123
E123 closing bracket does not match indentation of opening bracket's line

Change-Id: I3f941032efb5ca2ef9a78f865effbf79c8674ebb
2014-09-24 22:44:20 +03:00
Ala Rezmerita a400b58d03 Live migrate each instance from one host to other hosts
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
2014-09-15 06:36:07 +00:00
Juan Manuel Olle fe95fe48fc Adding Nova Client support for auto find host APIv2
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
2014-08-19 15:38:31 +00:00
Chris Buccella b277dd1c1c Some Help Messages Missing Translation Support
v1_1/contrib/baremetal is missing translation support for some help
messages. Fix this.

Change-Id: Iea354fef1c7f41361b66ed4e143b3f1f5e562d88
2014-05-06 21:37:17 +00:00
Phil Day a4db0feab4 Fix mac address and task_state in baremetal-node-list
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
2014-04-15 17:48:26 +00:00
Jenkins 3393cb9ff8 Merge "Add os-server-external-events support" 2014-03-07 20:32:01 +00:00
Dan Smith 04a123cdee Add os-server-external-events support
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
2014-03-07 06:51:57 -08:00
Eric Guo d44e598692 Remove usage of module py3kcompat
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
2014-02-25 09:17:54 +08:00
Sergio Cazzolato 6b070c82d4 Fix i18n messages in novaclient, part I
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
2014-01-28 14:56:00 -05:00
Sahid Orentino Ferdjaoui 0ddcf11732 Removes vim configuration headers
- 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
2014-01-08 08:13:46 +00:00
Kui Shi ecdd79b04a py33: align the order of parameters for urlencode()
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
2013-09-30 16:22:40 +08:00
Alex Gaynor 991ab62ef1 Fixed several test failures on Python3
- Corrected places where `dict.keys()` was being treated as a list
- Corrected usage of `urllib.urlencode()`

Change-Id: I0a24b2f64fab6c905e20073ff7ebaa3c5ffe7c90
2013-09-23 17:55:24 -07:00
Russell Bryant 69f8de69d5 Add support for os-assisted-volume-snapshots
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
2013-08-31 11:19:18 -04:00
Mahesh Panchaksharaiah 3c2a817efc Added 'nova migration-list' command
This command lets Admin's list migrations by applying filters

Implements: blueprint list-resizes-through-admin-api
Change-Id: I587c62dab537186cfc8b387fbc46cdb56fb9976c
2013-08-20 16:38:57 -05:00
Yufang Zhang cc2c0a8e6f Enable force_delete and restore instance via novaclient.
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
2013-07-22 21:24:49 +08:00
Dirk Mueller af7ca70e3e Fix and enable gating on H402
End one-line docstrings with punctuation.
Change them to command style where necessary.

Change-Id: I8ff689c3a2f20d489286f80112c6dc95c97f2f31
2013-07-17 15:44:05 +02:00
Jenkins cb42b95f1f Merge "Cells Support" 2013-06-20 16:33:58 +00:00
Kaushik Chandrashekar ee411a6a2e Cells Support
Adding support for Cell show and Cell capacities calls

Implements: blueprint cell-capacity
Change-Id: I83243cf224a4487d720d55d8942d28c52924b734
2013-06-11 12:09:04 -05:00
Aarti Kriplani 7f03b092a4 Migrate each instances of a host to another.
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
2013-06-11 00:56:05 +05:30
Jenkins 265f68c30e Merge "Set/Delete metadata on all instances of a host." 2013-06-10 17:32:05 +00:00
Aarti Kriplani 96706d502f Set/Delete metadata on all instances of a host.
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
2013-06-10 19:32:43 +05:30
Aarti Kriplani 0d678ed4bb Evacuate each instance from one host to another
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
2013-06-05 12:51:13 +05:30
Leo Toyoda e5d2e2c2d4 Fix nova instance-action-list output field and order
'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
2013-04-22 16:10:38 +09:00
gtt116 dccdd02e48 Cleanup unused import
Change-Id: Id7d110110f238077630c9b9ee4d643654844dd3e
2013-04-17 13:51:37 +00:00
Andrew Laski 0f7404d7a8 Add support for retrieving instance-actions info
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
2013-03-25 16:03:18 -04:00
Davanum Srinivas c5b579926f Fix Copyright Headers from LLC to Foundation
follow the lead from nova and oslo projects

Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
2013-03-13 20:12:23 -04:00
Arata Notsu 92fef8b291 Remove prov_vlan_id from baremetal
In nova, this parameter is not used
(and will be unacceptable soon)

Change-Id: I072a204bef49940fb2ddc8dc44480b570bc3212c
2013-02-20 08:49:03 +09:00
Chris Jones a926216808 Expand and improve baremetal API.
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
2013-02-13 09:14:49 +00:00
Arata Notsu 9d239236b9 Show the details of the added bare-metal resource
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
2013-01-31 10:46:34 +09:00
Chris Jones aecd98430a Adds baremetal nova API support
This implements the various REST API calls that BareMetal adds to Nova.
(The nova API is implemented in review 19077)

Change-Id: I187862e9aa5dea41a7edf716aa75cc3d9982fbc8
2013-01-23 16:13:56 +00:00
Matt Dietz dffd415fba Adds tenant network support to the client
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
2013-01-15 18:07:05 +00:00
Joshua Harlow ccc4291c52 Add simple os-api extension cli extension
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
2012-10-09 13:31:27 -07:00
Rick Harris b3f48f7064 Making contrib a Python package
Change-Id: Ibfde2e5cbececeec0b6a17f7d71da207f582a5c7
2011-12-15 22:39:22 +00:00