1617 Commits

Author SHA1 Message Date
Jamie Lennox
782a2595f8 Convert Floating IP tests to httpretty
Change-Id: I0f6816868580af32ee93c0bfdf2c113c6c6ecd13
blueprint: httpretty-testing
2014-06-06 14:39:49 +10:00
Jenkins
3dff4cf1c2 Merge "Synced jsonutils from oslo-incubator" 2014-06-06 01:12:39 +00:00
Jenkins
8e6cb5f7fd Merge "Convert fPing tests to httpretty" 2014-06-05 19:08:48 +00:00
Jenkins
15ac2c9510 Merge "Revert "Remove quota-class subcommand"" 2014-06-04 00:37:24 +00:00
Jenkins
d04818ef6a Merge "In Py3 decode the output of base64.decode" 2014-06-03 23:03:25 +00:00
Jenkins
76a5defbbe Merge "Removed now unnecesary workaround for PyPy" 2014-06-03 23:03:18 +00:00
Jenkins
7a0fe3abf5 Merge "Convert Fixed IP tests to httpretty" 2014-06-02 06:34:12 +00:00
Jenkins
eb117a84eb Merge "Convert Cloud Pipe tests to httpretty" 2014-06-02 06:29:41 +00:00
Jenkins
893627bf8e Merge "Convert certificate tests to httpretty" 2014-06-02 06:26:45 +00:00
Alex Gaynor
cbbfc6904e Removed now unnecesary workaround for PyPy
Change-Id: Id23fdf62352a1575653d2277f7b87d371b0480c8
2014-05-31 21:40:59 -07:00
Jenkins
4d94178d81 Merge "Set default http-based exception as HttpError" 2014-05-31 18:38:10 +00:00
Sergio Cazzolato
d05da4e985 Revert "Remove quota-class subcommand"
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
2014-05-29 16:50:31 -03:00
Ihar Hrachyshka
1e40b41a9e Synced jsonutils from oslo-incubator
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
2014-05-27 10:46:49 +02:00
Jamie Lennox
bf39b0c397 Convert fPing tests to httpretty
Change-Id: I9e3b152e5916215c98cd218bf500f9864c763d63
blueprint: httpretty-testing
2014-05-27 11:52:40 +10:00
Jamie Lennox
873f958f79 Convert Fixed IP tests to httpretty
Change-Id: I90a14b51dba6c0b64f0a264e762a0795a2566ae6
blueprint: httpretty-testing
2014-05-27 11:52:40 +10:00
Jamie Lennox
0ffa94ef8a Convert Cloud Pipe tests to httpretty
Change-Id: I0a737a5c66831edafbd671bfd49017bc1274fca3
blueprint: httpretty-testing
2014-05-27 11:52:40 +10:00
Jamie Lennox
ecebc308b3 In Py3 decode the output of base64.decode
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
2014-05-27 11:32:06 +10:00
Jamie Lennox
43181edda1 Convert certificate tests to httpretty
Change-Id: Ic7eacb75f90b383ecacf01269033c0a37bd7528c
blueprint: httpretty-testing
2014-05-26 16:59:37 +10:00
Andrey Kurilin
4e1ee66108 Set default http-based exception as HttpError
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
2014-05-22 16:48:24 +03:00
Jenkins
c7c653d513 Merge "Convert Availability Zone testing to httpretty" 2014-05-22 02:11:19 +00:00
Jenkins
0db9cff987 Merge "Add missing dependent module gettextutils" 2014-05-21 09:47:40 +00:00
Jamie Lennox
b4628ae313 Convert Availability Zone testing to httpretty
Change-Id: I1de0a1f488f1a59d9041a2788762ddf8361a6b41
blueprint: httpretty-testing
2014-05-19 19:30:10 -04:00
Jamie Lennox
0f4f831474 Convert agent testing to httpretty
Change-Id: Ifd598c3b2d4c26b3557349046822a8ab2108aca7
blueprint: httpretty-testing
2014-05-19 19:30:10 -04:00
Jenkins
73dcda4fce Merge "debug level logs should not be translated" 2014-05-17 23:12:29 +00:00
Jenkins
076c1a004a Merge "Enable delete multiple server groups in one request" 2014-05-13 20:27:37 +00:00
Christian Berendt
22277e6d0b debug level logs should not be translated
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
2014-05-13 11:39:13 +02:00
Jenkins
dbf2379bdb Merge "Reuse exceptions from Oslo" 2014-05-13 09:29:26 +00:00
Jenkins
9d66862e24 Merge "Make port-id and net-id keys mutually exclusive" 2014-05-12 23:26:57 +00:00
Jenkins
104bb2d50a Merge "Add extension-list command for v3 API" 2014-05-12 23:18:55 +00:00
Jenkins
0e61a37e7e Merge "Allow the default value of 1 to be set for boot multiple" 2014-05-12 16:15:26 +00:00
Jenkins
522c65f148 Merge "Remove duplicate test test_boot_multiple" 2014-05-12 16:15:24 +00:00
Jenkins
735af643aa Merge "Deprecate num-instances in favor of min/max count" 2014-05-12 16:11:52 +00:00
ChangBo Guo(gcb)
ced071b78b Add missing dependent module gettextutils
gettextutils was used in novaclient, but wasn't recorded.
This patch also let the modules in alphabetical order.

