[Bug 1477626] [NEW] adt-setup-vm modifies cloud-init's conffile but doesn't handle dpkg conffile prompts

Iain Lane iain at orangesquash.org.uk
Thu Jul 23 14:46:32 UTC 2015


Public bug reported:

This

if [ -e "$root/etc/cloud/cloud.cfg" ]; then
    echo 'apt_preserve_sources_list: true' >> "$root/etc/cloud/cloud.cfg"
fi

modifies a conffile, and this

# upgrade, install some necessary packages
chroot "$root" apt-get update
[ "${ADT_SETUP_VM_UPGRADE:-}" = false ] || DEBIAN_FRONTEND=noninteractive chroot "$root" apt-get -y dist-upgrade

updates the system later on. If there's a new cloud-init at this point
we get a conffile prompt, as you can see here.

http://jenkins.qa.ubuntu.com/job/wily-adt-setup-testbed/ARCH=i386,label
=aldebaran-adt/63/console

This causes the script to bomb out, and eventually resulted in

https://jenkins.qa.ubuntu.com/view/Wily/view/AutoPkgTest/job/wily-adt-
udisks2/ARCH=amd64,label=adt/48/console

because -extra- wasn't installed (this happens later on in the script).

I suppose we need to add force-conffoo to dpkg.cfg.d.

** Affects: autopkgtest (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  This
  
  if [ -e "$root/etc/cloud/cloud.cfg" ]; then
-     echo 'apt_preserve_sources_list: true' >> "$root/etc/cloud/cloud.cfg"
+     echo 'apt_preserve_sources_list: true' >> "$root/etc/cloud/cloud.cfg"
  fi
  
  modifies a conffile, and this
  
  # upgrade, install some necessary packages
  chroot "$root" apt-get update
  [ "${ADT_SETUP_VM_UPGRADE:-}" = false ] || DEBIAN_FRONTEND=noninteractive chroot "$root" apt-get -y dist-upgrade
  
  updates the system later on. If there's a new cloud-init at this point
  we get a conffile prompt, as you can see here.
  
- http://d-jenkins.ubuntu-ci:8080/job/wily-adt-setup-
- testbed/ARCH=i386,label=aldebaran-adt/63/console
+ http://jenkins.qa.ubuntu.com/job/wily-adt-setup-testbed/ARCH=i386,label
+ =aldebaran-adt/63/console
  
  This causes the script to bomb out, and eventually resulted in
  
  https://jenkins.qa.ubuntu.com/view/Wily/view/AutoPkgTest/job/wily-adt-
  udisks2/ARCH=amd64,label=adt/48/console
  
+ because -extra- wasn't installed (this happens later on in the script).
+ 
  I suppose we need to add force-conffoo to dpkg.cfg.d.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1477626

Title:
  adt-setup-vm modifies cloud-init's conffile but doesn't handle dpkg
  conffile prompts

Status in autopkgtest package in Ubuntu:
  New

Bug description:
  This

  if [ -e "$root/etc/cloud/cloud.cfg" ]; then
      echo 'apt_preserve_sources_list: true' >> "$root/etc/cloud/cloud.cfg"
  fi

  modifies a conffile, and this

  # upgrade, install some necessary packages
  chroot "$root" apt-get update
  [ "${ADT_SETUP_VM_UPGRADE:-}" = false ] || DEBIAN_FRONTEND=noninteractive chroot "$root" apt-get -y dist-upgrade

  updates the system later on. If there's a new cloud-init at this point
  we get a conffile prompt, as you can see here.

  http://jenkins.qa.ubuntu.com/job/wily-adt-setup-
  testbed/ARCH=i386,label=aldebaran-adt/63/console

  This causes the script to bomb out, and eventually resulted in

  https://jenkins.qa.ubuntu.com/view/Wily/view/AutoPkgTest/job/wily-adt-
  udisks2/ARCH=amd64,label=adt/48/console

  because -extra- wasn't installed (this happens later on in the
  script).

  I suppose we need to add force-conffoo to dpkg.cfg.d.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1477626/+subscriptions



More information about the foundations-bugs mailing list