Public bug reported:

Subiquity has the following issues when `interactive-sections: identity`
is specified in a custom `user-data`. I am installing using Ubuntu
20.04.3 and have `ds=nocloud-net` set.

 - The identity screen is shown but nothing configured on it ends up being 
applied.
     -  Filling in the `Choose a password` and `Confirm your password` fields 
is forced even though a password has been specified in `user-data`.
 - The installer gets stuck on and does not run `executing late commands`.
 - The installer does not reboot.

The user specified on the `identity` screen is not created. This was
verified by running `sudo cat /target/etc/shadow` from a shell after
this installer was stuck.

Once in the stuck state, I wait for any HDD or network activity to
finish before leaving the installer for over 10 minutes before forcing a
reboot.

The install works as expected if `interactive-sections: identity` is
commented out or replaced with `interactive-sections: network`.

Following is the custom `user-data` config which which I am using:

```
#cloud-config
autoinstall:
  version: 1
  interactive-sections: 
    - identity
  locale: en_AU.UTF-8
  refresh-installer:
    update: no
  proxy: http://172.16.10.220:3128
  identity:
    hostname: set-hostname-here
    password: [REDACTED]
    username: ansible
  timezone: Australia/Adelaide
  ssh:
      install-server: yes
      authorized-keys:
        - [REDACTED]
      allow-pw: yes
  packages:
    - avahi-daemon
  late-commands: 
    - echo "ansible ALL=(ALL:ALL) NOPASSWD:ALL" > /target/etc/sudoers.d/ansible
    - 'echo "IPv4: \\\4" >> /target/etc/issue && echo "IPv6: \\\6" >> 
/target/etc/issue && echo "" >> /target/etc/issue'
```

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

** Attachment added: "subiquity-server-debug.log"
   
https://bugs.launchpad.net/bugs/1944400/+attachment/5526569/+files/subiquity-server-debug.log

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

Title:
  Install does not finish when using interactive-sections: identity

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to