721 Commits

Author SHA1 Message Date
Jenkins
708af32f03 Merge "Fix "device" as the optional para on volume-attach" 2013-12-25 01:59:24 +00:00
Sahid Orentino Ferdjaoui
2c54f5a037 Nova aggregate-details should be more human friendly
'nova aggregate-details' shows Hosts, Availability Zone
and Metadata in the python unicode notation.

+ Adds some tests about aggregates ported from v1 to the
  v3 shell

Change-Id: I69d80b2e76833d78248dee782ae5e53f42a4f4a9
Closes-Bug: #1132961
2013-12-24 12:07:57 +00:00
Jenkins
13e37ede5b Merge "Adds keypairs support for the Nova V3 API" 2013-12-23 14:16:25 +00:00
Jenkins
287bb0cfcc Merge "Adds certificates support for Nova V3 API" 2013-12-23 14:16:23 +00:00
Jenkins
72f6258556 Merge "Adds aggregates support for Nova V3 API" 2013-12-21 22:58:19 +00:00
Jenkins
865399f72f Merge "Adds hypervisor support for Nova V3 API" 2013-12-21 03:53:20 +00:00
Jenkins
4cff481baa Merge "Adds services support for Nova V3 API" 2013-12-21 03:53:19 +00:00
Jenkins
5b7c7ac046 Merge "Adds second part of quotas support for Nova V3 API" 2013-12-21 03:53:18 +00:00
Jenkins
15e2bca055 Merge "Adding additional tests for novaclient ssh" 2013-12-20 18:58:11 +00:00
Jenkins
9c8fc1a1ad Merge "Adds first part of quotas support for Nova V3 API" 2013-12-20 14:37:21 +00:00
Jenkins
ef364b35bf Merge "Adds availability zone support for Nova V3 API" 2013-12-20 14:35:54 +00:00
Michael Davies
6f7ac333de Adding additional tests for novaclient ssh
There's a few gaps in the testing regime for do_ssh, specifically
around IPv6, specifying identity files, and additional args. This
patch attempts to address these.

Change-Id: I590fd7ffe1e3470c8507d7f7fb2abcfdb6162561
2013-12-20 19:47:59 +10:30
Jenkins
6ba47b96a7 Merge "Adds basic servers support for the Nova V3 API" 2013-12-20 05:07:37 +00:00
huangtianhua
5b773adada Fix "device" as the optional para on volume-attach
Attach a volume to a server without device name, the client returned the
error msg: "error: too few arguments". But for server, we can attach a
volume to a server without the device name.

Change-Id: Ia2743c6e3956cae6591ecd414baf89b0dbcf532b
Closes-Bug: #1257137
2013-12-20 11:34:02 +08:00
Jenkins
606f9ff1c7 Merge "Adds images support for Nova V3 API" 2013-12-19 17:02:25 +00:00
Chris Yeoh
3b5b7b9da3 Adds simple tenant usage support for the Nova V3 API
Adds support and tests for the os-simple-tenant-usage
extension for the Nova V3 API. There are no
differences between the V2 and V3 API and this change
adds the client code to enable the usage command. Note
that with nomenclature change from tenant to project
occuring in Nova there will be a difference between
the V2 and V3 API in the future.

Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3

Partially implements blueprint v3-api

Change-Id: Iddf6211c9c87cbb191d9a5d5a65710b343c30e67
2013-12-19 23:40:40 +10:30
Chris Yeoh
a29b7c7cc7 Adds keypairs support for the Nova V3 API
Adds support and tests for the keypairs extension for
the Nova V3 API. The V3 version of the keypair extension
has been made part of the core V3 API and as a result no longer
has the "os-" prefix in the url.

Differences between the V2 and V3 API are described here:
https://wiki.openstack.org/wiki/NovaAPIv2tov3

Partially implements blueprint v3-api

Change-Id: Id4a77e1e4565f63ecdf7753d3c224975519fc07c
2013-12-19 23:40:00 +10:30
Chris Yeoh
e0d7c49043 Adds certificates support for Nova V3 API
Adds support and tests for the os-certificates extension
for the Nova V3 API

