Fix typo in call in cinder.API unreserve_volume

Fixes bug #1038599

def unreserve_volume(self, context, volume):
-    cinderclient(context).volumes.reserve(volume['id'])
+    cinderclient(context).volumes.unreserve(volume['id'])

Change-Id: Ida96b01d93f2e82fe842fa93c1a8edbc27434279
Add nosehtmloutput as a test dependency.

Adding nosehtmloutput as a test dependency allows nose to output its
results to an html file. This will be used by Jenkins to save logs on
a different server.

Change-Id: I45191e872a41eed8e6a9e14757675ee7a28b3836
Remove unused flags

Fix bug 1040818

* s3_dmz
* osapi_scheme
* osapi_path
* default_project
* auth_token_ttl
* powervm_vios

Change-Id: I799ff4746046302e8fcfb47ba3c23efb3454b28f
Make instance_update_and_get_original() atomic

Use the same session object within a transaction to retrieve
and update the instance object, including metadata and system
metadata.

In preparation to fix bug 1037372

Change-Id: I886da12bb85f60c2b23609a35b6d9a43040216ce
Fix deallocate_fixed_ip() call by unifying signature

deallocate_fixed_ip() is defined in 3 classes with incompatible
signatures:

RPCAllocateFixedIP:
deallocate_fixed_ip(self, context, address, host, **kwargs)
NetworkManager:
deallocate_fixed_ip(self, context, address, **kwargs)
FlatManager:
deallocate_fixed_ip(self, context, address, **kwargs)

There is a non-trivial multiple inheritance relationship among
them. The complication leads to incorrect function call signatures
(see bug 1024789). The kwargs magic is also never used, and discarded
during rpc calls anyway.

This patch makes the call signature exactly the same for all
deallocate_fixed_ip() definitions, drops kwargs and fixes bug
1024789.

Change-Id: I9c139810d4a5c93fa9f50b89a07bfe44e73e6c8a
Add lintstack error checker based on pylint

Add a new silent test target lintstack based on pylint in Jenkins.
lintstack will compare the pylint errors between HEAD and HEAD~1,
filter out known false positives and report violations in pylint
original parseable format for Jenkins to consume.

Change-Id: Ic2962cb42a174bfe9535aea88475ff4ede3bf9ff
Remove unused permitted_instance_types

Commit 5ea7db9b removed the ArchFilter and moved its functionality
to the ImagePropertiesFilter, which uses 'supported_instances' from
the compute nodes to determine if a node satisfies the arch,
preferred hypervisor, and virtual machine mode requested by the
instance.  permitted_instance_types is no longer used and can be
removed.

Change-Id: Idf9d72746d7c3dcd2a7385913823df122eaa7cd6
Remove test_keypair_create_quota_limit()

test_keypair_create_quota_limit() is defined twice. The two tests
are not exactly the same but functionally equivallent. Remove the
first definition.

Partially fix bug 1037183

Change-Id: I99bd3cd54cf55ff071ced10e931025813d0c92b0
Fix path to example extension implementation

fixes bug 1032118

In class ExtensionManager
The path for example implemetation of an extension should be
nova/tests/api/openstack/volume/extensions/foxinsocks.py
instead of
nova/tests/api/openstack/extensions/foxinsocks/extension.py

which no longer exists.

This affects the documentation at:
http://docs.openstack.org/developer/nova/api/nova.api.openstack.extensions.html#nova.api.openstack.extensions.ExtensionManager

Change-Id: I81083b2a67a3db6e394bc919470e5f1d2dd7ac88
Move ensure_tree to utils

Its useful to people other that virt drivers.

Change-Id: I721094a1785d7a275f4bfa8994b7b114a6ec07f6
Merge "Fix path to example extension implementation"
Merge "Remove unused permitted_instance_types"
Merge "Fix deallocate_fixed_ip() call by unifying signature"
Merge "Make instance_update_and_get_original() atomic"
Merge "Add nosehtmloutput as a test dependency."
Allow connecting to a ssl-based glance

This introduces a new glance_api_insecure setting that can be used to
not verify the certificate of the glance server against the certificate
authorities.

Fix bug 1042081.

Change-Id: I0a9f081425854e9c01e00dfd641e42276c878c67
Merge "Remove test_keypair_create_quota_limit()"
Merge "Fix typo in call in cinder.API unreserve_volume"
Correct live_migration rpc call in test

self.driver.compute_rpcapi.live_migration should be the correct
way to issue live_migration call instead of
compute_rpcapi.ComputeAPI.live_migration, because the ComputeAPI
is a class, not an instance of the class.
This technically does not matter because the method is moxed out
anyway for testing, but still it is confusing.

Partially fix bug 1037183

Change-Id: Id41520a44fb9cfc19e269427ee42493e5dc52f5b
Implement project specific flavors API

blueprint project-specific-flavors

This change implements API extension to manage project specific flavor
types, so that non-public flavor type can only see by projects with
access rights.

Change-Id: Ie2d2c605065b0c76897f843a4548a0c984a05f1a