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
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
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
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>
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>
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
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
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
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
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
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.
Change-Id: I729ed2f646aa514fbb7b7dfc4a070df2f7b27ff4
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
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
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
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
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
Introduce py33 to tox.ini to make testing with
python3 easier.
Change-Id: I2f339a2ccf113ff14db64c2bbc67a93bd0270962
Signed-off-by: Chuck Short <chuck.short@canonical.com>
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
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
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
Implemented by catching the valueerror thrown when unpacking a split to
two variables but the split string is not present.
Change-Id: I9930fe828c932e103fdad1b88c3434f097664f31
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