~ahosmanmsft/cloud-init:azurecloudtests

Last commit made on 2019-11-25
Get this branch:
git clone -b azurecloudtests https://git.launchpad.net/~ahosmanmsft/cloud-init
Only Ahmed can upload to this branch. If you are Ahmed please log in for upload directions.

Branch merges

Branch information

Name:
azurecloudtests
Repository:
lp:~ahosmanmsft/cloud-init

Recent commits

6d682c1... by Ahmed

space to tab pylint

059e3e5... by Ahmed

pylint

2702609... by Ahmed

more pylint errors

91e4bd3... by Ahmed

fixed pylint error

57c275a... by Ahmed

added integration requirements to pylint

8529cba... by Ahmed

fixed lazy logging

3baf88c... by Ahmed

Merge branch 'master' of https://git.launchpad.net/cloud-init into azurecloudtests

4bc399e... by Ryan Harper

ec2: Add support for AWS IMDS v2 (session-oriented) (#55)

* ec2: Add support for AWS IMDS v2 (session-oriented)

AWS now supports a new version of fetching Instance Metadata[1].

Update cloud-init's ec2 utility functions and update ec2 derived
datasources accordingly. For DataSourceEc2 (versus ec2-look-alikes)
cloud-init will issue the PUT request to obtain an API token for
the maximum lifetime and then all subsequent interactions with the
IMDS will include the token in the header.

If the API token endpoint is unreachable on Ec2 platform, log a
warning and fallback to using IMDS v1 and which does not use
session tokens when communicating with the Instance metadata
service.

We handle read errors, typically seen if the IMDS is beyond one
etwork hop (IMDSv2 responses have a ttl=1), by setting the api token
to a disabled value and then using IMDSv1 paths.

To support token-based headers, ec2_utils functions were updated
to support custom headers_cb and exception_cb callback functions
so Ec2 could store, or refresh API tokens in the event of token
becoming stale.

[1] https://docs.aws.amazon.com/AWSEC2/latest/ \
UserGuide/ec2-instance-metadata.html \
#instance-metadata-v2-how-it-works

eb65ed5... by Ahmed

added pylintrc

30679da... by Ahmed

increased boot_timout