Convert aggregates testing to use httpretty

This is the first in the series and so contains some setup classes. In
general the original data will not be able to be removed from fakes
until the very end because testing shell depends on a lot of it.

Change-Id: I499fe968923b9452f60c1b2ca50d5749e89827de
blueprint: httpretty-testing
Add unit test for keypair's api

Add unit test for keypair's api in test_shell.py, just for v1.1,
not for v3, because of v3 inherits from v1.1.

Change-Id: Ibbad199449431b328091ef4b5e4b955ffcddc303
Closes-Bug: #1309986
Reuse exceptions from Oslo

- Remove unused exceptions from novaclient.exceptions
- Reuse exceptions from common code

OpenStack clients which already use exception from common code:
- ironicclient   - I784007f36dd6a63fc4c77e0d0f0f000e05eb792f
- keystoneclient - Iedf4e5d753d4278d81751ba0f55fdef3566b56de
- saharaclient
- tuskarclient   - Iacbf219168fae62d864c6594dd41e0737e848cfa

Similar patches in other clients related to reusing exceptions
from common code:
- cinderclient   - I07f04ba5357e0196fe43b510e1d2fff5afa02faa
- glanceclient   - I9838391cff7e450f08d27668564b02e63259186c

Related to blueprint common-client-library-2

Change-Id: Ia35d65d57a0047f88a609070f8b4c76215cbd3e9
Fixed a typo in a comment

Found using: https://github.com/intgr/topy

Change-Id: I1fba0b8c8e978f286905eeb96ae0a2e47762f413
Fix for "nova help list" command

The output of "nova help list" shows several argument as "Admin Only",
when they are not.
This patch modifies help notes for --ip, --ip6 and --instance-name,
which can be used by regular users.

DocImpact

Change-Id: Iac541ac8e698a27348b437ad53910bd09ea7f257
Closes-Bug: #1295126
Synced jsonutils from oslo-incubator

The sync includes change that drastically enhances performance on Python
2.6 with fresh simplejson library installed.

The latest commit in oslo-incubator:
- 732bdb6297eb9de81667f7713ebcb1ccc2ee45a7

Change-Id: Ib3dc0b713ed90396919feba018772243b3b9c90f
Closes-Bug: 1314129
Fix documentation for config_drive boot parameter

The "config_drive" boot parameter only accepts a Boolean parameter, but
the documentation says otherwise.

Change-Id: I7cbf5aefbd006d8b5425cd8592bacb5d8435b3c9
Closes-Bug: #1314395
Updated from global requirements

Change-Id: I2f3f0b9f09e458eec4eb1e7a3b83e49043a8cb11
Merge "Synced jsonutils from oslo-incubator"
Merge "Fix for "nova help list" command"
Merge "Fix documentation for config_drive boot parameter"
Print message if instance is successfully deleted

Change-Id: I0057a1c906083e1a379a0d15a3c783823f49bf4c
Closes-bug: 1312087
Make help description of rescue/unrescue more useful

The docstring was not helping users in understanding
what the command does.

Change-Id: I858a43157c582067992cb80080ed440d6aba3ac3
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
Remove duplicate test test_boot_multiple

test_boot_multiple is a duplicate if test_boot_num_instances.

Change-Id: I03a4def85b79109e6a950587542b53741b06bd70
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
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
Print message if instance is successfully deleted v3

Also change the message for v1_1.

Change-Id: I35eaf1a7670de79e3b75acaffe7ae13018b0a762
Closes-bug: 1312087
Some Help Messages Missing Translation Support

v1_1/contrib/baremetal is missing translation support for some help
messages. Fix this.

Change-Id: Iea354fef1c7f41361b66ed4e143b3f1f5e562d88
Add mailmap entry

Add mailmap entry for my email address

Change-Id: Ia46c28c86ef3f440556b1b027d2bf0a7f3e721c5