1003 Commits

Author SHA1 Message Date
Alessio Ababilov
c9fc9b5b8f Make ManagerWithFind abstract and fix its descendants
ManagerWithFind requires list() method in its descendants.
Make it abstract and fix its improper descendants that do
not implement list() (SecurityGroupRuleManager and many others).

Fixes: bug #1180393
Change-Id: Ic8b466a57554018092c31c6d6b3ea62f181d7000
2013-05-15 21:47:05 +03:00
Jenkins
64e43fde43 Merge "Cleanup some flavor commands" 2013-05-15 11:13:26 +00:00
Jenkins
c314bd587c Merge "Fix for --bridge-interface being ignore by nova network-create" 2013-05-15 11:12:22 +00:00
Shane Wang
3c97f768e5 Cleanup some flavor commands
Some cleanups include:
 - Add flavor sub-commands into README.rst
 - Check flavor ID when creating a flavor
 - Remove check_uuid_like() because it isn't used
 - Remove parameter cs in some _print_XXX functions because cs is
   not used

Change-Id: If47ce557d33db05f53e382f0670f436e05a340b7
Signed-off-by: Shane Wang <shane.wang@intel.com>
2013-05-15 15:55:27 +08:00
Shane Wang
075e9ca76e Fix the default parameter in print_list
Because sort_index = 0 by default, "if sort_index is not None" doesn't
make any sense.
Here sort_index should be None by default, which means "donot want to
sort".

Change-Id: I823ab75eb7a92bdc426dd96a3d1e56f187118729
Signed-off-by: Shane Wang <shane.wang@intel.com>
2013-05-14 13:20:56 +08:00
Andy McCrae
e745b4626e Fix for --bridge-interface being ignore by nova network-create
Change-Id: I84b3264e9cbf78c1af27a3f2fd9690f60f710299
Fixes: bug #1179437
2013-05-13 16:44:27 +01:00
Jenkins
892671173d Merge "Expose retry_after attribute of OverLimit exception" 2013-05-11 00:06:23 +00:00
Jenkins
670cf1529c Merge "Adds extended status fields to nova list" 2013-04-30 07:42:53 +00:00
Jenkins
f5b8fe2741 Merge "Allow deleting multiple images from shell" 2013-04-29 22:50:43 +00:00
Brian Waldon
a3a7ebfe86 Add setuptools_git-*.egg to .gitignore
Change-Id: I97128363b13414e9037cf54ffc52a3db405b13a1
2013-04-29 14:05:40 -07:00
Brian Waldon
eae3d724c0 Expose retry_after attribute of OverLimit exception
Fixes bug 1174469

Change-Id: Ic1e67f6f91d4fe2072ff68dfb36330cd86c1d5b4
2013-04-29 13:47:57 -07:00
Dave Wilde
e009bec220 Adds extended status fields to nova list
The nova list command now includes 'Task State' and 'Power State' fields to
bring parity with the dashboard.

	* Add helper function _translate_extended_states()
	to convert extended states to human

Fixes: bug #954750

Change-Id: I564b7f88e9e2524d8e4ffe21a51608c5e3b23d2d
2013-04-29 13:52:08 -05:00
Brian Waldon
201b74b6cc Clean up exceptions.from_response
Change-Id: I359a911c0813697f091517de493be403e8c1d8a3
2013-04-29 11:33:32 -07:00
Jenkins
0cdc85e136 Merge "Synchronize code from oslo" 2013-04-29 16:11:41 +00:00
Sulochan Acharya
789d15608d Allow deleting multiple images from shell
Adds nargs to image-delete to allow deleting
multiple images through cli.

Adds shell test for multiple image-delete.
Also makes a small correction in fakes to
correct image id of the second image to 2.

Fixes bug #1173511

Change-Id: I167a97cab75a6df544901e965d2cfa3c10a3958e
2013-04-29 11:10:16 -05:00
Jenkins
c2e5ec05c5 Merge "Fix nova instance-action-list output field and order" 2013-04-29 15:52:47 +00:00
Alessio Ababilov
c15c8f8e97 Synchronize code from oslo
Use commit 8c964a25a0904f4153eb4fbcfb3cfd4d8a357e0c
Do not import openstack.common.log in strutils
(Mon Apr 29 11:13:51 2013 +0300)

