[Bug 2022856] Re: Ubuntu 22.04 Server Autoinstall Traceback crash trying to install packages

Hari Sekhon 2022856 at bugs.launchpad.net
Tue Jun 20 00:02:21 UTC 2023


The qemu config is in the Packer .hcl file specifies a disk size if you
want to reproduce it so it should create a disk and install there.

But even if the disk wasn't detected for some reason, surely the
installer shouldn't crash with None type traceback, that's the
equivalent of an unhandled null pointer exception or array out of bounds
type programming error...

I guess the first point is that the code probably needs to be
strengthened to check for these assumptions and give more user friendly
error messages that will aid in better debugging.

I think there are several bugs in this thread though as the bug I
started with at the top was an exception around installing packages that
install fine with the same package names on an already running Ubuntu of
the same version...

-- 
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/2022856

Title:
  Ubuntu 22.04 Server Autoinstall Traceback crash  trying to install
  packages

Status in subiquity package in Ubuntu:
  New

Bug description:
  Autoinstall installation crashes with this error when using a local
  iso cidata containing the user-data on arm64. This exact same user-
  data and package selection works on Ubuntu 22.04 installations on
  x86_64 with user-data served over http:

  Title: install failed crashed with CalledProcessError
  Traceback:
   Traceback (most recent call last):
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/controllers/install.py", line 290, in install
       await self.postinstall(context=context)
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async
       return await meth(self, **kw)
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/controllers/install.py", line 313, in postinstall
       await self.install_package(context=context, package=package)
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async
       return await meth(self, **kw)
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/controllers/install.py", line 340, in install_package
       await run_curtin_command(
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/curtin.py", line 203, in run_curtin_command
       return await cmd.wait()
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/curtin.py", line 116, in wait
       result = await self.runner.wait(self.proc)
     File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/runner.py", line 84, in wait
       raise subprocess.CalledProcessError(proc.returncode, proc.args)
   subprocess.CalledProcessError: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2256', '--setenv', 'PATH=/snap/subiquity/4381/bin:/snap/subiquity/4381/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/4381/bin:/snap/subiquity/4381/sbin', '--setenv', 'PYTHONPATH=:/snap/subiquity/4381/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/4381/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/4381', '--', '/snap/subiquity/4381/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2256.11"}}', 'system-install', '-t', '/target', '--', 'net-tools']' returned non-zero exit status 100.

  Reproduce this easily on any new Mac M1/M2 from my public GitHub repo
  where the autoinstall user data and Hashicorp Packer config is for
  100% reproducibility:

  git clone https://github.com/HariSekhon/Packer-templates pack
  cd pack
  make install tart  # Tart is only for new ARM processor Macs M1/M2
  make ubuntu-tart  # downloads the arm64 ISO, creates the cidata iso image with autoinstall user-data, and then run packer to do the build

  On an x86_64 system with VirtualBox installed you can see the same
  exact autoinstall user-data served over http working to install on the
  same version of Ubuntu 22.04:

  git clone https://github.com/HariSekhon/Packer-templates pack
  cd pack
  make install vbox  # run only on Mac to install packer and virtualbox, otherwise install them yourself
  make ubuntu-vbox

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




More information about the foundations-bugs mailing list