Partially implements blueprint v3-api

Change-Id: I9a75bf04a7047af6c501af2df72de4b8ce3462b0
2013-12-19 23:39:28 +10:30
Chris Yeoh
4c9cc001ba Adds aggregates support for Nova V3 API
Adds support and tests for the os-aggregates extension
for the Nova V3 API.

Partially implements blueprint v3-api

Change-Id: Ibe251f083ea444fb46aac9cc5cf08784b5826ad7
2013-12-19 23:38:56 +10:30
Chris Yeoh
3c46b26666 Adds hypervisor support for Nova V3 API
Adds support and tests for the os-hypervisors extension
for the Nova V3 API.

Note that compared to the V2 API it separates the search
function into search by hypervisor name and a new list
servers by hypervisor as this better first the changes
in the V3 API. The listing of servers by hypervisor command
is preserved, though reworked to use the new interfaces.

Partially implements blueprint v3-api

Change-Id: I472f9acad895dcf842e93d2de27530652f73867e
2013-12-19 23:38:20 +10:30
Chris Yeoh
94b40dd2f8 Adds services support for Nova V3 API
Adds support and tests for the os-services extension
for the Nova V3 API

Partially implements blueprint v3-api

Change-Id: Ic64e465e24a6e840c567677d4f2ea9d63b742ccd
2013-12-19 23:37:23 +10:30
Chris Yeoh
6a9c81843f Adds second part of quotas support for Nova V3 API
Adds support and tests for the os-quota-class-sets
extension for the Nova V3 API. Note that compared to
the V2 version this removes the ability to set quotas
which are not relevant to the V3 API (eg injected file
quotas are not relevant because the os-personalities
extension has been removed).

Partially implements blueprint v3-api

Change-Id: I3e7f36407f2f59737ecbce2c8ce014cef623ecdc
2013-12-19 23:36:35 +10:30
Chris Yeoh
cfd38a7ef6 Adds first part of quotas support for Nova V3 API
Adds support and tests for the os-quotas extension
for the Nova V3 API. Note that compared to the V2
version this removes the ability to set quotas
which are not relevant to the V3 API (eg injected
file quotas are not relevant because the
os-personalities extension has been removed)

Partially implements blueprint v3-api

Change-Id: Ifa1c77428424bedf7fb88ef6d7b3843376799d24
2013-12-19 23:36:00 +10:30
Chris Yeoh
40a1c12828 Adds availability zone support for Nova V3 API
Adds support and tests for the os-availability-zones
extension for the Nova V3 API. Also implements
sorting for zone host display which was applied
to the v1_1 version, but not the v3 version in
I9ab25ef52d6d19b45a39f04cbcde864ee225b4cc

Partially implements blueprint v3-api

Change-Id: I8daa2503a2dc8767e9157bdfa6c9adaedfc8f3c0
2013-12-19 23:35:30 +10:30
Chris Yeoh
1746bbac26 Adds basic servers support for the Nova V3 API
Ports servers support from the v1_1 directory omitting functionality
which is no longer supported directly in the V3 API such as:

- floating ip
- add/remove/list of security groups
- disk config related functionality

Makes the appropriate modifications required for parameter name
changes between the V2 and V3 API

Booting an instance is not yet supported as this will require more
extensive changes as image listing services are no longer proxied
through the Nova V3 API

Partially implements blueprint v3-api

Change-Id: I1116e8d8ebc73176223f4135168cc4ab5d904356
2013-12-19 23:35:01 +10:30
Sean Dague
6ea070d62e add support for nova ssh user@host
the nova ssh command is convenient, but it is lacking some basic
niceties that everyone is used to with ssh, for instance actually
doing user@host to connect to an environment. This adds support
for "nova ssh user@host" to work as one would expect.

The functionality is added to both v1.1 and v3 clients. Tests for
this, and other ssh behavior are added to the v1.1 tree (the v3
test_shell.py has not synced over yet).