Changes:
    8c964a2 Do not import openstack.common.log in strutils
    e700d92 Replaces standard logging with common logging
    47e9e98 Fix the co-authored-by processing.
    6e8b9ba Include Co-authored-by entries in AUTHORS.
    547ab34 Fix Copyright Headers - Rename LLC to Foundation
    2cb8e45 support ISO 8601 micro-second precision

Change-Id: Ida31e60ecac5ba89e72a1d8b0a79fd608ad19092
2013-04-29 11:48:09 +03:00
Kieran Spear
50fe79b47d Add 'flavor-list --all' admin switch
Nova gives admins public flavors and flavors from their own projects
only by default. For flavor management, admins need to see all flavors
regardless of access.

Changes:
- Adds an 'is_public' argument to flavors.list() that mirrors the
  Nova API. is_public=None can be used to see all flavors.
- Adds an --all switch to flavor-list in the CLI for use by admins
  when all flavors are wanted.

Fixes bug 1172179.

Change-Id: I915cd2d8266cb6e32c80691a6ff27d8a23488c98
2013-04-26 09:49:29 +10:00
Jenkins
b9f27f6d94 Merge "Make list flavor show extra specs optional." 2013-04-22 19:19:29 +00:00
Leo Toyoda
e5d2e2c2d4 Fix nova instance-action-list output field and order
'instance-action-list' is not possible to identify the order
and time of the specified instance actions.
This patch fixes the sort of 'Start_time' and add field.

Change-Id: If9e6aaf8eb631819bf8e1c915cb1da64d6fcd2f4
Implements: blueprint instance-action-list-output
2013-04-22 16:10:38 +09:00
Ubuntu
339689483d Make list flavor show extra specs optional.
Flavor list will get each flavors extra_specs by making fresh requests to nova.
When there are lots of flavors, the flavor list will take a while to run. So
let us make show extra-specs optional.

Fix bug: #1166455

Change-Id: I86aef1035be6a88b8d9fb49a89f5a608a72589dd
2013-04-20 12:26:23 +00:00
Roman Podolyaka
27e904af69 Use HTTP keep-alive feature in HTTPClient class
Currently  HTTPClient creates a new TCP connection for each
API request. We could actually reuse created connections by
relying upon HTTP keep-alive feature.  That would enable us
to do a few queries in a row more efficiently.

Fixes bug 1170385.

Change-Id: Ie6d8fb9670938e3790017509a242630b67abd794
2013-04-19 09:46:17 +03:00
gtt116
dccdd02e48 Cleanup unused import
Change-Id: Id7d110110f238077630c9b9ee4d643654844dd3e
2013-04-17 13:51:37 +00:00
Jenkins
74132e5078 Merge "Add coverage-reset command to reset Nova coverage data." 2013-04-14 22:49:00 +00:00
Jenkins
3a1058a889 Merge "make sure .get() also updates _info" 2013-04-11 20:43:50 +00:00
Jenkins
bb747498c4 Merge "Support force update quota" 2013-04-11 20:43:48 +00:00
Haiwei Xu
c230812017 Make --vlan option work in network-create in VLAN mode
When creating a network with network-create, DuplicateVlan exception
happens whatever the --vlan option is set. This is because --vlan
option isn't read correctly by novaclient. This patch fixes this
bug.

Fixes bug 1167779

Change-Id: I3bf0e8d96d995632698f5aa1b1a07ead9e553c70
2013-04-11 18:38:35 +09:00
gengjh
e8b665edbf 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'.

Fix bug 1160749

DocImpact

Change-Id: Ib8d94d4eaa846f620abad5fb55017ac3fb0b322a
2013-04-11 17:11:08 +08:00
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
Mitsuhiko Yamazaki
328805f2bb Add coverage-reset command to reset Nova coverage data.
Add a new command coverage-reset to enable users to reset
coverage data.
This also adds unit tests on coverage-reset command.

Fixes bug: 1164331

Change-Id: I101e38165206224927d8ce32c8663a8d9403450b
2013-04-10 19:04:26 +09: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
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