Add support for swap_volume

Add client support for swap_volume, which allows swapping a volume
currently attached to an instance with a different volume which is not
attached. The contents of the old volume will be copied onto the new
volume. This was added in nova commit
8f51b120b430c7c21399256f37e1d8f75d030484.

Change-Id: I98323d594617c1c435e403d9f3ddc4ff4fa74da6
change 'Host' object's 'host' attribute to 'host_name'

The function __repr__ of Host class which is located in hosts.py try to
access 'host' attribute, source code is "self.host",But in fact, Host object
don't has this attribute, it should be 'host_name'! We can find this attribute
from nova/api/openstack/compute/contrib/hosts.py file.

So I simply change 'self.host' to 'self.host_name'.

Change-Id: Ie76ba04da7592a596ab728fec981e9a1dbcc6a5f
Fixes: bug 1210043
Fix the help messages to specify image/flavor name

User can specify flavor/image name as the arguments of "nova boot"
command instead of their ids, but the help messages does not explain
that. This fixes the help messages.

Fixes: bug #1211156

Change-Id: I47813c8ebbe5fc83d627f016e3751918b3ab11cb
Allow name argument to flavor-access-add

Administrator cannot use the flavor name in arguments of
"nova flavor-access-add" and "nova flavor-access-remove"
in following conditions.

1. The flavor is non-public.
2. The falvor doesn't belong administrator's tenant.

This patch fixes this problem.

Change-Id: Ic5e3222d0ff62667e003a61e6a94e85833da5d11
Fixes: bug #1205298
Update oslo

Update gettext, striutils, timeutils and install_venv_common
from oslo.

Change-Id: Ibd9067e3e2be335ef75f0e4a5e4000d143030ab7
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Fix and gate on H501, no locals for string formatting

Change-Id: I07e4a1a733639a343d4b3ee20927d50ba04bd7a3
Added 'nova migration-list' command

This command lets Admin's list migrations by applying filters

Implements: blueprint list-resizes-through-admin-api
Change-Id: I587c62dab537186cfc8b387fbc46cdb56fb9976c
Update mailmap

Change-Id: Ic3050ae029b367f099346dc99e76e33bd47bdc33
Update mailmap

Change-Id: I0f1f8b65db311fee9303dcf1a68c8057d9d778ab
Merge "Add support for swap_volume"
Merge "Update oslo"
Merge "Update mailmap"
Merge "Update mailmap"
Merge "Allow name argument to flavor-access-add"
Sync py3kcompat from oslo

Python3 reorganized the standard library and moved several
functions to different modules and combined modules. Six
provides a consistent interface to the module through
six.moves

However urllib/urlparse is not covered by six.moves so
py3kcompat adds python2/python3 compatibility layer for
urllib/urlparse.

Change-Id: If1436d2260f1c8b6df8c514c8730e7bcf0e648b8
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Upgrade to Hacking 0.7

There was a bug in hacking 0.6 that broke H202, assertRaises Exception
too broad, so switch to Hacking 0.7 and fix the one H202 bug.

Change-Id: I0ec9532ffbb6b3c8dbd775e6da7bc879b0a6737a
python3: Fix imports for py2/py3

Python3 reorganized the standard library and moved several functions
to different modules. Six provides a consistent interface
to them through the fake six.moves module.

However, the urlparse, urllib2, etc modules have been combined
into one module which Six does not support so we do it via
py3kcompat.

Modules such as StringIO and CStringIO have been removed
completely so we use the io module.

Change-Id: I53adac11b634de2c710fc39def36bcec96366710
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "Upgrade to Hacking 0.7"
Added support for running the tests under PyPy with tox

This is a precursor to having them run under check and gate.

Change-Id: I105404d45cd4be93909ea5a272fc7e7c0c6d78cb
Merge "Fix and gate on H501, no locals for string formatting"