lp:~oddbloke/cloud-init/+git/cloud-init

Owned by Dan Watkins
Get this repository:
git clone https://git.launchpad.net/~oddbloke/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 2020-04-08 20:44:55 UTC
drop remaining patches

Author: Dan Watkins
Author Date: 2020-04-08 20:44:55 UTC

drop remaining patches

ubuntu/daily/devel 2020-04-08 20:29:14 UTC
Revert "cherry pick 6600c642"

Author: Dan Watkins
Author Date: 2020-04-08 20:29:14 UTC

Revert "cherry pick 6600c642"

This reverts commit d219b4bc59865110b4cae9b4d166e460cd76e3b2.

master 2020-04-06 14:21:31 UTC
readme: OpenBSD is now supported (#309)

Author: Gonéri Le Bouder
Author Date: 2020-04-06 14:21:31 UTC

readme: OpenBSD is now supported (#309)

Add OpenBSD in the list of supported Operating System.

travis 2019-10-21 17:04:32 UTC
introduce .travis.yml

Author: Dan Watkins
Author Date: 2019-09-30 18:02:33 UTC

introduce .travis.yml

This captures the CI testing that is currently performed by the Ubuntu
Server Jenkins instance into a Travis configuration, which is part of
the migration of cloud-init code hosting from Launchpad to GitHub.

ubuntu/xenial 2019-10-04 16:01:35 UTC
releasing cloud-init version 19.2-36-g059d049c-0ubuntu2~16.04.1

Author: Dan Watkins
Author Date: 2019-10-04 16:01:35 UTC

releasing cloud-init version 19.2-36-g059d049c-0ubuntu2~16.04.1

ubuntu/disco 2019-10-04 15:46:46 UTC
releasing cloud-init version 19.2-36-g059d049c-0ubuntu2~19.04.1

Author: Dan Watkins
Author Date: 2019-10-04 15:46:46 UTC

releasing cloud-init version 19.2-36-g059d049c-0ubuntu2~19.04.1

ubuntu/bionic 2019-10-04 15:37:23 UTC
releasing cloud-init version 19.2-36-g059d049c-0ubuntu2~18.04.1

Author: Dan Watkins
Author Date: 2019-10-04 15:37:23 UTC

releasing cloud-init version 19.2-36-g059d049c-0ubuntu2~18.04.1

lp1846535 2019-10-04 13:46:12 UTC
get_interfaces: don't exclude bridge and bond members

Author: Dan Watkins
Author Date: 2019-10-04 13:37:20 UTC

get_interfaces: don't exclude bridge and bond members

The change that introduced this issue was handling interfaces that are
bonded in the kernel, in a way that doesn't present as "a bond" to
userspace in the normal way. Both members of this "bond" will share a
MAC address, so we filter one of them out to avoid incorrect MAC address
collision warnings.

Unfortunately, the matching condition was too broad, so that change also
affected normal bonds and bridges. This change specifically excludes
bonds and bridges from that determination, to address that regression.

LP: #1846535

net 2019-09-27 14:50:15 UTC
debian: add missing word to NETWORK_FILE_HEADER message

Author: Dan Watkins
Author Date: 2019-09-27 14:48:59 UTC

debian: add missing word to NETWORK_FILE_HEADER message

Specifically, make it clearer that networking is regenerated every boot.

LP: #1845669

whitespace 2019-09-25 19:34:08 UTC
analyze/show: remove trailing space in output

Author: Dan Watkins
Author Date: 2019-09-25 19:33:27 UTC

analyze/show: remove trailing space in output

ci_fix 2019-09-25 19:33:27 UTC
analyze/show: remove trailing space in output

Author: Dan Watkins
Author Date: 2019-09-25 19:33:27 UTC

analyze/show: remove trailing space in output

lp1843276 2019-09-09 16:49:33 UTC
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
[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
.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/cosmic 2019-03-11 21:06:10 UTC
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
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
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
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
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
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
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
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
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
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
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

141 of 41 results
This repository contains Public information 
Everyone can see this information.

Subscribers