Adds ability to add project name or id to VM names upon build time

Feature is most useful for flat networks where one may have several
projects/teams in one domain and hostnames are required to be unique
across the network or organisation. This will enable you to add
project_id and project_name to VMs by setting configuration variable
in nova.conf when using multi_instance_display_name_template,
for single instances you'd set single_instance_display_name_template
instead. multi_instance_display_name_template also has been amended
to be able to set project_id and/or project_name.

Added: Use msg level: LOG.exception(_LE())
Added: Unittests for multi_instance_display_name_template and
       single_instance_display_name_template

Change-Id: Id039cebfa93ef982a5fca810cdaf794dd4dc5ac2

Adds ability to add project name or id to VM names upon build time

Feature is most useful for flat networks where one may have several
projects/teams in one domain and hostnames are required to be unique
across the network or organisation. This will enable you to add
project_id and project_name to VMs by setting configuration variable
in nova.conf when using multi_instance_display_name_template,
for single instances you'd set single_instance_display_name_template
instead. multi_instance_display_name_template also has been amended
to be able to set project_id and/or project_name.

Use msg level: LOG.exception(_LE())

Use msg level: LOG.exception(_LE())

Add tests for multi_instance_display_name_template and single_instance_display_name_template

Adds tests to existing multi_instance_display_name_template to also test for project_id and
project_name. Adds missing tests for single_instance_display_name_template.

Adds ability to add project name or id to VM names upon build time

Feature is most useful for flat networks where one may have several
projects/teams in one domain and hostnames are required to be unique
across the network or organisation. This will enable you to add
project_id and project_name to VMs by setting configuration variable
in nova.conf when using multi_instance_display_name_template,
for single instances you'd set single_instance_display_name_template
instead. multi_instance_display_name_template also has been amended
to be able to set project_id and/or project_name.

Use msg level: LOG.exception(_LE())

Use msg level: LOG.exception(_LE())

Use msg level: LOG.exception(_LE())

Add tests for multi_instance_display_name_template and single_instance_display_name_template

Adds tests to existing multi_instance_display_name_template to also test for project_id and
project_name. Adds missing tests for single_instance_display_name_template.
Merge branch 'nova-allow_vm_name_to_use_project_name_or_id' of github.com:alex-leonhardt/nova into nova-allow_vm_name_to_use_project_name_or_id