974 Commits

Author SHA1 Message Date
Mike Lundy
2a495c03d5 make sure .get() also updates _info
Having the _info get out of sync with the actual attributes is kind of a
trap for the unwary. _info is used in preference to the attributes in
many places, and letting it get out of sync means that the method of
retrieval (get() vs. list()) influences the result.

Change-Id: I9d9bf086fa790b811c520b2fa317f95cb1921805
2013-04-10 15:53:54 -07:00
Jenkins
5f3dbfdfdd Merge "Fix problem with nova --version" 2013-04-09 10:54:33 +00:00
Bartosz Górski
1216a32a28 Fixing shell command 'service-disable' description
Fixes: bug #1166217
Change-Id: I0ba609750551540f9cd91492191b222961e99fb1
2013-04-08 12:50:16 -07:00
Kevin L. Mitchell
69f9971da5 Correct a unit test failure that crept into trunk
At some point, the "nova list" command started returning an
empty table when no results were obtained, while the
tests.test_shell.ShellTest.test_password test was expecting
a single newline.  Whichever commit caused this change in
behavior somehow made it past the gate without forcing the
test to be updated.

This commit fixes the issue by changing the output that
test_shell.test_password is expecting.

Fixes bug 1166464.

Change-Id: I57636b4a1e525c440925caba0bbb51bbcd94b080
2013-04-08 16:38:07 -05:00
Davanum Srinivas
8ce2330247 Fix problem with nova --version
Update to latest openstack.common.version.py and fix __init__.py
to get "nova --version" to work properly again

Fixes LP# 1165325

Change-Id: I29e54cd4cf79759407f3967518e9be575abd994a
2013-04-08 12:15:03 -04:00
Haiwei Xu
ea94b09ad7 Make "multi_host" True when it is set to 'T' in network_create.
Fixes bug 1161297
Even if creating a network with the "--multi_host=T", the "multi_host"
property of the new network is still "False".
This is because nova server interprets 'T' to "False".
This patch fixes the problem.

Change-Id: I171c7dc72cb515c47ea106558080eafa10dee873
2013-04-05 15:36:46 +09:00
Jenkins
0fc4e12043 Merge "Fix IBM copyright strings" 2013-04-04 06:52:09 +00:00
Jenkins
62cf0f4f22 Merge "Allow for bypass_url when using proxy_token" 2013-04-03 03:20:00 +00:00
Kurt Taylor
20ede68ede Fix IBM copyright strings
Update IBM copyright strings to one consistant format

Change-Id: Iabd059132cc3092b6dbbaa6c1f19fb93acee0a30
2013-04-02 18:37:27 -04:00
Alex Meade
90b3a1c505 Allow for bypass_url when using proxy_token
Change-Id: I1cb76f79fbf2fe02ce012aaa278f50987c073831
2013-04-02 16:22:23 -04:00
Alex Meade
5073b8080a Fix mispelt x-auth-token header
Fixes bug 1163546

Change-Id: I4b40ee2be950ee2cd13217f954d72fe1e42a1d6c
2.13.0
2013-04-02 15:45:01 -04:00
Jenkins
beda22a2bb Merge "Remove actions command from servers." 2013-04-02 17:29:37 +00:00
Jenkins
0aa6200544 Merge "catch NoKeyringDaemonError from gnomekeyring" 2013-04-02 16:10:35 +00:00
Jenkins
d195c6a6f7 Merge "Improve authentication plugins management." 2013-04-02 16:10:34 +00:00
Jenkins
3eedc20086 Merge "Skip security groups w/ no protocol." 2013-04-02 16:10:31 +00:00
Jenkins
3af3c8b7b8 Merge "Use correct filter name for listing of instances" 2013-04-02 16:10:29 +00:00
Vishvananda Ishaya
bc2ee484f5 Remove actions command from servers.
It appears that this command was inherited from the original
cloudservers client code. It hasn't ever worked with nova. It
is confusing now because we have the instance actions command.

Fixes bug 1163033

Change-Id: Id0b36c01cdbd5034d0a7886b809269d838c36b45
2013-04-02 09:00:48 -07:00
Alan Pevec
49ab03e6a6 do not ignore --os-cache
Change-Id: Ib8808da00967163faa9ce05e580605f4e499891d
2013-04-02 12:22:05 +02:00
Alvaro Lopez Garcia
abd75f24b1 Improve authentication plugins management.
The current auth plugin system lacks some functionality to be used with
other methods that might require additional configuration options or
that do not require a user to pass some options that are now compulsory
(for example, X.509 authentication needs to get a certificate file, and
does not need either a username or a password). This commit extends
the current system to handle these extra features, while remaining
compatible with older plugins.

