1085 Commits

Author SHA1 Message Date
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
0c775cbd78 Merge "Add AgregatesManager.get()" 2013-07-16 21:05:33 +00:00
Jenkins
2645e97a05 Merge "Clean up and make HACKING.rst point to openstack-dev/hacking" 2013-07-16 21:05:32 +00:00
Jenkins
ca56219a71 Merge "Remove uncessary code related to nova start/stop" 2013-07-16 21:05:30 +00:00
Jenkins
da711d56d2 Merge "Adds zsh completion" 2013-07-16 20:05:49 +00:00
Jenkins
74506b83fe Merge "CLI for disable service reason" 2013-07-15 17:50:40 +00:00
Dean Troyer
c360c3e8da Add AgregatesManager.get()
utils.find_resource() uses manager.get() as part of converting Resource
names to IDs.  AggregatesManager had get_details() instead of get().

Add AggregatesManager.get(), leaving .get_details() in place for backward
API compatibility.

Bug: 1200341

Change-Id: I7d238bbe43e1760e31f1a9ba783c668246f20844
2013-07-11 14:26:01 -05:00
Jenkins
a45c49bafc Merge "python3: Fix unicode compatibility python2/python3" 2013-07-10 04:09:58 +00:00
Xiao Hanyu
b5c91018e0 Remove uncessary code related to nova start/stop
'nova start' and 'nova stop' actually send request with 'os-start'
and 'os-stop', instead of 'start' and 'stop'.

Change-Id: I1472e1b648dae8f3b281a113adb60421a00e5a48
2013-07-09 14:31:16 +08:00
Monty Taylor
a5558f8780 Sync install_venv_common from oslo
The current version of install_venv_common uses the --distribute flag
in its creation of the virtualenv. This causes some upgrade problems
with the new versions of distribute and setuptools. The solution to
those problems is to get off of the distribute bandwagon.

Change-Id: I5efe196c46b12d88c853f8362ebcbf0cc6f1573d
2013-07-08 15:22:39 -04:00
Joe Gordon
1b3cd6ff9e Clean up and make HACKING.rst point to openstack-dev/hacking
Instead of having a full local copy of HACKING Reference the OpenStack
hacking guide (openstack-dev/hacking) and remove duplicate sections.

Change-Id: Iaabc27c42d74b7441c17e63db15724f64114620b
2013-07-08 18:31:03 +01:00
Sulochan Acharya
d095b8a335 CLI for disable service reason
Adds cli option to allow users to give reason
for service-disable. Also adds disabled reason
as a column in service list, so any disabled service
can be seen with reason.

A recent nova change that allows disable-log-reason
allows users to provide reason for disabling service.
This just adds the cli option for the method.

Blueprint record-reason-for-disabling-service

Change-Id: If263788c34279d6b4c568d5e0320448d2ff67a12
2013-07-03 13:14:36 -05:00
Jenkins
5c8616d03e Merge "python3: Fix print statements" 2013-07-03 02:55:35 +00:00
Jenkins
e3dfc5a407 Merge "python3: Compatibility for iteritems differences" 2013-07-02 22:10:45 +00:00
Jenkins
c865cee9a1 Merge "Bring stdout/stderr capturing in line w/ nova" 2013-07-01 06:11:18 +00:00
Jenkins
0bf5f49bcb Merge "Fixup trivial License Header mismatch." 2013-06-30 07:12:15 +00:00
Daniel Wallace
2770e059e9 Adds zsh completion
Use nova bash-completion to add native zsh completion using built in
parameter expansion.  Nothing spectacular or new, this is mostly so that
zsh users do not need to autoload bashcompinit just to use nova.

