1305 Commits

Author SHA1 Message Date
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
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
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
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
Jenkins
d7f3139cf7 Merge "Adds locking to completion caches" 2013-11-04 10:10:11 +00:00
Jenkins
65c84c72e1 Merge "Update mailmap for Joe Gordon" 2013-11-02 19:45:47 +00: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
Joe Gordon
e2fe20b50d Update mailmap for Joe Gordon
Update mailmap to reflect that I am committing from a new email address.

Change-Id: Ibf03482768a639c4c2fe57fca045daaab0233688
2013-10-28 10:22:53 +00: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
Ryan Wilson
c320562877 Adds locking to completion caches
Previously, completion caches were not thread-safe and multiple
threads could not make calls to python-novaclient simultaneously.
With locking, the completion caches are now thread-safe.

Closes-Bug: #1213958
Change-Id: I201c2ed0f1eb09b1c2a74de96119cbae9ed6f4b0
2013-10-28 01:53:13 -07:00
Jenkins
a1391b2ead Merge "Nova aggregate-details should be more human friendly" 2013-10-28 06:57:07 +00:00
Jenkins
fbb01be4c7 Merge "Quote URL in curl output to handle query params" 2013-10-28 06:45:50 +00:00
Jenkins
bdcc586a7e Merge "Add --insecure to curl output if required" 2013-10-28 06:42:59 +00:00
Jenkins
962c403791 Merge "Align mocking pattern for test case" 2013-10-28 06:40:30 +00:00
Sahid Orentino Ferdjaoui
6374ee04a3 Nova aggregate-details should be more human friendly
'nova aggregate-details' shows Hosts, Availability Zone
and Metadata in the python unicode notation.

Change-Id: If0028347146439994265c60c429af05dd67912f9
Closes-Bug: #1132961
2013-10-25 17:46:19 +02:00
Joe Gordon
943a3eba2d Make 'nova ssh' automatically fall back to private address
If no public IP address is available automatically revert to the private address.

Change-Id: Iaf780fde77c4a1eae99c27be7e21841ca87d69dc
2013-10-24 12:07:25 +00:00
Kieran Spear
bb214bed32 Quote URL in curl output to handle query params
Copy and pasting the generated curl output into a shell doesn't
work when the URL includes an ampersand, as the URL isn't quoted.

This simplifies the logic in client.http_log_req to be able to
output the URL and method separately and quote the URL.

Change-Id: I1e497886ea9334771ab91e657e7c1121d89f7f33
2013-10-24 15:45:53 +11:00
Kieran Spear
c474cd7cec Add --insecure to curl output if required
Change-Id: I5762f6659a6687b86c94a6e371ccc7509d1e26f9
2013-10-24 15:04:03 +11:00
fujioka yuuichi
362cb18cb4 Apply six for metaclass
The way to using metaclass has changed in Python3.

Python 2.7 way:

class Foo(object):
  __metaclass__ = FooMeta

Python 3 way:

class Foo(object, metaclass=FooMeta):
  ...

The six.add_metaclass() decorator allows us to use one syntax that
works for both Python 2.7 and Python 3.

Change-Id: Ibd31a9f91bac6ec220d802f16c77ee0306e211b3
Closes-Bug: #1236648
2013-10-18 14:14:50 +09:00
OpenStack Jenkins
516586a6b8 Updated from global requirements
Change-Id: I2cc2769b89bd040064408faea30c448350fa5f00
2013-10-16 12:21:34 +00:00
Jenkins
8f63621c49 Merge "Make os-cache retry on an invalid token" 2013-10-15 20:29:01 +00:00
Jenkins
c33446c7c7 Merge "Document and make OS_CACHE work" 2013-10-15 20:25:57 +00:00