DocImpact: We should documment how to implement additional
authentication plugins, such as BasicAuth, X509, etc.
Implements: blueprint authentication-plugins

Change-Id: I7b0ef4981efba8160dea94bf852dba7e2e4068f5
2013-04-01 14:19:01 +00:00
Dan Prince
7f0df56ea3 Skip security groups w/ no protocol.
When using Nova w/ the new Quantum security groups driver security
groups can exist which have no protocol. Theses entries
cause ERROR: 'NoneType' object has no attribute 'upper'
when you try to delete other (editable) security groups.

This patch updates novaclient so that it skips over entries with
no protocol when determining which security group to delete.
This fixes novaclient so that deleting *any* security group works
when the new quantum security group driver is enabled.

Fixes LP Bug #1162622.

Change-Id: Ida07b6429eae988a9a64535381082a500f31a521
2013-03-31 21:16:26 -04:00
Davanum Srinivas
adb5941df9 catch NoKeyringDaemonError from gnomekeyring
Looks like we need to add more exceptions, start to maintain
a tuple of exceptions

Change-Id: I3a027f5d2d8f82fe397e3096ff82358040f3729e
2013-03-31 18:45:49 +00:00
Jenkins
593adf229a Merge "Ensure shell tests use isolated env variables set" 2013-03-28 15:57:04 +00:00
Jenkins
16969543ba Merge "Update to latest openstack.common.setup." 2013-03-28 14:58:00 +00:00
Jenkins
cdb583ae3b Merge "setuptools: remove data_files section" 2013-03-28 13:55:55 +00:00
Roman Podolyaka
cdab77259a Ensure shell tests use isolated env variables set
Fixes bug 1161008.

Change-Id: Id9d76f39c898d4cff65aefa636e9dd2f092d42bd
2013-03-28 13:37:27 +02:00
Monty Taylor
0206c2d5dd Update to latest openstack.common.setup.
We actually don't need the silly versioninfo file at all anymore.

Change-Id: Ic759c39a29b07d41a96849db84a7f9990ec8a3eb
2013-03-28 06:40:13 +01:00
Jenkins
243c8ff6a8 Merge "Update tools/pip-requires for prettytable" 2013-03-27 23:11:18 +00:00
Christoph Gysin
23ee4b818d setuptools: remove data_files section
versioninfo is already included through include_package_data

Change-Id: I53c28bd26a19d86704c918fa185cde9759140dc1
2013-03-27 22:22:47 +02:00
Roman Podolyaka
94173a3f98 Use correct filter name for listing of instances
nova list --tenant tenant_id leads to the following query to Nova API:

  GET /v2/{admin_tenant_id}/servers/detail?project_id={tenant_id}

While Nova actually expects:

  GET /v2/{admin_tenant_id}/servers/detail?tenant_id={tenant_id}

Fixes bug 1134382.

Change-Id: I222208bcc9aaf547cd0b1c52dc8856123a823b8e
2013-03-27 16:48:02 +02:00
Jenkins
655765a5ea Merge "Add support for retrieving instance-actions info" 2.12.0 2013-03-26 05:54:48 +00:00
Jenkins
f03575a8c7 Merge "Split commands properly for bash completion test." 2013-03-26 05:54:46 +00:00
Andrew Laski
d7f1a71311 Don't check build/ for pep8 violations
There's no need to run pep8 on the build dir, and it contains E502 false
positives due to some part of the build process adding line
continuations in places that they're not needed.

Change-Id: I7ea19aea2b9e46503aa8acc06ce6b9d7ea18113a
2013-03-25 16:57:06 -04:00
Jenkins
09c8626bdc Merge "Remove extraneous output during testing" 2013-03-25 20:22:08 +00:00
Andrew Laski
0f7404d7a8 Add support for retrieving instance-actions info
Adds an extension for querying instance-actions info on an instance.
There are two new commands: 'instance-action-list <server>' which lists
actions that have been recorded for that instance, and 'instance-action
<server> <request_id>' which provides more details for the action with
that request_id on that server.