Change-Id: Ic4081f85c848507ebdc5e228ac345faf19127168
2013-12-18 18:37:29 -05:00
Xiao Chen
35935db647 Allow multiple volume delete from cli like Cinder
In cinder project, we can use cli like follow:
cinder delete xxx yyy zzz
But in nova, we can not use follow command:
nova volume-delete xxx yyy zzz

This patch will add a feature in nova to allow multiple volume
delete from cli like cinder.

Change-Id: I4dd182673e58406a57d30c572ec3116f9f4ce315
Closes-Bug: #1262061
2013-12-18 17:02:23 +08:00
Roman Podoliaka
13cf07da40 Expose the rebuild preserve-ephemeral extension
This new extension permits preserving the ephemeral partition if the
Nova hypervisor supports that. This is primarily useful when Cinder is
not available to provide preservation of state while replacing the
image in use. One common situation for that is Nova Baremetal.

DocImpact
Blueprint: baremetal-preserve-ephemeral
Partial-Bug: #1174154
Co-Authored-By: Robert Collins <rbtcollins@hp.com>
Change-Id: Ib1511653904d4f95ab03fb471669175127004582
2013-12-17 14:46:38 +13:00
Chris Yeoh
76f926fc10 Adds images support for Nova V3 API
Adds support for basic image querying from the image server
rather than the Nova API. The Nova V3 API no longer supports
image querying directly, but in order to support convenience
functions such as specifying images by name rather than ID,
it is necessary to have some basic image query support.

image delete and image meta manipulation is no longer supported
by the client as these features can be accessed directly through
the glance client

Partially implements blueprint v3-api

Change-Id: I9050845d631e9dfc2e110327221d154b8924cd65
2013-12-15 22:52:22 +10:30
Chris Yeoh
59cf27aa3f Adds agent support for Nova V3 API
Adds support and tests for the os-agents extension
for the Nova V3 API

Partially implements blueprint v3-api

Change-Id: I53f8a1cbab6f4dee10fb823bc51ae90baa97fa7a
2013-12-15 22:45:18 +10:30
Chris Yeoh
72b1862c97 Adds flavor access support for Nova V3 API
Adds the remaining flavors support for the Nova V3 API.

Partially implements blueprint v3-api

Change-Id: I46cdec8999f74af37a9ca4280d123907124bad39
2013-12-15 22:44:09 +10:30
Chris Yeoh
9329f435bf Adds flavor support for Nova V3 API
The first part of adding flavor support for the Nova V3 API (support
for flavor-access API calls is still to come).

Restructures v1_1 testcases so as much as possible so they can be
reused for the V3 version of the tests. If it looks too ugly an
alternative would be to just cut and paste the fakes and test
from v1_1 to v3, which is simpler to understand but comes at the
cost of duplicated code. The upside though is it would be much
easier to remove v1_1/v2 support in the future.

Partially implements blueprint v3-api

Change-Id: Ic7cb3c43db02c07d37aea2675b310aaa50639c40
2013-12-15 22:42:48 +10:30
Sushil Kumar
3ecaeb416e Enables H306 pep8 rules
Updates tox.ini to reduce ignored rules.

Updates code for H306 violation.

Change-Id: I9beea02510a1122afb55ad3df3b37f770fe05134
2013-12-12 17:43:08 +00:00
Jenkins
dc1aeac79a Merge "Adds a --show option to the image-create subcommand" 2013-12-11 18:37:51 +00:00
Jenkins
fdee7c18a6 Merge "Sets default service type for Nova V3 API" 2013-12-08 13:27:40 +00:00
Jesse Andrews
879c91d9d3 add support for server set metadata item
add set_meta_item to the servers python API as specified by the 1.1 API

Change-Id: I01c92cde18656b23b45aedd41c50d3a474d91435
2013-12-06 10:03:04 -08:00
Chris Yeoh
50685437ed Enable hacking check for Apache 2.0 license
Removes H102 (license header not found) check from flake8
ignore list.

Adds missing apache license headers.

