Remove unused opt import in scheduler.driver

Reported by Joe Gordon.

Change-Id: I8d48cad8f7f1548d20f0c3c0d8a4b11dcc351cf4
Remove unused baremetal PXE options

These options were introduced by commit a2f260f and appear to never to
have been used.

Change-Id: Idf1387fd453b7b1c392db764934c148dcbfc5d66
Added sample tests to FlavorSwap API.

Partially implements blueprint nova-api-samples
Fixes bug 1096653

Change-Id: I9a6ca8a023bf0f3404b3a9af635dd29a7a584aa3
Merge "Cope better with out of sync bm data."
Fixed comment typo

Change-Id: I68dd463c7365b536396c6715efa6042b3f102670
Merge "fix N402 for nova/db"
Merge "fix N402 for nova/c*"
Merge "fix N402 for rest of nova"
Merge "fix N402 for nova-manage"
Merge "fix N402 on tools/"
Map libvirt error to InstanceNotFound in get_instance_disk_info

When getting instance disk info, the instance may be destroyed/deleted, and a
libvirtError will be raised in XMLDesc method, so catching and mapping it to
InstanceNotFound and the caller can handle it correctly.

Fixes bug #1064581

Change-Id: I07fed3e82e10dad4cb84ae5c8650ada351c24e78
Fix test cases in integrated.test_multiprocess_api

Fixes bug #1098043

Be patient in test_multiprocess_api while waiting service to be spawned or
killed, because:
    * Service spawning has a limit of one process a second.
    * A test server in the cloud might have limited resources,
      the time there might be several times slower.

Change-Id: If75e6dfa5d769985a6c1b46461f25485e2a996ad
Merge "Move vpn_key_suffix into pipelib"
Merge "Move service_down_time to nova.service"
Merge "Move memcached_servers opt into common.memorycache"
Merge "Move global service networking opts to new module"
Merge "Remove unused opt import in scheduler.driver"
Merge "Remove unused baremetal PXE options"
Fix init_host checking moved instances

Commit 6fc00d3465185 (https://review.openstack.org/#/c/18486/)
introduced a couple of problems.

1) It introduced a method to try to deduce instance integer id from
   a name the driver reports and using instance_name_template.  This
   fails badly when you're using something like 'instance-%(uuid)s' for
   instance_name_template.  It's only used when the driver does not
   support the 'list_instance_uuids' method.. but XenAPI happens to
   not implement this method.

2) There's a call to _get_instance_volume_block_device_info() that is
   passing an instance_uuid when the method wants an instance.

Fixes bug 1097987 (#1 above) by doing a brute force match against
   all instances' names.
Fixes bug 1097978 (#2 above)

Change-Id: I2da7658dd906fa06f0e867a2b22bf14e7f34cb12
Update instance's cell_name in API cell.

It was accidentally being removed before updating the DB due to code
being moved and not updated.  The test for the method was broken, too,
allowing this bug to sneak in.

Fixes bug 1098093

Change-Id: I05c00b8b100568b39afb8ee0ca7ee94d4dd97c0a