lp:~larsks/cloud-init

Get this repository:
git clone https://git.launchpad.net/~larsks/cloud-init
Only Lars Kellogg-Stedman can upload to this repository. If you are Lars Kellogg-Stedman please log in for upload directions.

Branches

Name Last Modified Last Commit
migrate-lp-to-github 2019-11-12 19:14:06 UTC
lp-to-git-users: adding larsks

Author: Lars Kellogg-Stedman
Author Date: 2019-11-12 19:14:06 UTC

lp-to-git-users: adding larsks

Mapped from larsks

bz/1542578 2018-05-22 14:21:54 UTC
cc_mounts: do not add devices to fstab that are already configured

Author: Lars Kellogg-Stedman
Author Date: 2018-05-04 19:34:15 UTC

cc_mounts: do not add devices to fstab that are already configured

do not add new entries to /etc/fstab for devices that already have an
existing fstab entry.

Resolves: rhbz#1542578

bug/1769952 2018-05-08 16:59:31 UTC
do not rely on host /proc/cmdline in test_net.py

Author: Lars Kellogg-Stedman
Author Date: 2018-05-08 16:59:31 UTC

do not rely on host /proc/cmdline in test_net.py

this makes test_net.TestGenerateFallbackConfig.test_unstable_names
mock the value of /proc/cmdline in the same way as the existing
test_unstable_names_disabled test.

LP: #1769952

bug/preserve-sysconfig-network 2018-04-22 12:44:21 UTC
Retain existing values in /etc/sysconfig/network

Author: Lars Kellogg-Stedman
Author Date: 2018-04-22 12:44:21 UTC

Retain existing values in /etc/sysconfig/network

cloud-init was replacing /etc/sysconfig/network without respecting any
existing configuration in that file.

feature/move-base-testcase 2017-09-01 13:19:34 UTC
pep8: previous commit resulted in pep8 and pylint issues

Author: Lars Kellogg-Stedman
Author Date: 2017-08-26 03:45:01 UTC

pep8: previous commit resulted in pep8 and pylint issues

renaming the helpers module resulted in sort order changes in module
imports, which made flake8 sad. Touching the files also seems to have
flushed out some pre-existing pylint errors.

bug/ec2-tests 2017-09-01 11:47:04 UTC
test_ec2: metadata tests were mocking wrong urls

Author: Lars Kellogg-Stedman
Author Date: 2017-08-25 22:40:21 UTC

test_ec2: metadata tests were mocking wrong urls

The ec2 metadata tests were only mocking one version of the metadata
api, but requests were made against both. This fixes _setup_ds to
register mock data at both versions of the API.

feature/hide-oauthlib-import-failure 2017-08-25 16:42:03 UTC
url_helper: fail gracefully if oauthlib is not available

Author: Lars Kellogg-Stedman
Author Date: 2016-12-08 20:24:24 UTC

url_helper: fail gracefully if oauthlib is not available

We are unable to ship python-oauthlib in RHEL. This commit allows
imports of url_helper to succeed even when oauthlib is unavailable
and OauthUrlHelper.oauth_headers to raise a NotImplementedException
when called.

bug/cloudstack-tests 2017-05-18 19:07:55 UTC
cloudstack: fix tests to avoid accessing /var/lib/NetworkManager

Author: Lars Kellogg-Stedman
Author Date: 2017-05-18 19:07:55 UTC

cloudstack: fix tests to avoid accessing /var/lib/NetworkManager

on centos/fedora/rhel, /var/lib/NetworkManager has mode 700, causing
the cloudstack unit tests to fail when run as a non-root user. This
mocks out get_latest_lease so that we no longer try to read dhcp lease
information during the unit tests.

bug/retries-typo 2017-05-12 01:23:50 UTC
openstack: fix copy/paste typo in _get_url_settings

Author: Lars Kellogg-Stedman
Author Date: 2017-05-12 01:23:50 UTC

openstack: fix copy/paste typo in _get_url_settings

There was a copy/paste error in _get_url_settings such that the error
message would complain about max wait when in fact it was talking
about retries.

feature/systemd-conditionals 2017-04-13 12:53:43 UTC
replace systemd generator with conditionals

Author: Lars Kellogg-Stedman
Author Date: 2017-04-11 18:04:53 UTC

