No longer any need to pass admin context to aggregate DB API methods

No longer need to pass an elevated context because the check of
admin has been removed in following patch:
https://review.openstack.org/67026

This patch removes the admin context elevated
method in nova/scheduler sub-folder since it's not required any more.

Change-Id: Ib768c97c9e84a9db44d866fa5fbfc4665ad7c73e
Partial-Bug: #1279216
Rename quota_injected_file_path_bytes

Rename quota_injected_file_path_bytes to
quota_injected_file_path_length, and change help message to
'Length of injected file path'.

DocImpact

Change-Id: Id6b9c03b37664601937e4bc9d4a8d8026c4d3b63
Closes-bug: 1258175
Remove spaces from SSH public key comment

An SSH key generated by Nova contains the comment 'Generated by Nova'. Older
versions (prior to 0.7.2) of cloud-init trip over the spaces in the comment
and as a result of that the key injected into the root account is not disabled
by cloud-init. Yes, it's a cloud-init bug but it's also a regression in the
sense that older OpenStack installations (Essex and older) don't contain
spaces in Nova generated key comments and thus older cloud-init's are not
affected in these environments.

This patch replaces the spaces with dashes, i.e., 'Generated-by-Nova'.

Spaces were introduced by commit: 114109dbf4094ae6b6333d41c84bebf6f85c4e48
Ubuntu cloud images with cloud-init < 0.7.2: 10.04 LTS and 12.04 LTS
cloud-init bug report: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1220273

Closes-Bug: #1297685
Change-Id: I1761f61dfbba58be98351ae4a51884b03268cf09
share neutron admin auth tokens

Admin tokens in nova.network.neutronv2 were being created once per
"thread" (i.e., green thread) and shared. For example, during instance
creation, a single token was created then reused 6 times.  However,
this scheme was far from optimal. Given that tokens, by default, have
a shelf life of 24H, a single token can be shared by _all_ admin
nova.network.neutronv2 calls in a 24-hour period.

DocImpact
Signed-Off-By: Peter Feiner <peter@gridcentric.ca>
Closes-Bug: 1255594

Change-Id: I5c743aa86030e4ab000dcdefb6a7183305512303
Remove two unused db.api methods

Remove two methods from the db API that are no longer used.  These
methods were deprecated when the VolumeMapping object was created,
which doesn't use them.  The relevant code has been converted to use
the VolumeMapping object, so these can now be removed.

Change-Id: I8c230d994a108c9f4c1ee7e112178b852520cb3e
Add new ec2 instance db API calls

The existing API calls for the EC2 instance ID mappings only returned
the EC2 ID or the UUID, not the full mapping.  We really want APIs
that return the whole mapping for use with a nova object.  This patch
adds those APIs which will be used by the InstanceMapping nova object.

Change-Id: Ie1e5aa1c80c92cc65c6a1e062922f0375b742ea6
Merge "Remove spaces from SSH public key comment"
Merge "share neutron admin auth tokens"
Merge "Remove two unused db.api methods"
Merge "Add new ec2 instance db API calls"
Merge "Rename quota_injected_file_path_bytes"
Merge "No longer any need to pass admin context to aggregate DB API methods"