DIB fails to build bionic using ubuntu-minimal (rsyslog)

Bug #1811113 reported by Michael Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Undecided
Michael Johnson

Bug Description

When using the ubuntu-minimal element to build a bionic image, DIB fails the build with the following error:

2019-01-09 15:06:12.928 | > Setting up rsyslog (8.32.0-1ubuntu4) ...
2019-01-09 15:06:12.928 | >
2019-01-09 15:06:12.928 | > Creating config file /etc/rsyslog.d/50-default.conf with new version
2019-01-09 15:06:12.928 | > Adding user `syslog' to group `adm' ...
2019-01-09 15:06:12.928 | > Adding user syslog to group adm
2019-01-09 15:06:12.928 | > Done.
2019-01-09 15:06:12.928 | > Unsafe symlinks encountered in /var/spool/rsyslog, refusing.
2019-01-09 15:06:12.928 | > Unsafe symlinks encountered in /var/log, refusing.
2019-01-09 15:06:12.928 | > dpkg: error processing package rsyslog (--configure):
2019-01-09 15:06:12.928 | > installed rsyslog package post-installation script subprocess returned error exit status 1

This only happens on bionic hosts running diskimage-builder. The image creates successfully on xenial hosts.

Changed in diskimage-builder:
assignee: nobody → Michael Johnson (johnsom)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/629744

Changed in diskimage-builder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/629744
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=cfba9ea79d903574afe58bbe3964c050676ee8da
Submitter: Zuul
Branch: master

commit cfba9ea79d903574afe58bbe3964c050676ee8da
Author: Michael Johnson <email address hidden>
Date: Wed Jan 9 18:27:59 2019 -0800

    Make sure $TMP_BUILD_DIR/mnt is owned by root

    The path $TMP_BUILD_DIR/mnt becomes the / inside the chroot during
    the chroot phases of diskimage-builder. Previously this path was being
    created using the account running diskimage-builder. This account may
    not be valid inside the chroot. This causes path validation, when running
    on a Ubuntu bionic host, to fail.
    This patch chown's the $TMP_BUILD_DIR/mnt to root.root to make sure
    that / is owned by a valid account inside the chroot.

    Change-Id: Ifedc136baa67c7952942aed2c8cb1041902fef91
    Closes-Bug: 1811113

Changed in diskimage-builder:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.