Change-Id: I109f23c6d8b2e3efb1dac7f764bd77e0d9d335f0
2013-12-06 10:47:41 +10:30
Jenkins
5b3a94aba8 Merge "nova security-group-* should support uuid as input" 2013-12-03 15:35:26 +00:00
Chris Yeoh
fe7ac8800d Sets default service type for Nova V3 API
Set the default service type when talking to the Nova V3 API to
computev3 rather than compute. Although it is rather ugly to have
a different service type for a different version of a service,
this is necessary for the medium term because traditionally the
compute service endpoint has pointed to the V2 API rather than
the root and then version discovery done.

This change allows progression of the V3 API support in
novaclient and although devstack too currently points computev3
directly to the V3 API, the intent is to change this to point to
the root and implement version discovery during the Icehouse
development cycle.

Longer term when the V2 API support is eventually removed we can
reclaim the 'compute' service type and point it to the root.

Partially implements blueprint v3-api

Change-Id: If5d6a0d8af037cde7bf253d71aac2823b89f8066
2013-12-03 16:32:12 +10:30
Chris Buccella
a8756c4007 Adds a --show option to the image-create subcommand
Prints info about the new image when --show is used with the
image-create subcommand.

Change-Id: Id1fba67df9ff86cb1bbda3e241d1d03e01afbe2c
Closes-Bug: 1248128
2013-12-02 19:44:15 -05:00
Florent Flament
fabbc87bf2 Allows users to retrieve ciphered VM passwords
This patch allows users to retrieve VM encrypted passwords using the
`nova get-password` command without specifying the private key.

Change-Id: I13ea132160dca912c6c1643b1006377982b778a1
Implements: blueprint retrieve-ciphered-vm-password
2013-11-27 17:26:39 +01:00
Jenkins
dc0aacfd04 Merge "Flatten hypervisor-show dictionary for printing" 2013-11-14 07:50:57 +00:00
Jenkins
9088e29d06 Merge "Print security groups as a human readable list" 2013-11-14 07:50:56 +00:00
Haomeng, Wang
6528d9944b nova security-group-* should support uuid as input
If we installed neutron, the security-group request will be handled
by neutron, however neutron is using uuid as key for security-group,
nova uses an int value as key, for current novaclient, it only
support the security-group which key is int, so will raise exception
for uuid input.

Change-Id: Ia230d12a1b4905434024b1a5129aa91cff7e6a5b
Closes-Bug: #1247728
2013-11-13 09:46:35 +08:00
Joe Gordon
3978172012 Fix single H234 Bug to make Hacking 0.8 pass
Jenkins patch I96b53ce825ca0f940596f53058b8e3c80463ac3c introduces
hacking 0.8, this fix the one bug.

Change-Id: Ib4ee60b4de32c59cb3552091f0ce50f366fe0879
2013-11-08 15:42:17 +08:00
Russell Sim
a89159a6e3 Flatten hypervisor-show dictionary for printing
Flatten the nested dicts so that hypervisor information can be more
easily used at the command line.

Change-Id: I5dfcf9d10f917a63bde09f0b5a691784a5e8f02b
Closes-bug: #1243512
2013-10-29 09:02:13 +11:00
Sean Dague
1d2263dae3 Revert "Nova aggregate-details should be more human friendly"
This reverts commit 6374ee04a378b8a970f9e429d66eb37c969bbf7b.

Change-Id: Ib27cc6722ea7cc8cb9b133360b3ecb246a0e4a14
2013-10-28 08:12:16 -04:00
Russell Sim
b68517ce83 Print security groups as a human readable list
Convert the security group list into a list that is more suitable for
printing.

Change-Id: I411d9256145986fad7659a9377494e29a6d70ced
2013-10-28 19:59:11 +11:00
Jenkins
a1391b2ead Merge "Nova aggregate-details should be more human friendly" 2013-10-28 06:57:07 +00:00
Jenkins
962c403791 Merge "Align mocking pattern for test case" 2013-10-28 06:40:30 +00:00