lp:~daniel-thewatkins/cloud-init/+git/cloud-init

Owned by Dan Watkins
Get this repository:
git clone https://git.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init
Only Dan Watkins can upload to this repository. If you are Dan Watkins please log in for upload directions.

Branches

Name Last Modified Last Commit
ubuntu/devel 2019-09-17 10:12:54 UTC 2019-09-17
releasing cloud-init version 19.2-36-g059d049c-0ubuntu1

Author: Dan Watkins
Author Date: 2019-09-17 10:12:54 UTC

releasing cloud-init version 19.2-36-g059d049c-0ubuntu1

lp1843276 2019-09-09 16:49:33 UTC 2019-09-09
atomic_helper: add DEBUG logging to write_file

Author: Dan Watkins
Author Date: 2019-09-09 14:23:50 UTC

atomic_helper: add DEBUG logging to write_file

Fixes LP: #1843276

networking 2019-09-04 18:24:29 UTC 2019-09-04
[WIP] net: only apply routes if we bring an ephemeral DHCP interface up

Author: Dan Watkins
Author Date: 2019-09-04 18:24:29 UTC

[WIP] net: only apply routes if we bring an ephemeral DHCP interface up

TODO:
* Tests

gitignore 2019-08-22 18:14:08 UTC 2019-08-22
.gitignore: ignore files produced by package builds

Author: Dan Watkins
Author Date: 2019-08-22 18:12:17 UTC

.gitignore: ignore files produced by package builds

dracut 2019-08-22 17:58:48 UTC 2019-08-22
net/cmdline: refactor to allow multiple initramfs network config sources

Author: Dan Watkins
Author Date: 2019-08-22 15:36:25 UTC

net/cmdline: refactor to allow multiple initramfs network config sources

This refactors read_initramfs_config to support multiple different types
of initramfs network configuration. It introduces an
InitramfsNetworkConfigSource abstract base class. There is currently a
single sub-class, KlibcNetworkConfigSource, which contains the logic
which previously was directly within read_initramfs_config.

doc 2019-08-19 13:44:05 UTC 2019-08-19
format: clean up trailing whitespace

Author: Dan Watkins
Author Date: 2019-08-19 13:44:05 UTC

format: clean up trailing whitespace

oci-vnic 2019-08-16 14:30:03 UTC 2019-08-16
DataSourceOracle: prefer DS network config over initramfs

Author: Dan Watkins
Author Date: 2019-08-16 13:50:21 UTC

DataSourceOracle: prefer DS network config over initramfs

DataSourceOracle.network_config merges the initramfs configuration with
configuration from OCI's IMDS, so prefer data source network config over
the initramfs network config.

pr_template 2019-08-15 17:55:56 UTC 2019-08-15
Add GitHub pull request template to point people at hacking doc

Author: Dan Watkins
Author Date: 2019-08-15 14:06:27 UTC

Add GitHub pull request template to point people at hacking doc

This will hopefully avoid people submitting PRs against our mirror repo.

(Thanks to GitHub user @max06 for this suggestion!)

useradd 2019-08-14 19:48:17 UTC 2019-08-14
distros/freebsd: clean up variable name for consistency

Author: Dan Watkins
Author Date: 2019-08-14 19:48:17 UTC

distros/freebsd: clean up variable name for consistency

coverity 2019-07-10 16:45:38 UTC 2019-07-10
DataSourceCloudSigma: remove unreachable code

Author: Dan Watkins
Author Date: 2019-07-10 16:45:38 UTC

DataSourceCloudSigma: remove unreachable code

This unreachable code was introduced in a refactor (in 2015) which
removed the need for an exception handler, but retained the logging from
the exception handler as an unreachable fall-through.

docs 2019-06-25 20:00:19 UTC 2019-06-25
doc: add a link to netplan.io

Author: Dan Watkins
Author Date: 2019-06-25 20:00:19 UTC

doc: add a link to netplan.io

warn 2019-05-07 14:25:07 UTC 2019-05-07
replace remaining occurrences of LOG.warn

Author: Dan Watkins
Author Date: 2019-05-07 14:25:07 UTC

replace remaining occurrences of LOG.warn

LP: #1508442

snap 2019-04-26 16:12:34 UTC 2019-04-26
snap: use network-setup-control interface

Author: Dan Watkins
Author Date: 2019-04-26 16:12:34 UTC

snap: use network-setup-control interface

lintian 2019-04-19 13:50:20 UTC 2019-04-19
packages: update rpm specs for new bash completion path

Author: Dan Watkins
Author Date: 2019-04-19 13:42:41 UTC

packages: update rpm specs for new bash completion path

LP: #1825444

revert 2019-04-10 19:22:16 UTC 2019-04-10
Revert "DataSource: move update_events from a class to an instance attribute"

Author: Dan Watkins
Author Date: 2019-04-10 19:22:16 UTC