replace systemd generator with conditionals

This commit replaces the generator with Conditional* statements in the
unit files. It provides the same interface (you can disable
cloud-init by setting cloud-init=disabled on the kernel command line
or by touching /etc/cloud/cloud-init.disable).

lp/1644064 2017-04-12 14:11:31 UTC
util: teach write_file about copy_mode option

Author: Lars Kellogg-Stedman
Author Date: 2017-04-10 19:52:37 UTC

util: teach write_file about copy_mode option

On centos/fedora/rhel/derivatives, /etc/ssh/sshd_config has mode 0600,
but cloud-init unilaterally sets file modes to 0644 when no explicit
mode is passed to util.write_file. On ubuntu/debian, this file has
mode 0644. With this patch, write_file learns about the copy_mode
option, which will cause it to use the mode of the existing file by
default, falling back to the explicit mode parameter if the file does
not exist.

LP: #1644064
Resolves: rhbz#1295984

lp/1541196 2017-04-08 02:44:32 UTC
limit permissions on def_log_file

Author: Lars Kellogg-Stedman
Author Date: 2017-04-07 22:50:54 UTC

limit permissions on def_log_file

This sets a default mode of 0600 on def_log_file, and makes this
configurable via the def_log_file_mode option in cloud.cfg.

LP: #1541196
Resolves: rhbz#1424612

bug/sysconfig-ipv6 2017-03-07 17:56:15 UTC
net: support both ipv4 and ipv6 gateways

Author: Lars Kellogg-Stedman
Author Date: 2017-03-02 16:08:26 UTC

net: support both ipv4 and ipv6 gateways

Previously, cloud-init would throw an exception if an interface had
both ipv4 and ipv6 addresses and a default gateway for each address
family. This change allows cloud-init to correctly configure
interfaces in this situation.

LP: #1669504

bug/1670052 2017-03-07 17:42:15 UTC
net: do not raise exception for > 3 nameservers

Author: Lars Kellogg-Stedman
Author Date: 2017-03-04 22:07:16 UTC

net: do not raise exception for > 3 nameservers

log a warning rather than raising ValueError if we see more than three
nameserver addresses.

LP: #1670052

lp/1665441 2017-02-17 14:11:39 UTC
correct errors in cloudinit/net/sysconfig.py

Author: Lars Kellogg-Stedman
Author Date: 2017-02-16 20:09:51 UTC

correct errors in cloudinit/net/sysconfig.py

There were some logic errors in sysconfig.py that appear to be the
result of accidentally typing "iface" where it should have been
"iface_cfg". This patch corrects those problems so that the module
can run successfully.

LP: #1665441
Resolves: rhbz#1389530

feature/query 2017-01-25 03:27:34 UTC
[WIP] initial support for 'query' command

Author: Lars Kellogg-Stedman
Author Date: 2017-01-24 20:28:16 UTC

[WIP] initial support for 'query' command

This commit is just me exploring some ideas for how the 'cloud-init
query' command might operate. This implementation includes support
for jsonpointer queries against the cloud metadata, as in:

    cloud-init query /local-hostname

By default the query command access the cloud metadata, but you can
specify something else to query using the '-w <thing>' option, where
'<thing>' is one of:

  - userdata
  - vendordata
  - network-cfg
  - ds-cfg
  - cloud-cfg
  - sys-cfg

fedora/1151824 2017-01-24 14:44:52 UTC
Add 3 ecdsa-sha2-nistp* ssh key types now that they are standardized

Author: Lars Kellogg-Stedman
Author Date: 2017-01-20 19:32:08 UTC

Add 3 ecdsa-sha2-nistp* ssh key types now that they are standardized

cloud-init adds ssh_authorized_keys to the default user fedora and to
root but for root it disables the keys with a prefix command.
However, if the key is of type ecdsa-sha2-nistp521, it is not parsed
correctly, and the prefix command is not prepended.

Resolves: rhbz#1151824
LP: #1658174

lp/1658200 2017-01-20 21:19:23 UTC
reset httppretty for each test

Author: Lars Kellogg-Stedman
Author Date: 2017-01-20 21:19:23 UTC

reset httppretty for each test

this ensures that we call httpretty.reset() before calling
httppretty.register_uri(...), which ensures that we get a fresh
callback with the expected version of the metadata.

