ubuntu 20.4.4 Server Autoinstall Error

Bug #1967458 reported by MASATO YOSHIDA
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When ubuntu20.04.4 Server is installed by autoinstall, an error occurs when executing the packages section.

Since [/target/run/systemd/resolve] is not mounted, it seems that there is an error in dns name resolution.

If interactive-sections is specified, [/target/run/systemd/resolve] will be mounted, otherwise it will not be mounted.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Uname: Linux 5.4.0-100-generic x86_64
Architecture: amd64
Date: Fri Apr 1 13:31:39 2022
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 LANG=C.UTF-8
Snap: subiquity 22.02.2 ()
Symptom: installation

Paul White (paulw2u)
affects: ubuntu → subiquity (Ubuntu)
tags: added: focal
Revision history for this message
Dan Bungert (dbungert) wrote :

I attempted to reproduce this today, both with Focal and Jammy and could not.
Both times I could install the 'hello' package without an interactive-sections. I think there is something else in the autoinstall file that is contributing to the problem.
Would you share a sample autoinstall file with the problem?

Changed in subiquity (Ubuntu):
status: New → Incomplete
Revision history for this message
MASATO YOSHIDA (masato-f) wrote :
Download full text (5.3 KiB)

grub command
---------------------------
linux /casper/vmlinuz quiet ip=192.168.xxx.xxx::192.168.xxx.yyy:255.255.255.0:hostname:::192.168.xxx.zzz autoinstall ds=nocloud-net\;s=http://192.168.xxx.www/sda/
---------------------------

user-data
---------------------------
autoinstall:
  version: 1
  refresh-installer:
    update: yes
  #early-commands:
  apt:
    geoip: true
    preserve_sources_list: false
    primary:
    - arches: [amd64, i386]
      uri: http://jp.archive.ubuntu.com/ubuntu
    - arches: [default]
      uri: http://ports.ubuntu.com/ubuntu-ports
  identity: {hostname: defaulthost, password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
    realname: ubuntu, username: ubuntu}
  keyboard: {layout: jp, toggle: '', variant: ''}
  locale: ja_JP.UTF-8
  timezone: 'Asia/Tokyo'
  ssh:
    allow-pw: true
    authorized-keys: []
    install-server: true
  storage:
    config:
    - {ptable: gpt, path: /dev/sda,
      wipe: superblock-recursive, preserve: false, name: '', grub_device: false, type: disk,
      id: disk-sda}
    - {device: disk-sda, size: 104857600, wipe: superblock, flag: boot, number: 1,
      preserve: false, grub_device: true, type: partition, id: partition-0}
    - {fstype: fat32, volume: partition-0, preserve: false, type: format, id: format-1}
    - {device: disk-sda, size: 1073741824, wipe: superblock, flag: '', number: 2,
      preserve: false, type: partition, id: partition-1}
    - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-2}
    - {device: disk-sda, size: -1, wipe: superblock, flag: '', number: 3,
      preserve: false, type: partition, id: partition-2}
    - name: vg
      devices: [partition-2]
      preserve: false
      type: lvm_volgroup
      id: lvm_volgroup-0
    - {name: lv_root, volgroup: lvm_volgroup-0, size: 100%, preserve: false,
      type: lvm_partition, id: lvm_partition-0}
    - {fstype: xfs, volume: lvm_partition-0, preserve: false, type: format, id: format-3}
    - {device: format-3, path: /, type: mount, id: mount-3}
    - {device: format-2, path: /boot, type: mount, id: mount-2}
    - {device: format-1, path: /boot/efi, type: mount, id: mount-1}
  shutdown: 'poweroff'
  debconf-selections: \
    d-i shared/default-x-display-manager select lightdm \
    postfix postfix/main_mailer_type select No configuration
  packages:
    - bridge-utils
    - cifs-utils
    - nfs-common
    - chrony
    - gdisk
    - net-tools
    - conntrack
    - inetutils-traceroute
    - libblockdev-mdraid2
    - libosinfo-bin
    - libguestfs-tools
    - tree
    - dkms
    - virtinst
    - libvirt0
    - libvirt-daemon
    - virt-manager
    - ovmf
    - libvirt-clients
    - xserver-xorg
    - lubuntu-desktop^
    - lightdm
    - lightdm-gtk-greeter
    - language-pack-gnome-en
    - language-pack-gnome-en-base
    - language-pack-gnome-ja
    - language-pack-gnome-ja-base
    - language-selector-common
    - language-selector-gnome
    - gnome-user-docs-ja
    - libzinnia0
    - hunspell-en-gb
    - kde-config-fcitx
    - hunspell-en-za
    - hyphen-en-ca
    - hyphen-en-gb
    - hyphen-en-us
    - libreoffice-l10n-en-gb
    - libreoffice-l10n-en-za
    - libreoffice-l10n-ja
    - mozc-u...

