1325 Commits

Author SHA1 Message Date
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
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
2e5a5a81c3 Remove commands not supported by Nova V3 API
Remove commands which are no longer supported by the Nova
V3 API and that we will definitely not be proxying to another
service. Removes:

- cloudpipe-list
- cloudpipe-create
- cloudpipe-configure
- coverage-start
- coverage-stop
- coverage-report
- coverage-reset

Partially implements blueprint v3-api

Change-Id: I366cd0233977c1b506d55de280188ecccda8188f
2013-12-15 22:50:02 +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
Jenkins
02074d5d4d Merge "Enables H403 pep8 rules" 2013-12-14 18:10:13 +00:00
Jenkins
b1df922450 Merge "Enables H306 pep8 rules" 2013-12-14 17:16:17 +00:00
Sushil Kumar
953734d727 Enables H403 pep8 rules
Updates tox.ini to reduce ignored rules.

Updates code for H403 violation.

Change-Id: Iee7b34a27c62ce8cb0f26166b3c16e3386e2fecd
2013-12-14 15:16:20 +00:00
Jenkins
65f9b9b61e Merge "Allow graceful shutdown on Ctrl+C" 2013-12-14 02:26:59 +00:00
Abhishek Chanda
589f665e29 Allow graceful shutdown on Ctrl+C
Currently it prints a stacktrace and exits. This patch makes it print
a message and exit gracefully.

Closes-Bug: #1256732

Change-Id: I59ae8d09be43cd3e56dbe9bed4f6f328377dcc13
2013-12-13 14:30:04 +05:30
Jenkins
d10f7007b9 Merge "Remove the release.rst file" 2013-12-13 02:58:28 +00:00
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
011884a137 Merge "Enables E711,E721,E712 pep8 rules" 2013-12-11 22:46:02 +00:00
Jenkins
726e46ef97 Merge "Fix docstring on novaclient" 2013-12-11 18:37:53 +00:00
Jenkins
dc1aeac79a Merge "Adds a --show option to the image-create subcommand" 2013-12-11 18:37:51 +00:00
Sushil Kumar
547f357b12 Enables E711,E721,E712 pep8 rules
Updates tox.ini to reduce ignored rules.

Updates novaclient/v1_1/shell.py and
novaclient/v3/shell.py for E712 violation.

Change-Id: Ibfd6a4ed19835e65cc9e27873699c31a801e99a8
2013-12-11 12:06:44 +00:00
Sushil Kumar
06b28391e7 Updates tox.ini to use new features
tox 1.6 allows us to skip the sdist step, which
is slow. This does that.
It also allows us to override the install line.
In this case, it's important as it allows us to
stop getting pre-release software we were not
asking for.

Original patch by Monty Taylor, talked about here:
http://lists.openstack.org/pipermail/openstack-dev/2013-September/015495.html

Change-Id: Iddf85d33b57f256d72756b516c23492e9600bedc
2013-12-11 04:29:29 +00:00
OpenStack Jenkins
71a9ac78a4 Updated from global requirements
Change-Id: I071601a07d74711828dc961b646dc066262698da
2013-12-10 22:21:52 +00:00
Abhishek Chanda
e334096aa3 Remove the release.rst file
It has not been updated in a long time and does not seem to be used
Closes-Bug: #1257295

Change-Id: Ie798cc5e6c64db6afcaf22102c74e8be12d3c6a2
2013-12-10 17:03:38 +05:30
huangtianhua
beaf57cfa7 Fix docstring on novaclient
Something like this:

1. Modify "`Image` to add metadata to" to ""`Image` to delete metadata" on
delete_meta()
2. Modify "The security group to delete" to "The security group to update"
on update()
3. Remove the "password" from the description on update()

Change-Id: I0120d84cc263d4eb58b692a5eb6f20ca0ef8264d
Closes-Bug: #1258461
2013-12-09 14:32:24 +08:00
Jenkins
861fec2ed3 Merge "Fix inappropriate comment for delete FloatingIP" 2013-12-09 02:53:19 +00:00
Jenkins
fdee7c18a6 Merge "Sets default service type for Nova V3 API" 2013-12-08 13:27:40 +00:00
Jenkins
c3c5de7efb Merge "Enable hacking check for Apache 2.0 license" 2013-12-07 02:27:26 +00:00
huangtianhua
dd4bc08dd9 Fix incorrect help message on flavor_access action
The help message of params "flavor" and "tenant" is incorrect on
do_flavor_access_add and do_flavor_access_remove.

