vmwareapi: simple refactor of config drive tests

A fairly trivial refactor of multiple identical spawn
invocation calls.

Change-Id: I110df1786b4081abe72428f888c3d27430017ff1
Don't allow reboot when instance in rebooting_hard

It shouldn't allow reboot a instance while the instance in
rebooting_hard task state.
If the instance is in rebooting_hard, solf reboot action is
meaningless.

Change-Id: I43147104a7473eaaf1b86f84386bb28b7e3574c3
Closes-bug: #1288926
Fix the rpc module import in the service module

After porting Nova to oslo.messaging, we forgot to change the import to
point to the new rpc module, and thus the rpc cleanup() method was never
called on service shutdown.

Change-Id: Ic06a19d9b9b98e1575d0aa72afa0d5ae71f6513a
Merge "Fix the rpc module import in the service module"
Merge "Don't allow reboot when instance in rebooting_hard"
Merge "vmwareapi: simple refactor of config drive tests"