Hi All,

I have tried several attempts to user-data file for autoinstall.
This is the latest - this is the error:
2021-01-13 19:41:13,845 INFO subiquity:135 Starting Subiquity revision 1966
2021-01-13 19:41:13,845 INFO subiquity:136 Arguments passed:
['/snap/subiquity/1966/usr/bin/subiquity']
2021-01-13 19:41:14,594 INFO root:39 start: subiquity/core_validation:
2021-01-13 19:41:14,595 INFO root:39 finish: subiquity/core_validation:
SUCCESS:
2021-01-13 19:41:14,623 INFO root:39 start: subiquity/core_validation:
2021-01-13 19:41:14,625 INFO root:39 finish: subiquity/core_validation:
SUCCESS:
2021-01-13 19:41:14,639 ERROR root:39 finish:
subiquity/Package/load_autoinstall_data: FAIL: can only assign an iterable
2021-01-13 19:41:14,640 ERROR subiquitycore.core:678 Exception in
controller.run():
Traceback (most recent call last):
  File
"/snap/subiquity/1966/lib/python3.6/site-packages/subiquitycore/core.py",
line 662, in run
    self.controllers.load_all()
  File
"/snap/subiquity/1966/lib/python3.6/site-packages/subiquitycore/core.py",
line 279, in load_all
    self.load(self.controller_names[0])
  File
"/snap/subiquity/1966/lib/python3.6/site-packages/subiquitycore/core.py",
line 273, in load
    inst = klass(self.app)
  File
"/snap/subiquity/1966/lib/python3.6/site-packages/subiquity/controller.py",
line 40, in __init__
    self.setup_autoinstall()
  File
"/snap/subiquity/1966/lib/python3.6/site-packages/subiquity/controller.py",
line 50, in setup_autoinstall
    self.load_autoinstall_data(ai_data)
  File
"/snap/subiquity/1966/lib/python3.6/site-packages/subiquity/controllers/package.py",
line 29, in load_autoinstall_data
    self.model[:] = data
TypeError: can only assign an iterable
2021-01-13 19:41:14,641 INFO subiquity.core:487 saving crash report
'Installer UI crashed with TypeError' to
/var/crash/1610566874.641513586.ui.crash


my user-data file is:
#cloud-config
autoinstall:
  version: 1
  early-commands:
    - systemctl stop ssh # otherwise packer tries to connect and exceed max
attempts
  network:
    network:
      version: 2
      ethernets:
        eth0:
          dhcp4: yes
          dhcp-identifier: mac
  apt:
    preserve_sources_list: false
    primary:
      - arches: [amd64]
        uri: "http://archive.ubuntu.com/ubuntu/";
  ssh:
    install-server: yes
    allow-pw: no
  identity:
    hostname: ubuntu-00
    password: changed
    username: changed
  packages:
  user-data:
    disable_root: false
  late-commands:
  storage:
    layout:
      name: direct


I got this file off the net - because my files were ALSO crashing.
AT this point I just desire a working autoinstall file that doesnt crash.
Then I can tweak.

Anyone can share their user-data file that works ??? Thanks,

Jerry
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss

Reply via email to