cloud-init timeout on boot

Bug #2073744 reported by violetevergarden

This bug report will be marked for expiration in 56 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Incomplete
Undecided
Unassigned

Bug Description

  When use autoinstall to boot I get some error information like this:
  cloud-init failed to complete after 10 minutes of waiting.This suggests a bug……
  I'm not sure if it's due to the package version of cloud-init,because it works well when I not upgrade the iso file.The cloud-init package version before upgrade is 24.1.3-0Ubuntu3,then upgrade to 24.1.3-0Ubuntu3.3.
  Here is my user-data file:
#cloud-config
# See the autoinstall documentation at:
# https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html
autoinstall:
  apt:
    disable_components: []
    fallback: offline-install
    geoip: true
    mirror-selection:
      primary:
      - country-mirror
      - arches: &id001
        - amd64
        - i386
        uri: http://archive.ubuntu.com/ubuntu/
      - arches: &id002
        - s390x
        - arm64
        - armhf
        - powerpc
        - ppc64el
        - riscv64
        uri: http://ports.ubuntu.com/ubuntu-ports
    preserve_sources_list: false
    security:
    - arches: *id001
      uri: http://security.ubuntu.com/ubuntu/
    - arches: *id002
      uri: http://ports.ubuntu.com/ubuntu-ports
  codecs:
    install: false
  drivers:
    install: false
  identity:
    hostname: sa
    password: $6$NvrLT9a9PFf3kUfH$DI4zVkSEVsmCRzqPHDHH3TNnoKS2OfkOZV1XJ8kCSIyhU1LLioDj3ev6R5IupM88uDP.1.JUCTD/S4mC43x1c1
    realname: admins
    username: admins
  kernel:
    package: linux-generic
  keyboard:
    layout: us
    toggle: null
    variant: ''
  locale: en_US.UTF-8
  network:
    ethernets:
      eno1:
        addresses:
        - 192.168.3.80/24
        nameservers:
          addresses:
          - 114.114.114.114
          search: []
        routes:
        - to: default
          via: 192.168.3.1
    version: 2
  oem:
    install: auto
  source:
    id: ubuntu-server
    search_drivers: false
  ssh:
    allow-pw: true
    authorized-keys: []
    install-server: true
  reporting:
    builtin:
      type: print
  storage:
    layout:
      name: lvm
      match:
       ssd: no
  late-commands:
    - bash /target/root/init.sh
  error-commands:
    - tail -200 /var/log/syslog
  updates: security
  version: 1

Revision history for this message
violetevergarden (violetevergarden2024) wrote :
Revision history for this message
Chris Peterson (cpete) wrote :

Hi violetevergarden and thanks for the report,

Hmm I wonder if the following is relevant from the syslog:

2024-07-22T14:39:02.169216+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found ordering cycle on cloud-init.service/start
2024-07-22T14:39:02.169217+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found dependency on systemd-networkd-wait-online.service/start
2024-07-22T14:39:02.169218+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found dependency on systemd-networkd.service/start
2024-07-22T14:39:02.169219+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found dependency on network-pre.target/start
2024-07-22T14:39:02.169220+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found dependency on firewalld.service/start
2024-07-22T14:39:02.169220+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found dependency on dbus.socket/start
2024-07-22T14:39:02.169221+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Found dependency on sysinit.target/start
2024-07-22T14:39:02.169222+08:00 ubuntu-server kernel: systemd[1]: sysinit.target: Job cloud-init.service/start deleted to break ordering cycle starting with sysinit.target/start

Could you provide details on which ISO you're using? Also, could you describe your process for updating cloud-init a little more (how and why) please?

Thanks,
Chris

summary: - autoinstall timeout and suggests a bug
+ cloud-init timeout on boot
Changed in subiquity:
status: New → Incomplete
Revision history for this message
violetevergarden (violetevergarden2024) wrote :

Thanks for your comment.The original ISO is ubuntu-24.04-live-server-amd64.iso,but I use Cubic to custom it.Here is the page of this software:
https://launchpad.net/cubic
There is a 'Terminal Page' on the cubic,it's a virtual environment where you can customize your Linux file system.So I run the command 'sudo apt update && sudo apt upgrade' to update the package and then run 'sudo apt install some-package-name' to custom package.At last,I modify the grub.cfg and loopback.cfg for autoinstall.
The content of grub.conf like this:
menuentry "Try or Install Ubuntu Server" {
        set gfxpayload=keep
        linux /casper/vmlinuz boot=casper autoinstall ds=nocloud\;s=/cdrom/preseed/ quiet splash ---
        initrd /casper/initrd.gz
}
In my test today, the cause of the problem seems to be the Firewalld package not the cloud-init.If I try to not to run 'apt install firewalld',then everything seems work well……If you need the iso file,I put a url on the attachment.That's a OneDrive url link and it's the iso file that I test today.
Thanks for your help again!

Revision history for this message
Chris Peterson (cpete) wrote :

Ah yes I think updating cloud-init in the ISO like this might lead to some problems. As you found I think the best course here is to not update it when modifying the ISO.

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.