Add nova migration-list CLI test

Change-Id: I22b49ee3244ff1c05a0041f0d8a5719824617b68
Fix error trace induced by dhcp test actions

Once the agent is removed, we are unable to deallocate
dhcp resources for the port until the entire network is
torn down; this is fine, but by doing so we cause Neutron
Server to emit a log error.

This patch simply deletes the port before doing the
disassociation, however a cleaner way to deal with this
would be to avoid relying on port creation to trigger a
network scheduling, though, this would require a more
elaborated fix.

Closes-bug: 1292242

Change-Id: I187d8dd707d67eb39446a5558913331310bd1f47
Validate get fixed-ips attributes of Nova V2 API

This patch adds the JSON schema for Nova V2 get fixed-ips API
response and validate the response with added JSON schema to
block the backward incompatibility change in the future.

The response body of V2 get fixed-ip API is below:

{
    "fixed_ip": {
        "address": "192.168.1.1",
        "cidr": "192.168.1.0/24",
        "host": "host",
        "hostname": "openstack"
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I1b8b2c00492e85e6075c036b41f28e68357da653
Validate of Nova list Floating IPs attributes

This patch adds the JSON schema for Nova list Floating IPs API
response and validate the response of list Floating IPs API
with added JSON schema to block the backward incompatibility
change in the future.

The response body of list Floating IPs API is below:

{
    "floating_ips": [
        {
            "id": 1,
            "pool": "nova",
            "instance_id": null,
            "ip": "10.10.10.1",
            "fixed_ip": null,
        }
    ]
}

Partially implements blueprint nova-api-attribute-test

Change-Id: Ica266688af310bb804bcf7fb240ca6a005b156c0
Verify the response attributes of 'list_hosts'

This patch verifies the response attributes of list_hosts.
The response body of v2 and v3 API are in the same format:

"hosts": [
    {
        "host_name": "b6e4adbc193d428ea923899d07fb001e",
        "service": "conductor",
        "zone": "internal"
    }
]

Partially implements blueprint nova-api-attribute-test

Change-Id: Ia26d14e6fcec0e8f76224669ebde57ff8840605c
Add server to clean up even in case of errors

In the case of instance build times out it would never been added to cleanup so
we put it on the list before wait for it get ready.

Fixes bug #1292641

Change-Id: Id030457cfe038849b81008de18b5f93fc024a47e
Fix cinder quota cleanup

The cinder quota update test is setting default quotas for volume types
that might have been removed while we were running tests. Only update
the default quotas for the global values.

https://review.openstack.org/#/c/81503 fixed the test comparison which
was also broken, now the race condition hits in the cleanup.

Change-Id: I496e699e3b805aa2130ed39476008a6cd2b0cb6d
Closes-Bug: 1294824
Verify "create a server" API response attributes

Now most attributes of Nova v2/v3 APIs are not checked in Tempest,
and this patch adds some tests which check these attributes to block
the backward incompatibility change in the future.

This patch adds the checks of "create a server" API responses.

The response body of v2 API is the following:
  {
    "server": {
      "id": "d099f759-021f-41ad-8ad3-7d9ddecaf07a",
      "security_groups": [{"name": "default"}],
      "links": [
        {"href": "http://[..]", "rel": "self"},
        {"href": "http://[..]", "rel": "bookmark"}
      ],
      "adminPass": "6GLunfZpNbB8",
      "OS-DCF:diskConfig": "MANUAL"
    }
  }

The one of v3 API is the following:
  {
    "server": {
      "id": "c2f2ebe8-5a25-442b-83d2-9f0926a7a88a",
      "os-security-groups:security_groups": [{"name": "default"}],
      "links": [
        {"href": "http://[..]", "rel": "self"},
        {"href": "http://[..]", "rel": "bookmark"}
      ],
      "admin_password": "7XW3fhZpe6iF",
      "os-access-ips:access_ip_v6": "",
      "os-access-ips:access_ip_v4": "",
    }
  }

Partially implements blueprint nova-api-attribute-test

Change-Id: I584c47df3de8be2dd593b39b5486c9ed38c9a7ed
Merge "Add server to clean up even in case of errors"
Merge "Fix error trace induced by dhcp test actions"
Merge "Verify "create a server" API response attributes"
Merge "Validate of Nova list Floating IPs attributes"
Merge "Validate get fixed-ips attributes of Nova V2 API"
Merge "Verify the response attributes of 'list_hosts'"
Merge "Fix cinder quota cleanup"
Merge "Add nova migration-list CLI test"
Merge branch 'master' of https://github.com/openstack/tempest