Revert "DataSource: move update_events from a class to an instance attribute"

Moving update_events from a class attribute to an instance attribute
means that it doesn't exist on DataSource objects that are unpickled,
causing tracebacks on cloud-init upgrade.

As this change is only required for cloud-init installations which don't
utilise ds-identify, we're backing it out to be reintroduced once the
upgrade path bug has been addressed.

This reverts commit f2fd6eac4407e60d0e98826ab03847dda4cde138.

feature/cc-uaclient 2019-04-03 00:39:59 UTC 2019-04-03
test_ubuntu_advantage: handle logging due to missing jsonschema

Author: Dan Watkins
Author Date: 2019-04-03 00:39:59 UTC

test_ubuntu_advantage: handle logging due to missing jsonschema

pylint 2019-03-18 16:15:32 UTC 2019-03-18
tox: bump pylint version to latest (2.3.1)

Author: Dan Watkins
Author Date: 2019-03-18 16:15:32 UTC

tox: bump pylint version to latest (2.3.1)

The previous version was emitting errors due to an incompatibility with
one of its dependencies.

(We could have pinned the dependency instead, but staying current on
pylint is a worthy goal in and of itself.)

feature/driver-enablement 2019-03-18 16:09:34 UTC 2019-03-18
Update/add test name and docstrings

Author: Dan Watkins
Author Date: 2019-03-18 16:09:34 UTC

Update/add test name and docstrings

ds_update_events 2019-03-14 21:48:52 UTC 2019-03-14
DataSource: move update_events from a class to an instance attribute

Author: Dan Watkins
Author Date: 2019-03-14 21:21:35 UTC

DataSource: move update_events from a class to an instance attribute

Currently, DataSourceAzure updates self.update_events in __init__. As
update_events is a class attribute on DataSource, this updates it for
all instances of classes derived from DataSource including those for
other clouds. This means that if DataSourceAzure is even instantiated,
its behaviour is applied to whichever data source ends up being used for
boot.

To address this, update_events is moved from a class attribute to an
instance attribute (that is therefore populated at instantiation time).
This retains the defaults for all DataSource sub-class instances, but
avoids them being able to mutate the state in instances of other
DataSource sub-classes.

update_events is only ever referenced on an instance of DataSource (or a
sub-class); no code relies on it being a class attribute. (In fact,
it's only used within methods on DataSource or its sub-classes, so it
doesn't even _need_ to remain public, though I think it's appropriate
for it to be public.)

DataSourceScaleway is also updated to move update_events from a
class attribute to an instance attribute, as the class attribute would
now be masked by the DataSource instance attribute.

LP: #1819913

bugfix/release_blocker 2019-03-12 14:28:28 UTC 2019-03-12
DataSourceEc2: update RELEASE_BLOCKER to be more accurate

Author: Dan Watkins
Author Date: 2019-03-11 21:56:37 UTC

DataSourceEc2: update RELEASE_BLOCKER to be more accurate

Our previous understanding of the upgrade issue was incomplete; it turns
out the only change we need is the one now outlined.

ubuntu/xenial 2019-03-11 21:10:26 UTC 2019-03-11
d/patches: don't configure networking on every boot for EC2 Classic instances

Author: Dan Watkins
Author Date: 2019-03-08 15:46:13 UTC

d/patches: don't configure networking on every boot for EC2 Classic instances

ubuntu/bionic 2019-03-11 21:08:35 UTC 2019-03-11
d/postinst: remove now-incorrect apt pipelining configuration

Author: Dan Watkins
Author Date: 2019-03-08 14:58:06 UTC

d/postinst: remove now-incorrect apt pipelining configuration

ubuntu/cosmic 2019-03-11 21:06:10 UTC 2019-03-11
d/postinst: remove now-incorrect apt pipelining configuration

Author: Dan Watkins
Author Date: 2019-03-08 14:58:06 UTC

d/postinst: remove now-incorrect apt pipelining configuration

clean 2019-03-04 21:49:01 UTC 2019-03-04
clean: correctly determine the path for excluding seed directory

Author: Dan Watkins
Author Date: 2019-03-04 21:49:01 UTC

clean: correctly determine the path for excluding seed directory

Previously, init.paths.cloud_dir has a trailing slash, which meant that
"/var/lib/cloud//seed" was being compared to "/var/lib/cloud/seed" and
(of course), never matching.

In this commit, switch to using os.path.join to avoid this case (and
update the tests to catch it in future).

LP: #1818571

py26 2019-02-25 22:46:41 UTC 2019-02-25
drop Python 2.6 support and our NIH version detection

Author: Dan Watkins
Author Date: 2019-02-25 22:41:21 UTC

drop Python 2.6 support and our NIH version detection

- Remove the last few places that use `if PY26`
- Replace our Python version detection logic with six's (which we were
  already using in most places)

tests 2019-02-25 22:04:02 UTC 2019-02-25
tests: fix some slow tests and some leaking state

