This reverts commit 7c11b06bd4e896d891ed3f50c6480bd76a1023bf.
The quota_class subcommand was used to set default quota values
so it shouldn't have been removed.
Related mailing list thread on the topic:
http://lists.openstack.org/pipermail/openstack-dev/2014-May/035383.html
Change-Id: I8f392f8e54bef52c1c950f75377e6bb93a41996d
Partial-Bug: #1299517
The sync includes change that makes sure we get unicode-only dicts from
jsonutils no matter which json module implementation is selected.
The latest commit in oslo-incubator:
- 0f4586c0076183c6356eec682c8a593648125abd
Change-Id: Ic815ca3df94c33edec9104172048b2cd94b92e3f
Closes-Bug: 1314129
The return from a base64.encode in python 3 is bytes. Bytes cannot be
json.dumps() so when we base64 encode some data we need to convert it
to a string before passing it through to the request layer.
This isn't shown by unit tests because the fakeclient mocking layer
intercepts the request before it gets to the json encoding code.
Closes-Bug: #1323450
Change-Id: Ibbbb24f64c17069178e3bf0ee9998b806bc629ff
Since exceptions from oslo is used, ClientException doesn't have any
attributes related to HTTP, so `HttpError` should be set as default
http-based exception.
Also, attribute `code` is used in several project, so it should be
returned and marked as deprecated.
Partial-Bug: #1322183
Change-Id: I3c71e2d25d6e36b5bac0f2b3add74d6747cf7c25
According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.
Change-Id: I43c5d4ecd2286f1a622b6822603ba62881a317a2
gettextutils was used in novaclient, but wasn't recorded.
This patch also let the modules in alphabetical order.
Change-Id: I725c3e8be126b8acd5e42ccaca776f57235ecdc7
Allow one to call the following with their default values of 1:
* nova boot --num-instances 1
* nova boot --min-count 1
* nova boot --max-count 1
Don't allow min_count>max_count.
This is the only place where if a user passes in the default value the
CLI will return an error.
Change-Id: I805b3f0c778e9c70c5817624fb696a746dfe3d5b
Nova returns available extension list through its REST API.
The command of v2 API has been implemented, and this patch adds the
one of v3 API.
Note:
The command name of v2 is "nova list-extensions" but the one of v3,
which this patch adds, is "nova extension-list" because the name fits
to the other command names.
Change-Id: Ibee712b0aa5898a94e362f20be71e8863500b195
Currently, "nova server-group-delete" can only delete one server
group in one request, this patch was enabling nova client support
removing multiple server groups in one request.
Change-Id: I373151bc27cbe8617e2023ba99f6fb3f0108d592
Closes-Bug: #1302954
These keys are never used together, and port-id always takes precedence
in Nova API when present. This patch makes these parameters mutually
exclusive and updates help strings accordingly.
Change-Id: I207dc637cb69d9ab3ff6024a657d2c1890057b4d
Closes-Bug: #1314097
For 'nova boot', num_instances only set max_count, which will try to
launch up to max_count instances. But sometimes users want to either
launch min_count instances or nothing. So deprecate --num-instances
and use --min-count and --max-count instead.
DocImpact: deprecate '--num-instances' for 'nova boot'
Change-Id: If0088aef554a528258799b22c6e793541474cb0d
Closes-bug: #1309244