Change-Id: I725c3e8be126b8acd5e42ccaca776f57235ecdc7
2014-05-12 16:49:06 +08:00
Joe Gordon
28c89580af Allow the default value of 1 to be set for boot multiple
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
2014-05-09 14:02:26 -07:00
Jenkins
02940f20c0 Merge "Make help description of rescue/unrescue more useful" 2014-05-09 00:58:54 +00:00
Jenkins
6c95abf3a0 Merge "Add mailmap entry" 2014-05-08 18:14:06 +00:00
Jenkins
5de4c4f91e Merge "Print message if instance is successfully deleted v3" 2014-05-08 06:13:34 +00:00
Jenkins
08c728f748 Merge "Convert aggregates testing to use httpretty" 2014-05-08 03:26:51 +00:00
Ken'ichi Ohmichi
661231817d Add extension-list command for v3 API
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
2014-05-08 09:26:14 +09:00
Morgan Fainberg
8e49df6243 Add mailmap entry
Add mailmap entry for my email address

Change-Id: Ia46c28c86ef3f440556b1b027d2bf0a7f3e721c5
2014-05-07 12:16:41 -07:00
Chris Buccella
b277dd1c1c Some Help Messages Missing Translation Support
v1_1/contrib/baremetal is missing translation support for some help
messages. Fix this.

Change-Id: Iea354fef1c7f41361b66ed4e143b3f1f5e562d88
2014-05-06 21:37:17 +00:00
liyingjun
ee7fafbfa7 Print message if instance is successfully deleted v3
Also change the message for v1_1.

Change-Id: I35eaf1a7670de79e3b75acaffe7ae13018b0a762
Closes-bug: 1312087
2014-05-06 14:00:39 +08:00
Jay Lau
afbf4e4be0 Enable delete multiple server groups in one request
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
2014-05-06 08:26:57 +08:00
Pavlo Shchelokovskyy
9f6679ebd3 Make port-id and net-id keys mutually exclusive
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
2014-04-29 18:15:23 +00:00
Joe Gordon
8c8448d035 Remove duplicate test test_boot_multiple
test_boot_multiple is a duplicate if test_boot_num_instances.

Change-Id: I03a4def85b79109e6a950587542b53741b06bd70
2014-04-28 16:31:54 -07:00
Joe Gordon
1e7ad37b8a Deprecate num-instances in favor of min/max count
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
2014-04-28 16:27:44 -07:00
Dirk Mueller
b165900838 Make help description of rescue/unrescue more useful
The docstring was not helping users in understanding
what the command does.

Change-Id: I858a43157c582067992cb80080ed440d6aba3ac3
2014-04-28 17:49:46 +02:00
liyingjun
b23c97d634 Print message if instance is successfully deleted
Change-Id: I0057a1c906083e1a379a0d15a3c783823f49bf4c
Closes-bug: 1312087
2014-04-25 23:04:31 +08:00
Jenkins
9752eeedad Merge "Fix documentation for config_drive boot parameter" 2014-05-02 19:37:41 +00:00
Jenkins
3065815693 Merge "Fix for "nova help list" command" 2014-05-02 10:05:51 +00:00