Make test_evacuate from compute API DRYer

test_evacute creates a context in almost every test
and sets its properties. Move that to a method to avoid extra
copy/paste.

Change-Id: Ib75575061bddf2546c46a6ef788ab85b5926ce69
Fix monkey_patch docstring bug

Modify Flags.monkey_patch to CONF.monkey_patch

Change-Id: I773a94d97d206bf78ac52de8e22d9e6db7650eb9
Closes-Bug: #1258048
Rename instance_type to flavor in vmware virt driver tests

Renames 'instance_type' to 'flavor' in the vmware virt driver tests.
There were no occurrences of 'instance_type' in the virt driver itself,
so this patch only changes the tests.

Part of blueprint flavor-instance-type-dedup

Change-Id: I81ea543e0ab480e35cf5b7b59bd9ecb1cf361c6f
Rename instance_type to flavor in libvirt virt driver tests

Renames 'instance_type' to 'flavor' in the libvirt virt driver tests.
There were no occurrences of 'instance_type' in the virt driver itself,
so this patch only changes the tests.

This also removes the unused _create_instance_type method in
test_libvirt.

Note that instance_type_id and instance_type_swap are not changed since
those are part of the database model and would require a database
migration to change them.

Part of blueprint flavor-instance-type-dedup

Change-Id: Iec71509e38aed1341f37194fb94dd34b10ac2f54
VMware: fix rescue with disks are not hot-addable

Some disks, for example IDE, cannot be attached to an instance
when the instance is running.

Change-Id: I3360066ea6406564caa328ec052b9e3ca9d63dc6
Closes-Bug: #1247556
Create common method for MTU treatment

MTU setting for device was repeated a number of times in the code.
The patch set creates a common function to do this operation.

Change-Id: I5aea4eb02302d7396ae104bee906bf1c37239542
Sync processutils from oslo-incubator

This includes the following changes:

  af41592 Catch OSError in processutils
  f773ea2 Fix i18n problem in processutils module
  8b2b0b7 Use hacking import_exceptions for gettextutils._
  3b71f46 Fixed misspellings of common words
  12bcdb7 Remove vim header
  a4dab73 Correct execute() to check 0 in check_exit_code

Closes-bug: #1271331
Change-Id: I12b621fa5a2cdeeab6d51902416ce5dd4db61ba7
Merge "Make test_evacuate from compute API DRYer"
Merge "Fix monkey_patch docstring bug"
Merge "VMware: fix rescue with disks are not hot-addable"
Merge "Sync processutils from oslo-incubator"
Merge "Rename instance_type to flavor in vmware virt driver tests"
Merge "Rename instance_type to flavor in libvirt virt driver tests"
Merge "Create common method for MTU treatment"