WIP install and start vdsm service on Ubuntu with some workarounds

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Add NFS storage domain functional tests

Test creating NFS storage domain, pool, image, volume.
Test creating VM with the NFS storage.

How to verify:
1. build and install VDSM rpms, including vdsm-tests
2. start VDSM service
3. cd /usr/share/vdsm/tests
4. ./run_tests.sh -m 'nfs' functional/xmlrpcTests.py

Change-Id: Ic9c24369af552b5d58e0f5704075d6f351792775
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
remoteFileHandler: update the stale comments of import statements

When new child process of remoteFileHandler is started in unit test,
there is no vdsm package installed, so we can not import modules under
vdsm. There is an "if __name__ != 'main'" to conditionally not import
modules from vdsm package in the child process.

After commit d8778ad, which is reviewed at http://gerrit.ovirt.org/9217 ,
'../' is added to PYTHONPATH of the child process in unit test. The
working dir of the child is ./tests, so "from vdsm import X" will get
the module at ./tests/../vdsm/X.py . It can safely import modules under
the vdsm package now. There is no need to protect the import statements.
Then old comment explaining this becomes stale.

This patch drops the old comment, while keeps the import statements in
the "if", because the imported modules are not used in child process.

Change-Id: Ia6bb8e614db7db4a9e56ac59850bef2568468cf9
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Logging: config logging in new process of remoteFileHandler

When new process of Python is started by PoolHandler.__init__() to run
remoteFileHandler.py, the logging configurations are lost. This patch
sets the configuration for new process of remoteFileHandler.py correctly.
This patch deals with the logging problem described in the following bug
report in the last paragraph of the "Additional info" section.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=875678

Change-Id: I1b3b9e2837d632c7532fcd8f7306ed50b0865b5c
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
make vdsmd.init.in adapt to both Fedora and Ubuntu

The patch is on going work of porting VDSM to Ubuntu
http://www.ovirt.org/VDSM_on_Ubuntu

Change-Id: I186743ed7fd345bf150047d4005818e1df3c07fc
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Revert "Optimize netinfo.networks."

This reverts commit 8716db96de569b38b9e611b219090873762a8f58.
The commit depend on new libvirt-python version, the new version is not
available in Ubuntu yet.
ignore secure config for smartcard channel

Ubuntu qemu is old and does not support that.

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Functional test: add modprobe path of Ubuntu

The patch is on going work of porting VDSM to Ubuntu
http://www.ovirt.org/VDSM_on_Ubuntu

Change-Id: I7218203ee76c12eb068f9e917e374e29208a3d21
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
vdsm-tool: unify ad-hoc execCmd implementations

vdsm.utils.execCmd is actually storage.misc.execCmd, and /usr/share/vdsm
is not in PYTHONPATH, so modules of vdsm-tool can not use execCmd and
there are various ad-hoc implementations in the vdsm-tool modules.

This patch adds /usr/share/vdsm to vdsm-tool's sys.path, and use
vdsm.utils.execCmd as the "official" implementation for all the modules
in vdsm-tool.

Change-Id: I8ca64ec5dbfebe5c5090ec8fac46785a538b79d3
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
vdsm-tool: add service management utilities

Change-Id: Idd1cbcf5fd00bb1ec73c5970be012e294b3b4c55
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
vdsmd.init.in: simplify system services management by using vdsm-tool

In vdsm-tool there is a module implemented the service management
utilities that covers systemd, upstart and sysv.

Change-Id: I57a89d969b8ff4eba57daa893dc29840358c30e7
Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>