Encode user data to utf-8 when creating a server

This is needed for data that we don't read from IO directly, since we're
base64-encoding the user data, and this requires ther user data to not
be of the unicode type.

We're being tolerant, as we'll accept user data that is already in a str
object.

Fixes: bug 1049161
Change-Id: I4320670de564c8029c7aef14da2492c6f8752efe
Merge "Encode user data to utf-8 when creating a server"
Add support for backup instance.

fix bug: 1066665

Change-Id: I1e2c3b2cd9d9e50073b87762973147795059f067
Exception handling for 'nova flavor-create' arguments

Fixes client side Bug #1056935

Throws an exception if the user does not input integers for the
corresponding parameters.

Change-Id: I4c4b8148f6565bc5a3b348dbde8c2cf0da00234a
Add OpenStack trove classifier for PyPI

Add trove classifier to have the client listed among the
other OpenStack-related projets on PyPI.

Change-Id: If9e10b065d0c54825fb9138893c78cda3ef79ca2
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Merge "Add support for backup instance."
Merge "Exception handling for 'nova flavor-create' arguments"
Pull in latest openstack-common changes and fix a minor PEP8 issue.

Latest openstack-common commit: d887090b5a31672e4a12f302b3818e2b0933bef0

Change-Id: I5a4ffb043ab24f8618a8285112c0c5992ea129e7
Merge "Pull in latest openstack-common changes and fix a minor PEP8 issue."
Auto-Assign Flavor ID

Auto-assign a flavor ID if the user enters "auto" for the ID.

Change-Id: I745744b9ca44668477635c20df5e2ece6cbf1c27
Validate that boolean parameters are boolean

Ensure that values which are supposed to be boolean look like correct
user input, instead of assuming that any non true-looking input is
False.

Also, update the flavor manager to raise a CommandError if is_public is
not a boolean value.

Fixes bug 1059414

Change-Id: I3275e4bba103b14081becf91f723f1be060391e5
Merge "Auto-Assign Flavor ID"
Add ability of nova client to display availability zones when listing hosts

Implements the one workitem of blueprint apis-for-nova-manage

Add an optional parameter for nova host-list
Now, we can use the command: nova host-list --zone nova
It will return the hosts that availability_zone=nova.
This patch depends on https://review.openstack.org/#/c/14741/

Change-Id: Ide41e75e7d1471e23d19f51e63a8d9951337a411
Allows deletion of multiple servers through CLI

Adds nargs to argparse for delete command to allow
multiple (optional) positional server argument. This
allows users to delete multiple servers using nova delete.
For example:
nova delete xxx yyy aaa zzz will delete valid servers
xxx, yyy and zzz and print exception msg for invalid
delete of server aaa.

Fixes bug892061

Change-Id: I2abe6329e489bfbd3e5ae699e97ef098b38c4537
Fixes utils.findresource checking for integer

Fixes the novaclient.utils.find_resource function to properly handle
non integer values and not break with an AttributeError.

Adds a test case to test a few more non valid inputs.

Fixes bug #1065367

Change-Id: Iaa2025f4eb580234f754596c3572e2f87872170e
include projectid in the cache key

fixes bug #1074771

Change-Id: I0fc1638405c2f4de61255d3efc1b6096ead0742b
Fixes setup compatibility issue on Windows

Fixes Bug #1052161

"python setup.py build" fails on Windows due to a hardcoded shell path:
/bin/sh

setup.py updated using openstack-common/update.py

Change-Id: I9c8cf84ada189d8f27448ecda23f51c021d08818
Updated the help text for nova list command.

Few options in the nova list command are admin specific. Updated the help text
to specify the admin only options explitcitly.

Fixes LP: #1055983

Change-Id: Icf8a76e79b9d5399298dacce31b1cc0873f63d71
Merge "Fixes setup compatibility issue on Windows"
Merge "Updated the help text for nova list command."