Removes privilege modification for MYSQL_BASE_DIR

Reasons:
- No usage of the path MYSQL_BASE_DIR in the method.
- 2 Files used in the method are both in different locations
  /tmp/my.cnf.tmp and /etc/mysql/my.cnf
- It is just a hanging line of code without any reasons.

Changes:
- privilege modification line removed from code.

Change-Id: I676f7faaf1e7b78c5d0f9f79b622f230ae2b9740
Closes-Bug: #1261854
Removes directory creation prior to _tmp_mount

Reasons:
- Directory creation is included in VolumeMountPoint.mount method.
- No need to repeat the steps before calling the mount method.

Changes:
- Removed directory creation prior to calling _tmp_mount.
- Test updated to reduce number of utils.execute,
  as we now have one less call in the code.

Change-Id: I5136f1ce537c919ff2e009cd617f33925d955e88
Closes-Bug: #1261905
make the bin scripts called with main()

This will make everything easier to manage and callable by other python
scripts/modules if you need to depend on the module. Others can then
just call the main() function instead of executing the script.

Closes-Bug: #1261823

Change-Id: I5e94ee19bd4f7a69d7ca5efc6288d402520cd5bf
Merge "Removes privilege modification for MYSQL_BASE_DIR"
Merge "Removes directory creation prior to _tmp_mount"
Merge "make the bin scripts called with main()"
Fixes volume resizes attached to active nova servers

When extending a volume attached to an active nova server, the guest
must be stopped, the volume unmounted, detached, and extended.
Once the underlying volume has been extended the volume should be
reattached, have the file system resized, mounted, and then the
guest should be restarted. If all operations complete successfully
the task status should be set to NONE and a usage event sent,
reflecting the size of the volume as reported by Cinder.

This fixes extending volumes attached to active nova servers to ensure a
proper resize is performed and the task status is set to NONE after all
resize operations complete successfully. Unit tests are also added.

Change-Id: I9a5785f539a2ee138ce1ded3cbd795ef91d66400
Closes-Bug: #1259976