~ajorgens/cloud-init:pipe-cat

Last commit made on 2017-06-16
Get this branch:
git clone -b pipe-cat https://git.launchpad.net/~ajorgens/cloud-init
Only Andrew Jorgensen can upload to this branch. If you are Andrew Jorgensen please log in for upload directions.

Branch merges

Branch information

Name:
pipe-cat
Repository:
lp:~ajorgens/cloud-init

Recent commits

7941e58... by Andrew Jorgensen

work-in-progress - broken

4d09af6... by Andrew Jorgensen

Use a no_tty option instead of always disconnecting from tty

10676d5... by Andrew Jorgensen

read/write stdout instead of piping through cat

c97434e... by Andrew Jorgensen

rhel: Use the pipe_cat option for Yum commands

5675c65... by Andrew Jorgensen

util: Add an option for subp to pipe the process through cat

Some processes are less chatty when piped through cat, because they won't
detect a terminal (yum being a prime example).

Reviewed-by: Matt Nierzwicki <email address hidden>
Reviewed-by: Ethan Faust <email address hidden>
[<email address hidden>: rebase onto 0.7.9]

95fd5a2... by Ryan Harper

selinux: Allow restorecon to be non-fatal.

On some systems with python-libselinux a bug[1] related to recursive
restorecon fails but the distro release does not yet include
an update. This change will accept the error and log a warning.

1. https://bugzilla.redhat.com/show_bug.cgi?id=1406520

LP: #1686751

a01ffd6... by Ryan Harper

net: Allow netinfo subprocesses to return 0 or 1.

On systems with selinux enabled, some of the networking commands executed
successfully do not return 0. Allow these commands to return 1 since the
output is valid.

Ultimately we need to get this information in some way so that we can
display it correctly. For now, work around the stack trace when selinux
does not allow us to collect it.

LP: #1686751

67bab5b... by Ryan McCabe

net: Allow for NetworkManager configuration

In cases where the config json specifies nameserver entries,
if there are interfaces configured to use dhcp, NetworkManager,
if enabled, will clobber the /etc/resolv.conf that cloud-init
has produced, which can break dns. If there are no interfaces
configured to use dhcp, NetworkManager could clobber
/etc/resolv.conf with an empty file.

This patch adds a mechanism for dropping additional configuration
into /etc/NetworkManager/conf.d/ and disables management of
/etc/resolv.conf by NetworkManager when nameserver information is
provided in the config.

LP: #1693251

Signed-off-by: Ryan McCabe <email address hidden>

b9cd8a8... by Ryan Harper

Use distro release version to determine if we use systemd in redhat spec

The typical rpm build process will examine the spec file to determine
which packages should be installed in the boot root. This requires
the specfile to declare that it needs system. Provide this information
by checking which version in which the rpm is being built and exporting
requirements for systemd.

d00da2d... by Scott Moser

net: normalize data in network_state object

The network_state object's network and route keys would have different
information depending upon how the network_state object was populated.

This change cleans that up. Now:
  * address will always contain an IP address.
  * prefix will always include an integer value that is the
    network_prefix for the address.
  * netmask will be present only if the address is ipv4, and its
    value will always correlate to the 'prefix'.