Replace assert_ with assertTrue

The method assert_ has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

This patch is a mere sed replace of one-liner assert_ to assertTrue.

grep -lR "assert_(" nova/tests/* | \
xargs sed -ri 's/(\W+self.assert)_(\()(.+)(\)$)/\1True\2\3\4/'

Change-Id: I64b9764e1607a46877dad466a4be81e07bdf6f9a
xenapi: refactor: move UpdateGlanceImage to common

During the review of https://review.openstack.org/41651 it was
recommended to move UpdateGlanceImage to a common library. A bug was
filed to deal with the refactors. This change fixes the first part.

Fixes bug 1220596

Change-Id: I95ae89525b7e6768c5a70364945d5a10cb906d88
xenapi: refactor: move RawTGZImage to common

During the review of https://review.openstack.org/40909 it was
requested, that the RawTGZImage class should be moved to a common
territory, so that others can re-use it later.

Fixes bug 1220596

Change-Id: I0f186c2f81edbd546c0a24d66e4b9c1626373b12
XenAPI: Fix translation of metadetails in aggregates

https://review.openstack.org/#/c/43157/ added a translation from the sqlalchemy model to
the instance object replacing metadetails with metadata.

This added more traces in general for XenAPI (when we queried whether we were using
aggregates) and actually broke the host aggregate functionality

Change-Id: I87195753931945b6e1ecf75bc81575a6fa03068e
Closes-bug: 1232179
xenapi: post install scriptlet to rpm

A post install script that creates the /images directory on xenserver,
and sets up the trust relationship.

Change-Id: Id57e3a3ab2782550468c6aa4c01059ceb7cc81ab