~chcheng/cloud-init:migrate-lp-to-github

Last commit made on 2020-05-07
Get this branch:
git clone -b migrate-lp-to-github https://git.launchpad.net/~chcheng/cloud-init
Only cheng cheng can upload to this branch. If you are cheng cheng please log in for upload directions.

Branch merges

Branch information

Name:
migrate-lp-to-github
Repository:
lp:~chcheng/cloud-init

Recent commits

0e25e90... by cheng cheng

lp-to-git-users: adding chengcheng-chcheng

Mapped from chcheng

022122a... by Lucas Albuquerque Medeiros de Moura

Create tests to validate schema examples (#348)

Add a unit test to validate if the examples provided in the config
modules are conforming to the concatenated schema of all config
modules. The rationale behind that is not only to verify if the
examples are correctly written but to assert that no config schema
is interfering with each other.

Failures in validate_cloudconfig_schema raise the
SchemaValidationError by using strict=True, so I have
only called the function passing the right schema examples to
validate.

This branch also fixes an invalid schema example in cc_snap.

LP: #1876412

73d8748... by Dan Watkins

analyze/dump: add support for Amazon Linux 2 log lines (#346)

Amazon Linux 2 is configured with a log format different to the one
shipped by upstream, which means analyze fails to parse any of the log
lines. This updates the code to know how to parse such lines.

LP: #1876323

f9b393b... by Gonéri Le Bouder

bsd: upgrade support (#305)

Implement the upgrade support:

- FreeBSD: using `pkg upgrade`
- NetBSD: with `pkgin`

59dd290... by lucasmoura <email address hidden>

Add lucasmoura as contributor (#345)

fededca... by James Falcon <email address hidden>

Add "therealfalcon" as contributor (#344)

4d26848... by Paride Legovini

Adapt the package building scripts to use Python 3 (#231)

Since upstream cloud-init has dropped python2 support,
adapt remaining package build scripts and tools to python3 only

Changes:

* Do not template debian/rules as python3 is the only supported version
* Drop six from requirements.txt
* Makefile: drop everything related to Python 2
* run-container: install the CI deps only on ubuntu|debian
* read-version: update the shebang to use Python 3
* brpm: read_dependencies(): drop unused argument
* read-dependencies: switch to Py3 and drop the --python-version option
* pkg-deps.json: drop the Python version field and update the redhat deps
* pkg-deps.json: drop the unittest2 and contextlib2 renames
* Update RPM the spec file to use Python 3 when building the RPM
* bddeb: drop support for Python 2

70dbccb... by Dan Watkins

DataSourceEc2: use metadata's NIC ordering to determine route-metrics (#342)

We want to set route-metrics such that NICs are configured with the priority that they are given in the network metadata that we receive from the IMDS. (This switches away from using MAC ordering.)

This also required the following test changes:

* reverse the sort order of the MACs in test data (so that they would trigger the bug being fixed)
* fix up the key names in `NIC2_MD` (which were under_scored instead of dash-separated)
* use a full interface dict (rather than a minimal one) for `TestConvertEc2MetadataNetworkConfig`

LP: #1876312

25698b1... by Dan Watkins

.travis.yml: introduce caching (#329)

cloud-images.ubuntu.com can sometimes be under heavy load; caching the
images helps avoid that affecting our build times (or causing build
failures entirely).

7dceb98... by Dan Watkins

cc_locale: introduce schema (#335)