-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openstack: Add attribute OPENSTACK_INSTANCE_UUID
In the OpenStack attributes, the field `OPENSTACK_INSTANCE_ID` reports the instance ID fetched from the EC2-compatibility-layer metadata. However, that identifier (in the format `i-something`) does not match the one used to refer to machines in the OpenStack API. With this patch, I propose to add a new OpenStack attribute `OPENSTACK_INSTANCE_UUID` that reports the actual identifier for OpenStack instances in the context of the OpenStack API. Implementation-wise, this patch adds enables fetching the UUID from both the config-drive and from the Nova metadata service endpoint. In order to retain compatibility with old versions of the metadata service, this patch uses the old endpoint `2012-08-10`. Fixes #930
- Loading branch information
1 parent
f22131c
commit 209c215
Showing
4 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters