[UBUNTU 20.04] Subiquity installer does not accept user-data generated after manual installation

Bug #1879708 reported by bugproxy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
High
Skipper Bug Screeners
subiquity (Ubuntu)
Confirmed
Undecided
Canonical Foundations Team
Focal
Confirmed
Undecided
Unassigned

Bug Description

I'm installing Ubuntu 20.04 with a nocloud-net installation source on a z/VM guest. I'm currently limited to seeing installation output only through webhook reporter, because I cannot access shell on the target system during installation.

After manual installation a user-data to repeat the process automatically is stored in /var/log/installer/autoinstall-user-data. However, it has two issues:

- there is no "version" entry, so Subiquity does not accept it at all:
curtin start subiquity/core_validation:
curtin finish subiquity/core_validation: 'version' is a required property

- when I add version: 1, I get the following error:
curtin start subiquity/Keyboard/load_autoinstall_data:
curtin finish subiquity/Keyboard/load_autoinstall_data: None is not of type 'string'

Failed validating 'type' in schema['properties']['toggle']:
    {'type': 'string'}

On instance['toggle']:
    None

And when I change this too I get the related issues with netplan and storage configuration.

Kernel command line:
cio_ignore=all,!condev,!0.0.3695,!0.0.bdf0-0.0.bdf2 url=http://bistro.lnxne.boe/ubuntu/UBUNTU20.04/ubuntu-20.04-live-server-s390x.iso ip=172.18.76.38::172.18.0.1:255.254.0.0:m8330038.lnxne.boe:encbdf0:none:172.18.0.1 autoinstall ds=nocloud-net;s=http://t35lp37.lnxne.boe:8080/cfg/

User-data:
#cloud-config
autoinstall:
  apt:
    geoip: true
    preserve_sources_list: false
    primary:
    - arches: [amd64, i386]
      uri: http://archive.ubuntu.com/ubuntu
    - arches: [default]
      uri: http://us.ports.ubuntu.com/ubuntu-ports
  identity: {hostname: m8330038, password: /wjUJRFEEW5PA.CormpX2CYCxwoEAqGpB4sdIi8GgdJLd21tzNGDcZMDi0,
    realname: user, username: user}
  keyboard: {layout: us, toggle: null, variant: ''}
  locale: en_US
  network:
    ethernets:
      encbdf0:
        addresses: [172.18.76.38/15]
        gateway4: 172.18.0.1
        nameservers:
          addresses: [172.18.0.1]
    version: 2
  proxy: http://lnxproxy.lnxne.boe:3128
  ssh:
    allow-pw: true
    authorized-keys: []
    install-server: true
  storage:
    config:
    - {device_id: 0.0.3695, blocksize: 4096, disk_layout: cdl, mode: quick, preserve: false,
      type: dasd, id: dasd-dasda}
    - {ptable: vtoc, serial: 0X3695, path: /dev/dasda, wipe: superblock-recursive,
      preserve: false, name: '', grub_device: false, device_id: 0.0.3695, type: disk,
      id: disk-dasda}
    - {device: disk-dasda, size: 22153265152, wipe: superblock, flag: '', number: 1,
      preserve: false, type: partition, id: partition-0}
    - {fstype: ext4, volume: partition-0, preserve: false, type: format, id: format-0}
    - {device: format-0, path: /, type: mount, id: mount-0}

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-185920 severity-high targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → linux (Ubuntu)
Frank Heimes (fheimes)
affects: linux (Ubuntu) → subiquity (Ubuntu)
Changed in subiquity (Ubuntu):
assignee: Skipper Bug Screeners (skipper-screen-team) → Canonical Foundations Team (canonical-foundations)
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
importance: Undecided → High
tags: added: rls-ff-incoming
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I think this is fixed in the latest released version of the snap, or maybe just in git. Will check status and report back (probably tomorrow).

bugproxy (bugproxy)
tags: added: targetmilestone-inin2004
removed: targetmilestone-inin---
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
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → Confirmed
Revision history for this message
antoine (ticapix) wrote :

Same behavior with today's focal image http://cdimage.ubuntu.com/ubuntu-server/focal/daily-live/current/focal-live-server-amd64.iso

kernel vmlinuz initrd=initrd ip=dhcp url=http://192.168.106.1/ubuntu-focal-daily/focal-live-server-amd64.iso vga=off console=ttyS0,115200u8 autoinstall ds=nocloud-net;s=http://192.168.106.1/ubuntu-focal-daily/
initrd initrd

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

1) zdev activation is missing from the generated data

2) the ipv4 gateway looks a bit odd
Is gateway4: 172.18.0.1 correct?

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2020-06-03 12:09 EDT-------
> 1) zdev activation is missing from the generated data

How should it look like? Is it necessary to have such section for installation on Z?

> 2) the ipv4 gateway looks a bit odd. Is gateway4: 172.18.0.1 correct?

Yes, it is part of internal network setup (as is static IP assignment)

tags: added: id-5ed912b79ef6c42dd6647bba
Revision history for this message
Frank Heimes (fheimes) wrote :

This got fixed with subiquity 20.06.1 and is also listed in the release notes:
https://github.com/CanonicalLtd/subiquity/releases/tag/20.06.1
It's probably best to use this now based on a 20.04 daily live image:
http://cdimage.ubuntu.com/ubuntu-server/daily-live/current/
Or you need to make sure that an installer upgrade is performed.

Closing this ticket as Fix Released (from a project point of view).

Changed in ubuntu-z-systems:
status: Confirmed → Fix Released
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2020-06-25 08:41 EDT-------
IBM bugzilla status-> closed Fix Released by 20.04.1

Revision history for this message
Frank Heimes (fheimes) wrote :

Or of course also using the focal daily-live image:
http://cdimage.ubuntu.com/ubuntu-server/focal/daily-live/current/

Revision history for this message
Frank Heimes (fheimes) wrote :

Well, fix released with subiquity 20.06.1, right

tags: removed: rls-ff-incoming
Changed in subiquity (Ubuntu Focal):
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.