Change-Id: I66c45316181307305a19aec25acefc019cd7bdfc
Closes-Bug: #1258453
2013-12-06 17:57:51 +08:00
zhangyanzi
78ca076693 Fix inappropriate comment for delete FloatingIP
There is an inappropriate comment for delete FloatingIP, fix it.

Change-Id: Ib5ddabd3b227c8580e1b912b2bb98a3294ec3288
Closes-Bug: #1258034
2013-12-06 17:33:30 +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
6724b2e30d Merge "Fix the inappropriate comment for flavor" 2013-12-03 18:26:50 +00:00
Jenkins
5b3a94aba8 Merge "nova security-group-* should support uuid as input" 2013-12-03 15:35:26 +00:00
Jenkins
60b79db307 Merge "Updates .gitignore" 2013-12-03 15:35:24 +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
zhangyanzi
8dd5ea4783 Fix the inappropriate comment for flavor
Fix the inappropriate comment for delete and create flavor

Change-Id: I29985e5f145cfe3d0e72d6ac684ae9c47ea89c7e
Closes-Bug: #1255819
2013-12-03 11:41:44 +08:00
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
Jenkins
66d59d57b0 Merge "Allows users to retrieve ciphered VM passwords" 2013-12-02 05:29:52 +00:00
Zhenguo Niu
beb30f714e Updates .gitignore
To ignore swap files from getting into repository
currently the implemented ignore is *.swp
however vim adds more swap files if these files exists,
so improving this with *.sw?

Change-Id: Ic3e09f8cf0be35c98d89d862d40121a09c7b2498
Closes-Bug: #1255876
2013-11-28 22:36:20 +08: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
b99b25a6f1 Merge "Removes unnecessary pass" 2013-11-27 02:08:33 +00:00
Jenkins
434d91cd58 Merge "Fix inappropriate comment for flavor create api" 2013-11-26 05:11:48 +00:00
Jenkins
915b0a48df Merge "Fix typo in novaclient" 2013-11-22 21:25:07 +00:00
Zhenguo Niu
79070d6c5c Fix inappropriate comment for flavor create api
Change-Id: I7fa547925de5a194c10484d523006ca093518149
Fixes: bug #1253903
2013-11-22 15:07:59 +08:00
wingwj
81c72dbc34 Fix typo in novaclient
hypen-separated --> hyphen-separated
overrwrite --> overwrite
typicaly --> typically
sematics --> semantics

Fixes bug: 1253881

Change-Id: I4aff614bb36b8f321837a9f54024b26ac0f11d40
2013-11-22 12:13:54 +08:00
Chris Yeoh
42772e143b Removes unnecessary pass
Change-Id: Ic127765e549ccb172328b35a991b67afcdbb583a
2013-11-21 22:36:25 +10:30
OpenStack Jenkins
97e7ccf757 Updated from global requirements
Change-Id: I96b53ce825ca0f940596f53058b8e3c80463ac3c
2013-11-15 16:51:09 +00:00
Jenkins
c51dc4a525 Merge "Change "project" to "project_id" in cloudpipe-create" 2013-11-14 09:22:59 +00: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
Chris Buccella
b8ab45f390 Discrepancy between README.rst and nova help
1) --version in README should be --os-compute-api-version

2) NOVA_URL should be OS_AUTH_URL

Change-Id: Ib8989e6923e2073bcc31d2a17d346eb436effdc8
Closes-Bug: 1250842
2013-11-13 12:57:11 +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
Alvaro Lopez Garcia
f4769453fd Change "project" to "project_id" in cloudpipe-create
The CLI was stating that the name of the project should be used, but the
parameter needs to be the project_id.

Change-Id: If0908a1b72c526f6436432ff18599423f89f7d1f
2013-11-12 12:12:49 +01:00