Change-Id: I56f62f036e0c85e79197f4c7dfd25abf7eb4110a
Implements: zsh completion
2013-06-28 20:39:28 -05:00
Matt Thompson
c7e9b1b8dc Bring stdout/stderr capturing in line w/ nova
In .testr.conf, we reference OS_STDOUT_CAPTURE / OS_STDERR_CAPTURE
while in novaclient/tests/utils.py we reference OS_STDOUT_NOCAPTURE
and OS_STDERR_NOCAPTURE.  This change brings things more in line
with nova project by referencing OS_STDOUT_CAPTURE / OS_STDERR_CAPTURE
in both locations.

Change-Id: I22efdec84bef78e99d1d95303cadade6011d76a2
Fixes: bug #1192997
2013-06-28 10:23:46 +01:00
Dirk Mueller
0134008f9b Fixup trivial License Header mismatch.
The currently proposed Hacking check H103
compares the license boilerplate header in
source files with a known good version.
Fix up the syntactical-only mismatches with
that check.

Change-Id: Ie8861b9ded858aabb4cebbe9db656e8cccc9efed
2013-06-27 21:42:11 +02:00
Ben Nemec
b526c9beff Remove Diablo compatibility options
According to the fixme in the code, these should have been removed
in Folsom.

Change-Id: If11c576e45931b72c227f51a0b8f63bc5f7dd4cb
2013-06-26 14:34:01 -05:00
Chuck Short
07fd520d16 python3: Fix print statements
Fix print statements while running with python3. This is
due to the fact that the print() has changed between
python2 and python3.

Change-Id: I3af57cf8925e0fcfb34981f5b72ed989ba9f6cd4
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-26 14:47:12 -04:00
Jenkins
abb57b6934 Merge "Return Customer's Quota Usage through Admin API" 2013-06-25 22:34:42 +00:00
Chuck Short
a25d4fe59a python3: Compatibility for iteritems differences
In python3 dict.iteritems(), dict.iterkeys(), and
dict.itervalues() are no longer supported. So use
six.iteritems() where it is appropriate.

Change-Id: I8b07dc2a89d790ec275d45f859e1644e9b00c837
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-24 11:51:04 -05:00
Chuck Short
8c4e145b92 python3: Fix unicode compatibility python2/python3
Python3 enforces the distinction between byte strings and text strings
more rigorously than python2. So use six.text_type/six.u()
where appropriate

Change-Id: I890e19cb857e10f0292aabdaebaa8e7a7bd8db23
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-06-24 11:47:15 -05:00
Jenkins
05ca996e67 Merge "Update help for --nic opt and make net-id or port-id required" 2013-06-21 13:48:52 +00:00
Mahesh Panchaksharaiah
ea4712369b Return Customer's Quota Usage through Admin API
Modified the used limits API for Admin to retrieve
the used limits for a customer. Changes done to the
nova client to fetch limits for a given tenant.

This is related to changes made in nova,
https://review.openstack.org/#/c/27468/

Change-Id: Id53576eb35d6dab7cb655f8427091e95a6f75a6d
Implements: blueprint customer-quota-through-admin-api
2013-06-21 13:56:48 +05:30
Jenkins
cb42b95f1f Merge "Cells Support" 2013-06-20 16:33:58 +00:00
Eoghan Glynn
909a53b161 Discard possibly expired token before re-authenticating
Fixes bug 1192656

Previously, the attempt to re-authenticate on possible token
expiry actually re-used the expired token, which was clearly
bound to fail in the expired case.

Now the old authentication state is discarded before attempting
re-authentication.

Change-Id: I3fd125702061f7ac84eb501d2a488aab5b2385b9
2013-06-19 20:36:48 +01:00
Jenkins
8baf20cb22 Merge "Support force update quota" 2013-06-18 18:12:43 +00:00
gengjh
267dbd292c Support force update quota
Once we have additional check when update quota in
https://review.openstack.org/#/c/25887/, we need provide --force option
when run 'nova quota-update'.

Since the change in nova server has been merged, we need re-enable the
changes in nova client side.

Fix bug 1160749

