Catch NotFound exception in FloatingIP add/remove

Catch the FloatingIPNotFoundForAddress exception for add/remove
operations in floating ip extension for non existing floating ips.

Fixes bug 977536

Change-Id: Ied450aa56ef7a52a015c6d78a099d445ab6258b6
Fix booting a raw image on XenServer

Fixes bug 1055413.

ImageType.from_string removed, as it was only used by its test.
Introduced ImageType.get_role, that returns the image's role within the
VM. In case of DISK_* image types, the role is always 'root'. Role
should be the key when accessing the vdis dictionary.

Change-Id: Ieb952a9246d06a8280510113a98b888237abcc65
xenapi: Removing legacy swap-in-image.

This patch removes our legacy handling of swap in the image. Now that
we're generating swap on-the-fly, this stop-gap solution can go away.

Change-Id: Ied3198f77af8dabb6cfbf2ab9cfb3a4eb18e32ea
Remove TestCase.assertNotRaises

assertNotRaises appears to have been added to provide an easier way to
assert that an exception should not be raised by a particular call in
the test.

However, the implementation has a couple of problems.

The first is that it catches every other exception than the one specified,
and silently ignores them. This had lead to one bug where a legitimate bug
in the test (test_exception_with_rescheduling_enabled) was silently
ignored. The call intended to be tested was called with too few
arguments and the resulting TypeError was silently ignored.

The second is that assertNotRaises could be called with None, which
meant that no exceptions should be raised. However, this didn't do
anything other than reraise the original exception. Calling
assertNotRaises just adds an extra call with no value.

From a design stand point, it's not clear what value this assertion
provides since the test runner will already fail a test if an exception
is raised.

Change-Id: I64502dfa0e873f2bbd9b733a5fb63023e1b4e296
Update RPM SPEC to include new bandwidth plugin.

RPM builds will fail until this line is added to include
the new plugin.

Fixes bug 1059772

Change-Id: I06d78cf199d4cb580003e4c220af3efc8dbe437c
Add aggregates extension to API samples test.

Change-Id: I8f0f5b022795dc1d766e585cab8fe5f8445a3722
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
remove deprecated connection_type flag

Fixes bug #1025712

connection_type was deprecated in Folsom and should now
be removed in Grizzly as early as possible to shake out
any fallout. This removes all references to it, changes
the config sample and tests appropriately.

Remove old default fixtures for flavors that specify
ephemeral disks if the connection_type flag was set to
'libvirt'

Change-Id: I8af831600a1931ae92c6d06c5105bd1bd81debe3
Merge "Remove TestCase.assertNotRaises"
Merge "Catch NotFound exception in FloatingIP add/remove"
Merge "xenapi: Removing legacy swap-in-image."
Remove outdated moduleauthor tags

The moduelauthor tags are used by the docs to see who wrote what.
But many of them are outdated and wrong.

fixes bug 1044578

Change-Id: I9cc27430c906d1418faf28e1b53f6306c62e8f98
Imported Translations from Transifex

Change-Id: I7d4e3134917f274fa7385115b7dc4ba4f92f36b8
Merge "remove deprecated connection_type flag"
Merge "Imported Translations from Transifex"
Merge "Add aggregates extension to API samples test."
Merge "Fix booting a raw image on XenServer"