~tell1ng/cloud-init:fix-typos-and-whitespaces

Last commit made on 2017-06-01
Get this branch:
git clone -b fix-typos-and-whitespaces https://git.launchpad.net/~tell1ng/cloud-init
Only Stephan Telling can upload to this branch. If you are Stephan Telling please log in for upload directions.

Branch merges

Branch information

Name:
fix-typos-and-whitespaces
Repository:
lp:~tell1ng/cloud-init

Recent commits

4410615... by Stephan Telling

fix typos and remove whitespace in various docs

0a448dd... by Chad Smith

ntp: Add schema definition and passive schema validation.

cloud-config files are very flexible and permissive.
This adds a jsonsschema definition to the cc_ntp module and validation
functions in cloudinit/config/schema which will log warnings about
invalid configuration values in the ntp section.

A cmdline tools/cloudconfig-schema is added which can be used in our dev
environments to quickly attempt to exercise the ntp schema.
It is also exposed as a main in cloudinit.config.schema.
(python3 -m cloudinit.config.schema)

LP: #1692916

00b678c... by Ryan Harper

Fix eni rendering for bridge params that require repeated key for values.

There are a few bridge parameters which require repeating the key with each
value in the list when rendering eni. Extend the network unittests to cover
all of the known bridge parameters and check we render eni and netplan
correctly.

003c667... by Ryan Harper

net: remove systemd link file writing from eni renderer

During the network v2 merge, we inadvertently re-enabled rendering systemd
.link files. This files are not required as cloud-init already has to do
interface renaming due to issues with udevd which may refuse to rename
certain interfaces (such as veth devices in a LXD container). As such,
removing the code altogether.

4a60af5... by Junjie.Wang

AliYun: Enable platform identification and enable by default.

AliYun cloud platform is now identifying themselves by setting the dmi
product id to the well known value "Alibaba Cloud ECS". The changes here
identify that properly in tools/ds-identify and in the DataSourceAliYun.

Since the 'get_data' for AliYun now identifies itself correctly, we can
enable AliYun by default.

LP: #1638931

16a7302... by Dimitri John Ledkov

net: fix reading and rendering addresses in cidr format.

Input (specifically OpenStack) that had:
   "ip_address" : "104.130.20.155",
   "netmask" : "255.255.255.0"

Was being rendered to netplan as '104.130.20.155/255.255.255.0'.
That is now fixed to '104.130.20.155/24'

Also fixed is reading of a route that had a network prefix integer
in the 'netmask' rather than a netmask.

LP: #1689346
LP: #1684349

1815c6d... by Scott Moser

disk_setup: udev settle before attempting partitioning or fs creation.

This attempts to use udevadm settle to wait until devices have been
fully "realized". If a device exists, there may still be events in
the udev queue that would create its partition table entries.
We need to wait until those have been processed also.

LP: #1692093

d27c493... by Dan Watkins

GCE: Update the attribute used to find instance SSH keys.

Per the documentation at
https://cloud.google.com/compute/docs/storing-retrieving-metadata

The instance-level SSH key was named 'sshKeys' and now is 'ssh-keys'.
The project-level SSH key attribute has not changed so is intentionally
not changed here.

LP: #1693582

910ed46... by Dimitri John Ledkov

nplan: For bonds, allow dashed or underscore names of keys.

As some of the bond paramemters are passed in as dashed, or
underscored, depending on the input source.

Also correct transmit-hash-policy netplan target key.

LP: #1690480

e5b2c01... by Scott Moser

python2.6: fix unit tests usage of assertNone and format.

python2.6 unittest.TestCase does not have the assertIsNone or
assertIsNotNone. We just have to explicitly use the unittest2
version, which we get from helpers.

The desire to use assertIsNone comes from flake8 (through hacking,
I believe).

Also, fix "{}.format('foo')" which is not valid in python2.6.