Author: Dan Watkins
Author Date: 2019-02-25 20:52:06 UTC

tests: fix some slow tests and some leaking state

In test_ds_identify, don't mutate otherwise-static test data. When
running tests in a random order, this was causing failures due to
breaking preconditions for other tests.

In tests/helpers, reset logging level in tearDown. Some of the CLI
tests set the level of the root logger in a way that isn't correctly
reset.

For test_poll_imds_re_dhcp_on_timeout and
test_dhcp_discovery_run_in_sandbox_warns_invalid_pid, mock out
time.sleep; this saves ~11 seconds (or ~40% of previous test time!).

string_types 2019-02-25 20:24:51 UTC 2019-02-25
util: don't determine string_types ourselves

Author: Dan Watkins
Author Date: 2019-02-25 20:24:51 UTC

util: don't determine string_types ourselves

six already provides this for us, and we're already paying the cost to
determine it there; no need to do it twice.

macvtap 2019-02-21 15:11:48 UTC 2019-02-21
helpers/openstack: Treat unknown link types as physical

Author: Dan Watkins
Author Date: 2019-02-20 12:34:29 UTC

helpers/openstack: Treat unknown link types as physical

Some deployments of OpenStack expose link types to the guest which
cloud-init doesn't recognise. These will almost always be physical, so
we can operate more robustly if we assume that they are (whilst warning
the user that we're seeing something unexpected).

LP: #1639263

nested_set 2019-02-21 12:50:17 UTC 2019-02-21
cc_rsyslog: Escape possible nested set

Author: Dan Watkins
Author Date: 2019-02-21 12:45:39 UTC

cc_rsyslog: Escape possible nested set

Under Python 3.7, we are seeing `FutureWarning: Possible nested set at
position 23`; escaping this bracket causes that warning to disappear.

LP: #1816967

bugfix/gce-ssh-key-attributes 2017-05-25 18:28:25 UTC 2017-05-25
Update the attribute used to find SSH keys in GCE

Author: Dan Watkins
Author Date: 2017-05-25 18:21:21 UTC

Update the attribute used to find SSH keys in GCE

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

LP: #1693582

dsidentify_configdrive_latest 2017-04-14 21:16:10 UTC 2017-04-14
ds-identify: Check correct path for "latest" config drive

Author: Dan Watkins
Author Date: 2017-04-14 21:16:10 UTC

ds-identify: Check correct path for "latest" config drive

We were checking /var/lib/cloud/openstack/latest/meta_data.json instead
of /var/lib/cloud/seed/config_drive/openstack/latest/meta_data.json.

LP: #1673637

bug/lp1538522-azure-builtin-agent 2016-11-17 14:59:46 UTC 2016-11-17
Fix tests that assume the non-__builtin__ Azure agent_command

Author: Dan Watkins
Author Date: 2016-11-17 14:59:46 UTC

Fix tests that assume the non-__builtin__ Azure agent_command

lp1603222 2016-11-09 10:06:58 UTC 2016-11-09
Use udev-created device as default Azure ephemeral disk

Author: Dan Watkins
Author Date: 2016-11-09 10:06:58 UTC

Use udev-created device as default Azure ephemeral disk

Currently, the Azure data source defaults to using /dev/sdb for
ephemeral0. If _and only if_ we detect a fabric-formatted (i.e. NTFS)
ephemeral disk, then the data source updates this default to instead
point at that ephemeral disk (which will, correctly, be
/dev/disk/cloud/azure_resource). This happens fine on every first boot,
but on subsequent boots, we don't find a fabric-formatted ephemeral disk
(because we reformatted it on first boot), so we don't update the
default, so we end up rewriting the mounts to point at /dev/sdb (which
may not be the actual location of the ephemeral disk).

Instead of defaulting to /dev/sdb, we now default to
/dev/disk/cloud/azure_resource, which is the correct location created by
udev rules.

LP: #1603222

master 2016-10-07 10:33:48 UTC 2016-10-07
systemd: Run cloud-init.service Before dbus.socket

Author: Dan Watkins
Author Date: 2016-10-07 10:33:48 UTC

systemd: Run cloud-init.service Before dbus.socket

On Ubuntu (at least), cloud-init takes 25 seconds every time it fails to
resolve a DNS address. /etc/nsswitch.conf is configured to use the
"resolve" service, which communicates with systemd-resolved over DBUS.
When cloud-init runs, neither dbus.service nor systemd-resolved.service
have started, but dbus.socket _has_ started, so there is a socket for
the "resolve" NSS service to attempt to connect to. It waits for a
response over DBUS for 25 seconds before giving up and returning a
resolution failure.

This commit forces the DBUS socket to be started after cloud-init runs,
which means that the resolve NSS service fails immediately (rather than
after 25 seconds).

LP: #1629797

134 of 34 results
This repository contains Public information 
Everyone can see this information.

Subscribers