[Bug 1879286] Re: [UBUNTU 20.04] Netplan configuration fails to apply in subiquity installer

Frank Heimes 1879286 at bugs.launchpad.net
Wed Jun 17 18:15:06 UTC 2020


Thx for the hint, Michael. I now tried again based on the current daily-
live image - plain as well as with edge enabled - and I got autoinstall
to work on a z/VM (means with real ccw devices).

The only difference between current daily and edge is that edge is a bit
nicer (afaics) if one tries to login while the install is running. The
edge version gives some hints to hit Enter and allows that from remote.

For reference here are my settings:

parmfile / kernel args:
ip=10.11.12.23::10.11.12.1:255.255.255.0:hwe0003:enc600:none:10.11.12.1 url=ftp://installserver:21/ubuntu-daily-live-server-20.04/focal-live-server-s390x.iso autoinstall ds=nocloud-net;s=http://installserver:3003/hwe0003/ http_proxy=http://squid.proxy:3128 --- quiet 
[or with 'subiquity-channel=latest/edge']

$ cat user-data
#cloud-config
autoinstall:
  version: 1
  refresh-installer:
    update: yes
  reporting:
    builtin:
      type: print
  apt:
    preserve_sources_list: false
    primary:
    - arches: [amd64, i386]
      uri: http://archive.ubuntu.com/ubuntu
    - arches: [default]
      uri: http://ports.ubuntu.com/ubuntu-ports
  proxy: http://91.189.89.11:3128
  keyboard:
    layout: en
    variant: us
  locale: en_US
  identity:
    hostname: hwe0003
    password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
    username: ubuntu
  user-data:
    timezone: America/Boston
    users:
      - name: me
        password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
        lock_passwd: false
      - name: ubuntu
        password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
        lock_passwd: false
  early-commands:
  - chzdev -e qeth 0600
  - chzdev -e dasd 0200
  network:
    version: 2
    ethernets:
      enc600:
        addresses: [10.11.12.23/24]
        gateway4: 10.11.12.1
        nameservers:
          addresses: [10.11.12.1]
  ssh:
    install-server: true
    allow-pw: true
    authorized-keys: []

As one can see I enabled one qeth network device and one DASD disk
manually via early-commands.

So I can confirm that it's working with the current focal daily-live
image (or newer).

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

Title:
  [UBUNTU 20.04] Netplan configuration fails to apply in subiquity
  installer

Status in Ubuntu on IBM z Systems:
  Confirmed
Status in subiquity package in Ubuntu:
  Confirmed

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.

  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/

  #cloud-config
  autoinstall:
    version: 1
    reporting:
      remote:
        type: webhook
        endpoint: http://t35lp37.lnxne.boe:8080/log/
    refresh-installer:
      update: yes
    apt:
      primary:
      - arches: [s390x]
        uri: http://us.ports.ubuntu.com/ubuntu-ports
    identity: {hostname: m8330038, password: .ueYA4yxzICWX9/.wxG7epPimsn.FM/CuMQMqjgbBbawyn5T3zYyGc5Io4ZNRcvItBWojzpO1S8bkTpthJRPc4Q.,
      realname: user, username: user}
    keyboard: {layout: us, 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
    ssh:
      allow-pw: true
      authorized-keys: []
      install-server: true
    storage:
      version: 1
      layout:
        name: direct

  
  I get the following otuput on the webhook:
  curtin start subiquity/Welcome/apply_autoinstall_config:
  curtin finish subiquity/Welcome/apply_autoinstall_config:
  curtin finish subiquity/Welcome: completed
  curtin start subiquity/Refresh/apply_autoinstall_config:
  curtin start subiquity/Refresh/check_for_update:
  curtin finish subiquity/Network/apply_config: Command '['netplan', 'apply']' returned non-zero exit status 1.
  curtin start subiquity/Error/1589791025.945954323.network_fail/add_info:
  curtin start subiquity/Error/1589791025.951922417.ui/add_info:
  curtin finish subiquity/Error/1589791025.951922417.ui/add_info: written to /var/crash/1589791025.951922417.ui.crash

  Configuration seems to be working fine when applied on a manually
  installed system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1879286/+subscriptions



More information about the foundations-bugs mailing list