The Changes include:
- Sanity check for from_port, to_port, and IP protocol when adding
a security rule
- Print one more column 'Id' for security groups
- If there are multiple security groups with the same name, the group
can't be deleted unless an ID is specified. However, there is no code
to search and delete security group by ID. So, _get_secgroup() will
get group by ID if the input is like a UUID. If not found, then get
group by name.
- Some corresponding changes for help messages.
- Test case changes after adding sanity check.
Change-Id: Ibd82d8404bdd64e4bca2f8b25756bfaff7b28194
Signed-off-by: Shane Wang <shane.wang@intel.com>
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>
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>
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
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
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
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
'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
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
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
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
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
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
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
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
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
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
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
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
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