Read more...

Revision history for this message
MASATO YOSHIDA (masato-f) wrote :

Error in packages at the beginning of the packages section

Revision history for this message
MASATO YOSHIDA (masato-f) wrote (last edit ):
Download full text (13.3 KiB)

It's a tcpdump that doesn't work.
The following message is output to syslog.

[E: Unable to locate package]

--------------------------------------------------
16:27:17.326322 IP 192.168.222.208.53049 > 192.168.222.242.53: 56457+ [1au] A? ntp.ubuntu.com. (43)
        0x0000: 4500 0047 417e 4000 4011 ba13 c0a8 ded0 E..GA~@.@.......
        0x0010: c0a8 def2 cf39 0035 0033 3f59 dc89 0100 .....9.5.3?Y....
        0x0020: 0001 0000 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 0001 0001 0000 2902 ntu.com.......).
        0x0040: 0000 0000 0000 00 .......
16:27:17.326340 IP 192.168.222.208.39298 > 192.168.222.242.53: 20100+ [1au] AAAA? ntp.ubuntu.com. (43)
        0x0000: 4500 0047 417f 4000 4011 ba12 c0a8 ded0 E..GA.@.@.......
        0x0010: c0a8 def2 9982 0035 0033 3f59 4e84 0100 .......5.3?YN...
        0x0020: 0001 0000 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 001c 0001 0000 2902 ntu.com.......).
        0x0040: 0000 0000 0000 00 .......
16:27:17.327162 IP 192.168.222.242.53 > 192.168.222.208.53049: 56457 4/0/1 A 91.189.94.4, A 91.189.89.199, A 91.189.89.198, A 91.189.91.157 (107)
        0x0000: 4500 0087 d9b7 0000 4011 619a c0a8 def2 E.......@.a.....
        0x0010: c0a8 ded0 0035 cf39 0073 27d9 dc89 8180 .....5.9.s'.....
        0x0020: 0001 0004 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 0001 0001 c00c 0001 ntu.com.........
        0x0040: 0001 0000 001d 0004 5bbd 5e04 c00c 0001 ........[.^.....
        0x0050: 0001 0000 001d 0004 5bbd 59c7 c00c 0001 ........[.Y.....
        0x0060: 0001 0000 001d 0004 5bbd 59c6 c00c 0001 ........[.Y.....
        0x0070: 0001 0000 001d 0004 5bbd 5b9d 0000 2904 ........[.[...).
        0x0080: d000 0000 0000 00 .......
16:27:17.327779 IP 192.168.222.242.53 > 192.168.222.208.39298: 20100 2/0/1 AAAA 2001:67c:1560:8003::c8, AAAA 2001:67c:1560:8003::c7 (99)
        0x0000: 4500 007f d9b8 0000 4011 61a1 c0a8 def2 E.......@.a.....
        0x0010: c0a8 ded0 0035 9982 006b ce72 4e84 8180 .....5...k.rN...
        0x0020: 0001 0002 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 001c 0001 c00c 001c ntu.com.........
        0x0040: 0001 0000 001d 0010 2001 067c 1560 8003 ...........|.`..
        0x0050: 0000 0000 0000 00c8 c00c 001c 0001 0000 ................
        0x0060: 001d 0010 2001 067c 1560 8003 0000 0000 .......|.`......
        0x0070: 0000 00c7 0000 2904 d000 0000 0000 00 ......)........
16:27:18.523805 IP 192.168.222.208.38151 > 192.168.222.242.53: 2357+ [1au] A? entropy.ubuntu.com. (47)
        0x0000: 4500 004b 41e2 4000 4011 b9ab c0a8 ded0 E..KA.@.@.......
        0x0010: c0a8 def2 9507 0035 0037 3f5d 0935 0100 .......5.7?].5..
        0x0020: 0001 0000 0000 0001 0765 6e74 726f 7079 .........entropy
        0x0030: 0675 6275 6e74 7503 636f 6d00 0001 0001 .ubuntu.com.....
        0x0040: 0000 2902 0000 0000 0000 00 ..)........
16:27:18.524045 IP 192.168.222.208.55061 > 192.168.222.242.53: 55910+ [1au] AAAA? en...

Revision history for this message
MASATO YOSHIDA (masato-f) wrote :
Download full text (25.1 KiB)

It is tcpdump when it goes well.

--------------------------------------------------
16:49:29.615379 IP 192.168.222.208.41811 > 192.168.222.242.53: 52985+ [1au] A? ntp.ubuntu.com. (43)
        0x0000: 4500 0047 b71c 4000 4011 4475 c0a8 ded0 E..G..@.@.Du....
        0x0010: c0a8 def2 a353 0035 0033 3f59 cef9 0100 .....S.5.3?Y....
        0x0020: 0001 0000 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 0001 0001 0000 2902 ntu.com.......).
        0x0040: 0000 0000 0000 00 .......
16:49:29.615395 IP 192.168.222.208.39494 > 192.168.222.242.53: 34323+ [1au] AAAA? ntp.ubuntu.com. (43)
        0x0000: 4500 0047 b71d 4000 4011 4474 c0a8 ded0 E..G..@.@.Dt....
        0x0010: c0a8 def2 9a46 0035 0033 3f59 8613 0100 .....F.5.3?Y....
        0x0020: 0001 0000 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 001c 0001 0000 2902 ntu.com.......).
        0x0040: 0000 0000 0000 00 .......
16:49:29.781562 IP 192.168.222.242.53 > 192.168.222.208.39494: 34323 2/0/1 AAAA 2001:67c:1560:8003::c7, AAAA 2001:67c:1560:8003::c8 (99)
        0x0000: 4500 007f 73cf 0000 4011 c78a c0a8 def2 E...s...@.......
        0x0010: c0a8 ded0 0035 9a46 006b 91a9 8613 8180 .....5.F.k......
        0x0020: 0001 0002 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 001c 0001 c00c 001c ntu.com.........
        0x0040: 0001 0000 0258 0010 2001 067c 1560 8003 .....X.....|.`..
        0x0050: 0000 0000 0000 00c7 c00c 001c 0001 0000 ................
        0x0060: 0258 0010 2001 067c 1560 8003 0000 0000 .X.....|.`......
        0x0070: 0000 00c8 0000 2904 d000 0000 0000 00 ......)........
16:49:29.782179 IP 192.168.222.242.53 > 192.168.222.208.41811: 52985 4/0/1 A 91.189.89.199, A 91.189.94.4, A 91.189.89.198, A 91.189.91.157 (107)
        0x0000: 4500 0087 73d0 0000 4011 c781 c0a8 def2 E...s...@.......
        0x0010: c0a8 ded0 0035 a353 0073 5863 cef9 8180 .....5.S.sXc....
        0x0020: 0001 0004 0000 0001 036e 7470 0675 6275 .........ntp.ubu
        0x0030: 6e74 7503 636f 6d00 0001 0001 c00c 0001 ntu.com.........
        0x0040: 0001 0000 0258 0004 5bbd 59c7 c00c 0001 .....X..[.Y.....
        0x0050: 0001 0000 0258 0004 5bbd 5e04 c00c 0001 .....X..[.^.....
        0x0060: 0001 0000 0258 0004 5bbd 59c6 c00c 0001 .....X..[.Y.....
        0x0070: 0001 0000 0258 0004 5bbd 5b9d 0000 2904 .....X..[.[...).
        0x0080: d000 0000 0000 00 .......
16:49:30.835020 IP 192.168.222.208.60460 > 192.168.222.242.53: 54084+ [1au] A? entropy.ubuntu.com. (47)
        0x0000: 4500 004b b73c 4000 4011 4451 c0a8 ded0 E..K.<@.@.DQ....
        0x0010: c0a8 def2 ec2c 0035 0037 3f5d d344 0100 .....,.5.7?].D..
        0x0020: 0001 0000 0000 0001 0765 6e74 726f 7079 .........entropy
        0x0030: 0675 6275 6e74 7503 636f 6d00 0001 0001 .ubuntu.com.....
        0x0040: 0000 2902 0000 0000 0000 00 ..)........
16:49:30.835112 IP 192.168.222.208.35010 > 192.168.222.242.53: 63414+ [1au] AAAA? entropy.ubuntu.com. (47)
        0x0000: 4500 004b b73d 4000 4011 4450 c0a8...

Revision history for this message
MASATO YOSHIDA (masato-f) wrote :
Download full text (17.6 KiB)

syslog
---------------------------------------
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[2479]: Copying curtin install log from /var/log/curtin/install.log to target//var/log/installer/curtin-install.log
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[2479]: Skipping unmount: config disabled target unmounting
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[2479]: TIMED INSTALL_COMMAND: 74.749
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[2479]: finish: cmd-install: SUCCESS: curtin command install
Apr 3 09:08:55 ubuntu-server curtin_event.2004.3[2479]: finish: cmd-install: SUCCESS: curtin command install
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/curtin_install/cmd-install/stage-hook/builtin: running 'curtin hook'
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/curtin_install/cmd-install/stage-hook: finalizing installation
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/curtin_install/cmd-install/stage-late: executing late commands
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/curtin_install/cmd-install/stage-late: executing late commands
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/curtin_install/cmd-install: curtin command install
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/curtin_install: installing system
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/postinstall: final system configuration
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/postinstall/configure_cloud_init: configuring cloud-init
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Meta/status_GET
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/postinstall/configure_cloud_init: configuring cloud-init
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/postinstall/get_target_packages: calculating extra packages to install
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/postinstall/get_target_packages: calculating extra packages to install
Apr 3 09:08:55 ubuntu-server subiquity_event.2004[2004]: subiquity/Install/install/postinstall/install_bridge-utils: installing bridge-utils
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[15974]: start: cmd-system-install: curtin command system-install
Apr 3 09:08:55 ubuntu-server curtin_event.2004.4[15974]: start: cmd-system-install: curtin command system-install
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[15974]: Running command ['mount', '--bind', '/dev', '/target/dev'] with allowed return codes [0] (capture=False)
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[15974]: Running command ['mount', '--bind', '/proc', '/target/proc'] with allowed return codes [0] (capture=False)
Apr 3 09:08:55 ubuntu-server subiquity_log.2004[15974]: Running command ['mount', '--bind', '/run', '/target/run'] with allowed return codes [0] (capture=False)
Apr 3 09:08:56 ...

Dan Bungert (dbungert)
Changed in subiquity (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in subiquity (Ubuntu):
status: New → Confirmed
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.