Domains prototype in Nova

Change-Id: Id6c59c6008b6cdda3554c7e7b94f4596f4c13ab0

Don't allow compute_node free_disk_gb to be None

As part of commit 5668870, we now explicitly guard against the case
free_disk_gb is None or unset. However, this should never happen
since resource tracker always sets it and guarding against this case
isn't actually needed to fix the bug in question.

Also, simplify the code a little to make the intent more clear. We
assume that free_disk_gb is always set, but we want to use
disk_available_least where the driver has set it. The case where
disk_available_least is less than free_disk_gb is the exceptional
case we want to guard against.

Change-Id: I3973eab6b4ca016df546de8b57245fc0d0f03a80

Domain prototype

Change-Id: Id06fc7c41a0c2acade683d46efce4555caa8851a

Adding information about domain in the context

Adding the variables domain_id, project_domain_id and user_domain_id to
the RequestContext in order to be able to implement domain quotas. If no
domain information is in the header the variables are set to 'default',
since it's the default value for domain in Keystone V2.0 API.

Change-Id: Ice7805041d2df72d603e9d56a5df4cf7f5489992
Closes-bug: #1248936

Testing inclusion of domain id on project

Domain prototype

Inclusao

Inclusao

Inclusao

Inclusao

Inclusao 2

Inclusao 2

Inclusao 2

Inclusao 2]

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

$1

Tests finished