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
Check if nfs/glusterfs export is already mounted

_mount_nfs() do not check if the nfs_share is already mounted on
the same mnt path and pollutes logs with warnings about
'mount.nfs: xxx busy or already mounted'.

The patch will add the method is_mounted to libvirt/utils.py and
use the findmnt tool to find if the same network share on the same target
mount point is already mounted.
If 'findmnt' is not available for any reason (part of utils-linux),
the check will always return False.

Closes-Bug: #1280306
Change-Id: I1d7384ba2f1f1bb82bfbae96cca2772266d2583e
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
Remove unnecessary stubbing in test_services

Stubs are already set in the setUp method. self.controller also does
not need to be recreated after updating the extensions list.

Change-Id: I372842bba3e4286da922e7d814137cefe4583bf5
Merge "Remove unnecessary stubbing in test_services"
Merge "Check if nfs/glusterfs export is already mounted"
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"