Change-Id: Iceb67c5816312fafed8a68e48a8a136c03d0bb5b
2013-06-18 21:04:57 +08:00
Matt Thompson
85a4f6cb51 Update help for --nic opt and make net-id or port-id required
Commit updates help string for --nic option to reflect that specifying
net-id and port-id keys are optional but that at least one is
required.  Additionally, we change _boot in novaclient/v1_1/shell.py
to raise an exception if random keys are added to --nic string and if
--nic string does not contain net-id or port-id keys.

Change-Id: Icf94c395bd09160aa6a1b849eb464d72e410e1ae
Fixes: bug #1052356
Fixes: bug #1191139
2013-06-18 12:33:15 +01:00
Jenkins
576006ec61 Merge "Adds support for ExtendedFloatingIps APi extension" 2013-06-17 23:21:40 +00:00
Phil Day
be299d8424 Adds support for ExtendedFloatingIps APi extension
Allow a floating IP to be associated to a specific fixed IP

This is the client side of:
https://review.openstack.org/#/c/26113/15

Change-Id: I05f8a0dc60268535231b95a6664719015f67a318
2013-06-17 17:28:08 +01:00
Jenkins
913448c931 Merge "Migrate each instances of a host to another." 2013-06-17 16:03:52 +00:00
Jenkins
f41b76cf1b Merge "The 'nova keypair-show key_name' command added." 2013-06-12 23:32:43 +00:00
Jenkins
52fc0ab815 Merge "Exit w/ valid code when no servers are deleted." 2013-06-12 23:30:15 +00:00
Jenkins
1542a2913a Merge "Set default value of flavorid to "auto"" 2013-06-12 21:09:38 +00:00
Jenkins
76d566b760 Merge "Add update method of security group name and description" 2013-06-12 02:55:35 +00:00
Monty Taylor
34573942bf Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: I729ed2f646aa514fbb7b7dfc4a070df2f7b27ff4
2013-06-11 11:40:34 -07: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
Jianing YANG
cdee7e12c0 Set default value of flavorid to "auto"
Fixes: Bug #1189877
Change-Id: I80a0834c5f1d264b64f14d78fa2f71b1e4d9d89a
2013-06-11 17:07:30 +08: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
d040ac9c3f Merge "Delete a quota through admin api." 2013-06-10 17:58:51 +00:00
Jenkins
265f68c30e Merge "Set/Delete metadata on all instances of a host." 2013-06-10 17:32:05 +00:00
Jenkins
b12de594c4 Merge "Evacuate each instance from one host to another" 2013-06-10 14:49:03 +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
Sergey Lukjanov
87bd54ff13 The 'nova keypair-show key_name' command added.
* 'os-keypairs' api extension used.

Change-Id: Idbb529135b6629f02306c49d8095b5fcf94770cc
2013-06-09 23:37:57 +04:00
Dirk Mueller
e476179c65 Use Python 3.x compatible except: construct
Per (proposed) hacking H203 check, use the non-deprecated
except x as y: construct, which works with any
Python version >= 2.6

Change-Id: Ib7cab00cb8f219154663a4d51a855a1a2718e8cb
2013-06-07 15:58:47 +02:00
Aarti Kriplani
d43b923d8a Delete a quota through admin api.
Exposes the quota-delete api implemented as part of
blueprint admin-api-for-delete-quota
Change-Id: Iab358f0fcf2dfb41bcd9a3a5b73d590d3f55cd6c
2013-06-06 20:54:46 +05:30
Matt Thompson
fa0d6e85a2 Exit w/ valid code when no servers are deleted.
This change updates do_delete in v1_1/shell.py to keep track of
deletion failures and raises an exception when all of the specified
servers cannot be deleted.  This in turn causes nova client to exit
with a correct exit code when no successful deletes occur.

Change-Id: I16ee7a4c754cf2e8add09a41becbcc37edc767ff
Fixes: bug #1185009
2013-06-05 13:42:40 +01:00