Fix fake_update in test_update_missing_server

In test_update_missing_server, fake_update should be used as update()
method but it is used as create() instead. In addition, the test comment
also is wrong.
This patch fixes them.

Change-Id: Ia4704413dd7355010546dba7096ed34225bb4b0f
Split EC2 ID validator to validator per resource type.

Now there is only one method to validate EC2 id: validate_ec2_id().
It's used to validate both the Instance ID as well as Volume ID for
valid EC2 ID format. However exception class raised in both cases
is "InvalidInstanceIDMalformed" and EC2 error code is
InvalidInstanceID.Malformed.

This patch addresses this problem by adding two new methods:
* validate_instance_id()
* validate_volume_id()
These methods use validate_ec2_id() and raise appropriate
exception as well as appropriate EC2 error code based on
AWS EC2 Error Code documentation:
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/api-error-codes.html

Change-Id: I55591b8b643bb316e5001e645d71c13094106e96
Closes-Bug: #1199308
HyperV Driver - Fix to implement hypervisor-uptime

The hyperv driver currently does not return the hypervisor-uptime.
This fix does the necessary changes to return the hypervisor-uptime.
The uptime returned is in similar format to libvirt driver uptime

The uptime is calculated using the windows function GetTickCount64
More details about this function available at
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411%28v=vs.85%29.aspx

The function GetTickCount64 returns in millisecs the time since the host
is up.

Change-Id: Ib3cd90b17f64e369badaddb764ac9e6b9f6c1a4b
Closes-Bug: #1335559
Adds tests for Hyper-V Volume utils

Adds unit tests for Hyper-V BaseVolumeUtils,
VolumeUtils and VolumeUtilsV2 classes.

Co-Authored-By: Mouhammad-Nashwan Azhari <nmouhammad@cloudbasesolutions.com>

Partial-Bug: #1220256

Change-Id: I2792e0c08d2602f3c2690d44b632c2e932a94115
Log warning message if volume quota is exceeded

It would be useful to the user if a warning message is logged
when the volume quota is exceeded instead of a debug message.
This would allow the root cause to be more easily determined
instead of turning on the debug option.

Change-Id: I19dc078cbacf8f39480e8a7f4c4edb764e4696eb
Closes-Bug: #1349268
Adds Hyper-V Compute Driver soft reboot implementation

Adds a soft reboot implementation for feature parity with other
Nova drivers as specified in the base virt driver's interface.

Co-Authored-By: Simona Iuliana Toader <itoader@cloudbasesolutions.com>

Change-Id: I963cbdacdfefca47d6e45fa0aafac188963bcaed
Implements: blueprint hyper-v-soft-reboot
Fix class name for ServerGroupAffinityFilter

The class name for ServerGroupAffinityFilter is
ServerGroupAffinityFilter and not ServerGroupAntiAffinityFilter. The
wrong class lead to a wrong display on
http://docs.openstack.org/developer/nova/devref/filter_scheduler.html

Change-Id: I690a60cb70eab4837544ddd0bff6f1264e639592
Closes-Bug: #1360375
Merge "Log warning message if volume quota is exceeded"
Merge "Adds tests for Hyper-V Volume utils"
Merge "Fix class name for ServerGroupAffinityFilter"
Merge "Fix fake_update in test_update_missing_server"
Merge "Adds Hyper-V Compute Driver soft reboot implementation"
Merge "Split EC2 ID validator to validator per resource type."
Merge "HyperV Driver - Fix to implement hypervisor-uptime"