818 Commits

Author SHA1 Message Date
Jenkins
52fc0ab815 Merge "Exit w/ valid code when no servers are deleted." 2013-06-12 23:30:15 +00:00
Jenkins
76d566b760 Merge "Add update method of security group name and description" 2013-06-12 02:55:35 +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
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
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
Dirk Mueller
67c80558b1 Start using Hacking and PyFlakes
Only blacklisting those warnings that are numerous,
so that in principle Hacking and PyFlakes warnings
are tested. Fix the easy ones alongway.

Change-Id: I571f51ebf570ac114509f2dcd71cdce281e7c70a
2013-06-01 15:49:51 +02:00
Zhenguo Niu
66a98966bf Add update method of security group name and description
make it possible to edit the name and description of
common security groups, we can not rename the default.
nova patch : https://review.openstack.org/#/c/29490/

Fixes: bug #918393

Change-Id: I559f2fa09c1f205d3bbe7352fc169152e6b38586
2013-05-30 22:17:02 +00:00
Adam Gandelman
def5df2760 Fix shell tests for older prettytable versions.
Fix the shell tests so they pass for all supported prettytable
versions, as per requirements.txt (>=0.6,<0.8).

Fixes bug: #1185580.

Change-Id: I8dca23faa3c178494656ebc8088b6d1994e9869f
2013-05-29 14:22:53 -07:00
Emanuele Rocca
ff85bd4025 100% test coverage for security groups and rules
This patch achieves full test coverage for security_group and
security_group_rules by:

- Fixing the arguments used in test_invalid_parameters_create
- Testing the __str__ and delete methods of SecurityGroupRule
- Adding a test for the ___str__ method of SecurityGroup

Change-Id: I9cfbc68761f158754aa4b339238d29cc587c91e1
2013-05-29 10:18:01 +02:00
Monty Taylor
c34c371e96 Move tests into the novaclient package.
tests/__init__.py implies a package in the global namespace. These
tests are not global python tests, but rather tests for novaclient.

Change-Id: Ifeb8082aa010d15dddc9ae02e35589bc78ad48cc
2013-05-25 08:23:14 +02:00