lp:~doanac/utah/rsyslog-v4

Created by Andy Doan on 2013-03-05 and last modified on 2013-04-02
Get this branch:
bzr branch lp:~doanac/utah/rsyslog-v4
Only Andy Doan can upload to this branch. If you are Andy Doan please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Andy Doan
Project:
UTAH
Status:
Merged

Recent revisions

842. By Andy Doan on 2013-03-12

add default install/booted steps to config

These have been tested by Max and I on all the different permutations
we could come up with and they seem to work.

841. By Andy Doan on 2013-03-05

review comments from max

840. By Andy Doan on 2013-03-05

fix from max

To get rsyslog working from boot time on d-i images, we're passing a netcfg variable on the kernel command line. The kernel command line is set by _cmdlinesetup, which is normally called during _custominit. Unfortunately, for VMs, _custominit is also what sets the series, type, and arch of the machine, which are then used to set its final name in a naming convention semi-inherited from vm-tools. As such, the hostname we pass to the kernel will be something like
utah-808
instead of
utah-808-precise-server-amd64
On physical machines, we don't generate a name anyway, so it's moot. In alderamin, my best guess is that when the VM boots up and sends a dhcp request with the correct hostname, the dhcp server remembers that, and sends it back in the dhcp response after the machine reboots. My workstation's dhcp server is less clever, so it lets the machine use the hostname that we pass on the kernel command line, which ends up different from what utah expects.

839. By Andy Doan on 2013-03-05

convert libvirt machine to use file-based syslog logic

Ubiquity doesn't start the network stack until the install has
begun. This is causing the wait_for_install logic to not work well
because we don't see the early messages. This converts to using
libvirt's built in serial log which gives us better logging including
early stuff from the kernel.

838. By Andy Doan on 2013-03-05

add file tail support to rsyslog class

In the case of libvirt, we already get a serial console log locally
that's better than what we can get from rsyslogd (because it begins
logging before the network is activated).

837. By Andy Doan on 2013-03-05

move the rsyslog testing into the tests/ directory for nose

836. By Andy Doan on 2013-03-05

update a note about what's required for local development

835. By Andy Doan on 2013-03-05

update machine classes to use the wait_for_booted api

834. By Andy Doan on 2013-03-05

add a wait_for_booted api

833. By Andy Doan on 2013-03-05

refactor the wait_for_install to be generic

This same type logic is needed to wait for the system to boot.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:utah
This branch contains Public information 
Everyone can see this information.

Subscribers