Change-Id: I22492d682d50b78f522f10269221fea9483df6dd
2013-03-25 16:03:18 -04:00
Andrew Laski
46cd432bc2 Split commands properly for bash completion test.
The bash completion test was trying to loop over some options in order
to test that they appeared in the output.  This splits the list so that
proper looping occurs.  This helps protect against test failures when
new options are added and the bash completion output changes order.

Change-Id: I81517038953fb429e8d98b762c77749bbbc0e8d7
2013-03-25 14:34:24 -04:00
Andrew Laski
114bd74fd2 Remove extraneous output during testing
During shell tests commands were being passed to novaclient and output
was being printed to stdout.  This quickly scrolls useful test output
offscreen, so lets suppress it.

Also removed a print call from a test.

Change-Id: I31c8bf2f92a64d781c9e3350213f2e1503b960ad
2013-03-25 14:26:02 -04:00
Roman Podolyaka
f78617803c Use setuptools-git to include files from the repo
Fixes bug 1029511.

Change-Id: I5aef29ad10ac73a9645111f993621d596321ffcf
2013-03-22 23:06:08 +02:00
Chris Krelle
54d4b1d355 Update tools/pip-requires for prettytable
changes pip-requires from:
    prettytable>=0.6,<0.7
to:
    prettytable>=0.6,<0.8

Change-Id: Ic04d38078ad06e43947b5e98b26576a4c51dbbb0
Authored-by: Chris Krelle <nobodycam@gmail.com>
2013-03-22 12:48:14 -07:00
Masayuki Igawa
609cbcef17 Fix keypair-delete help documents
The help documents of keypair-delete parameter should indicate "name".

Fixes bug 1158733

Change-Id: Ib7e648d22024828f8a4e5b3b51c5ed8f6b4dc057
2013-03-22 21:29:55 +09:00
Jenkins
22b8856815 Merge "Make os-services API extensions consistent with Nova" 2013-03-20 21:00:00 +00:00
Michael Still
59f8360d7e Add support for the new fixed_ip quota.
Required for bug 1125468.

Change-Id: If9f8f31a9fd35497a308ae13351685e470e20cd0
2013-03-16 11:22:28 +11:00
Jenkins
7850fcdc07 Merge "Remove unused import" 2013-03-15 17:35:55 +00:00
Alvaro Lopez Garcia
e9e05d7dfe Set up debug level on root logger.
If we set up the debug level on the root logger, this can be used by the
submodules that might need to print some debug output.

Change-Id: I2a00b40d4748cc62e6081df7d6a44622f5ad4467
2013-03-15 10:28:12 +01:00
Wu Wenxiang
301500d6c8 Remove unused import
Remove unused import line in tests/v1_1/test_quotas.py

Change-Id: I07b23d945a361015974b546a455d9cd5a48a5b3d
2013-03-15 12:50:57 +08:00
Davanum Srinivas
c5b579926f Fix Copyright Headers from LLC to Foundation
follow the lead from nova and oslo projects

Change-Id: I270c5f1e4eefa4b72e292bfb4a4c60de0c3f6e4a
2013-03-13 20:12:23 -04:00
Jenkins
c97707b0f2 Merge "Use keyring for testing" 2013-03-13 21:54:13 +00:00
Andy Hill
d4509dd2ad Removes tenant IDs checking for nova quota operations.
Until there is a way to validate tenant IDs, remove the existing checks.

Fixes bug #1154582

Change-Id: If10fac17b919190c1492cfbf1be9950284a82197
2013-03-13 10:56:33 -05:00
Jenkins
c12f4bc0e3 Merge "Revert API changes in "Unify Manager._update behaviour"" 2013-03-12 20:17:07 +00:00
Hans Lindgren
b94fbf59a2 Make os-services API extensions consistent with Nova
Updates the os-services API extensions to match the Nova changes
proposed in I932160d64fdd3aaeb2ed90a092ecc7a36dcc9665.

Resolves bug 1147746.

Change-Id: Ib0f24dea8e937a8e1a1604b1cbf19d96bcdbcd8f
2013-03-12 11:08:47 +01:00
Hans Lindgren
65b55d8f9b Revert API changes in "Unify Manager._update behaviour"
This revert some of commit 63073104665ee4597cf3b7aa8dc2295a8a7db794,
specifically the changes made to the API since those changes were
never merged in Nova.

Resolves bug 1145768.

Change-Id: I8f83c5a33cfed0c3a659f5221b8b2e730ca9463f
2013-03-12 10:32:42 +01:00