LP: #1658200

rhbz/1408589 2017-01-17 16:22:29 UTC
use timeout from datsource config in openstack get_data

Author: Lars Kellogg-Stedman
Author Date: 2017-01-17 13:53:22 UTC

use timeout from datsource config in openstack get_data

This modifies get_data in DataSourceOpenStack.py to get the timeout
and retries values from the data source configuration, rather than
from keyword arguments. This permits get_data to use the same timeout
as other methods, and allows an operator to increase the timeout in
environments where the metadata service takes longer than five seconds
to respond.

LP: #1657130
Resolves: rhbz#1408589

bug/1647910 2016-12-07 05:02:57 UTC
set_hostname: avoid erroneously appending domain to fqdn

Author: Lars Kellogg-Stedman
Author Date: 2016-12-07 02:13:24 UTC

set_hostname: avoid erroneously appending domain to fqdn

In some situations, cloud-init will erroneously append a default
domain to an already fully qualified hostname, resulting in something
like 'localhost.localdomain.localdomain'. This patch checks to see if
the value returned by util.get_hostname() contains a '.', and if it
does treats it as a fully qualified name.

Resolves: rhbz#1389048
LP: #1647910

feature/split-unit-files 2016-12-06 03:23:28 UTC
systemd: move distro-specific unit dependencies to drop-ins

Author: Lars Kellogg-Stedman
Author Date: 2016-12-05 20:51:57 UTC

systemd: move distro-specific unit dependencies to drop-ins

While many distributions use systemd, they do not necessarily share
a common nomenclature for services. This change moves
distribution-specific information into systemd drop-in files (see
systemd.unit(5)).

This allows the systemd unit files to be used verbatim on most
systemd-based distributions, while providing a mechanism for packages
to provide additional metadata for service ordering (or other
configuration).

bug/1647118 2016-12-04 03:12:28 UTC
Use dnf instead of yum when available

Author: Lars Kellogg-Stedman
Author Date: 2016-12-02 00:40:36 UTC

Use dnf instead of yum when available

Recent fedora releases use "dnf" instead of "yum" for package
management. While there is a compatible "yum" cli available, there's
no guarantee that it will be available.

With this patch, cloud-init will check for /usr/bin/dnf and use that
if it exists instead of yum.

rhbz: https://bugzilla.redhat.com/show_bug.cgi?id=1194451
LP: #1647118

bug/1354694 2016-12-04 02:33:50 UTC
when adding a user, strip whitespace from group list

Author: Lars Kellogg-Stedman
Author Date: 2016-12-04 02:29:45 UTC

when adding a user, strip whitespace from group list

The documentation shows group names in the 'groups:' key delimited by
", ", but this will result in group names that contain spaces. This
can cause the 'groupadd' or 'useradd' commands to fail.

This patch ensures that we strip whitespace from either end of the
group names passed to the 'groups:' key.

LP: #1354694

bug/164966 2016-12-03 03:21:38 UTC
fix unicodecode errors from configobj

Author: Lars Kellogg-Stedman
Author Date: 2016-12-02 21:14:47 UTC

fix unicodecode errors from configobj

configobj (4.7.2) blows up when passed unicode content, so ensure that
we call .encode('utf-8') before passing content to the SysConf class.

LP: #1646966

feature/move-to-git 2016-07-27 18:33:32 UTC
Update build tools to work with git

Author: Lars Kellogg-Stedman
Author Date: 2016-07-22 19:09:24 UTC

Update build tools to work with git

- Update HACKING.rst to include git instructions
- update MANIFEST.in and .gitignore to ignore git-related things
- replaced tarball generation scripts with git-based script
- have the spec files correctly identify themselves as cheetah templates
- make brpm work with git

master 2016-07-19 18:46:14 UTC
mcollective: add tests, cleanups and bug fix when no config in /etc.

Author: Scott Moser
Author Date: 2016-07-19 18:46:14 UTC

mcollective: add tests, cleanups and bug fix when no config in /etc.

Things here:
 - restart rather than 'start' the service, to pick up a config change
   that we would have written.
 - update the config and write cert files whether or not the file
   existed on the system. Previously it would only write the cert
   files if /etc/mcollective/server.cfg already existed.
 - improve test coverage

126 of 26 results
This repository contains Public information 
Everyone can see this information.