~gilles-dartiguelongue/cloud-init:gentoo-fixes

Last commit made on 2018-11-15
Get this branch:
git clone -b gentoo-fixes https://git.launchpad.net/~gilles-dartiguelongue/cloud-init
Only Gilles Dartiguelongue can upload to this branch. If you are Gilles Dartiguelongue please log in for upload directions.

Branch merges

Branch information

Name:
gentoo-fixes
Repository:
lp:~gilles-dartiguelongue/cloud-init

Recent commits

7868b97... by Gilles Dartiguelongue <email address hidden> on 2018-11-14

gentoo: add support for package_upgrade

b15c4c4... by Gilles Dartiguelongue <email address hidden> on 2018-11-14

gentoo: fix update_package_sources function

Method is meant to update packages repository, not to update the system.

3756cde... by Gilles Dartiguelongue <email address hidden> on 2018-11-14

gentoo: fix filename for storing locale

There must have been a misunderstanding as locale.gen is meant to
contain locales to be generated if no argument is passed to locale-gen.

When using openrc, Gentoo stores system locale in /etc/env.d/02locale
which is generally manipulated through eselect.

823454f... by Gilles Dartiguelongue <email address hidden> on 2018-10-24

Add support for gentoo in cloud.cfg and templates

85459ea... by Gilles Dartiguelongue <email address hidden> on 2018-10-23

gentoo: fix package installation command

6062595... by Chad Smith on 2018-11-13

azure: retry imds polling on requests.Timeout

There is an infrequent race when the booting instance can hit the IMDS
service before it is fully available. This results in a
requests.ConnectTimeout being raised.
Azure's retry_callback logic now retries on either 404s or Timeouts.

LP:1800223

6f95120... by Jason Zions <email address hidden> on 2018-11-12

azure: Accept variation in error msg from mount for ntfs volumes

If Azure detects an ntfs filesystem type during mount attempt, it should
still report the resource device as reformattable. There are slight
differences in error message format on RedHat and SuSE. This patch
simplifies the expected error match to work on both distributions.

LP: #1799338

d910ecd... by Aswin Rajamannar on 2018-11-12

azure: fix regression introduced when persisting ephemeral dhcp lease

In commitish 9073951 azure datasource tried to leverage stale DHCP
information obtained from EphemeralDHCPv4 context manager to report
updated provisioning status to the fabric earlier in the boot process.

Unfortunately the stale ephemeral network configuration had already been
torn down in preparation to bring up IMDS network config so the report
attempt failed on timeout.

This branch introduces obtain_lease and clean_network public methods on
EphemeralDHCPv4 to allow for setup and teardown of ephemeral network
configuration without using a context manager. Azure datasource now uses
this to persist ephemeral network configuration across multiple contexts
during provisioning to avoid multiple DHCP roundtrips.

3b332c9... by Chad Smith on 2018-11-08

azure: add udev rules to create cloud-init Gen2 disk name symlinks

Cloud-init delivers udev rules on Azure to create the following symlinks:
- /dev/disk/cloud/azure_root
- /dev/disk/cloud/azure_root-part#
- /dev/disk/cloud/azure_resource
- /dev/disk/cloud/azure_resource-part#

Cloud-init cc_disk_setup expects presence of these dev links in order to
setup the mounted ephemeral disks. Gen1 instances udev rules match based
only a DEVICE_ID attribute that no longer exists on Gen2 instances.
Supplement existing Gen1 rules with matches on specitic SCSI target/lun
path 0:0:0 and 0:0:1 and generate links for azure_root and azure_resource
respectively.

LP: #1797480

093f968... by Chad Smith on 2018-11-08

tests: ec2 mock missing httpretty user-data and instance-identity routes