Comment 6 for bug 1768911

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1768911] Re: curtin configuration for node during installation should be logged by default

Curtin already logs config by default,

The merged configuration is logged and sent to serial console.

[ 61.403846] cloud-init[1445]: curtin: Installation started.
(17.1-62-g9dbe45e5)
[ 61.406329] cloud-init[1445]: LANG=None
[ 61.407138] cloud-init[1445]: merged config: {'apt_proxy': '',
'sources': {'00_cmdline': {'type': 'tgz', 'uri':
'cp:///media/root-ro'}},

Additionally, on error, curtin now collects debug information and can
post that back to maas.

I think the part that may be missing is having maas configuring the
install error_tarfile:

error_tarfile: <path to write a tar of Curtin’s log and configuration
data in the event of an error>

If error_tarfile is not None and curtin encounters an error, this
tarfile will be created. It includes logs, configuration and system
info to aid triage and bug filing. When unset, error_tarfile defaults
to /var/log/curtin/curtin-logs.tar.

Maas could do:

install:
   log_file: /tmp/install.log
   error_tarfile: /tmp/curtin-error-logs.tar
   post_files:
     - /tmp/install.log
     - /var/log/syslog
     - /tmp/curtin-error-logs.tar

On error, this will get posted back like the install log and it
includes the configs, and other system data that's helpful for
debugging.

Finally, it would be good to extend the maas api to get the
install.log file (and error-logs.tar if present) to aid in bug filing.

Ryan

On Fri, May 4, 2018 at 1:06 AM, Jason Hobbs <email address hidden> wrote:
> I removed the cdo-qa-blocker tag since we have a way to get the curtin
> config via the API. This should stay open, though, until the curtin
> config is captured either via a db dump or in /var/log/maas.
>
> ** Tags removed: cdo-qa-blocker
>
> --
> You received this bug notification because you are subscribed to curtin.
> Matching subscriptions: curtin-bugs-all
> https://bugs.launchpad.net/bugs/1768911
>
> Title:
> curtin configuration for node during installation should be logged by
> default
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/curtin/+bug/1768911/+subscriptions