[Bug 2022856] Re: Ubuntu 22.04 Server Autoinstall Traceback crash trying to install packages
Hari Sekhon
2022856 at bugs.launchpad.net
Tue Jun 13 01:14:47 UTC 2023
So I commented out most of the autoinstall user-data, the whole packages
section, the whole snaps section, ssh keys, the whole late command
section and ran it again on x86_64 qemu and it still crashed out,
related to the filesystem:
2023-06-13 00:57:38,888 ERROR root:37 finish: subiquity/Filesystem/apply_autoinstall_config/convert_autoinstall_config: FAIL: 'NoneType' object has no attribute 'id'
2023-06-13 00:57:38,891 ERROR root:37 finish: subiquity/Filesystem/apply_autoinstall_config: FAIL: 'NoneType' object has no attribute 'id'
2023-06-13 00:57:38,897 ERROR root:37 finish: subiquity/apply_autoinstall_config: FAIL: 'NoneType' object has no attribute 'id'
2023-06-13 00:57:38,901 ERROR subiquity.server.server:424 top level error
Traceback (most recent call last):
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquity/server/server.py", line 666, in start
await self.apply_autoinstall_config()
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async
return await meth(self, **kw)
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquity/server/server.py", line 475, in apply_autoinstall_config
await controller.apply_autoinstall_config()
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async
return await meth(self, **kw)
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquity/server/controllers/filesystem.py", line 141, in apply_autoinstall_config
self.convert_autoinstall_config(context=context)
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquitycore/context.py", line 142, in decorated_sync
return meth(self, **kw)
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquity/server/controllers/filesystem.py", line 638, in convert_autoinstall_config
self.run_autoinstall_guided(self.ai_data['layout'])
File "/snap/subiquity/4380/lib/python3.8/site-packages/subiquity/server/controllers/filesystem.py", line 612, in run_autoinstall_guided
target = GuidedStorageTargetReformat(disk_id=disk.id)
AttributeError: 'NoneType' object has no attribute 'id'
2023-06-13 00:57:38,926 INFO subiquity.common.errorreport:406 saving crash report 'unknown error crashed with AttributeError' to /var/crash/1686617858.918541193.unknown.crash
2023-06-13 00:57:38,932 INFO root:37 start: subiquity/ErrorReporter/1686617858.918541193.unknown/add_info:
Full crash log is attached.
Given that the storage section in the autoinstall user-data is only
this:
storage:
layout:
name: lvm
match:
size: largest
I'm not sure what else I can cut... perhaps in this case it's caused
Qemu's storage or lack of being detected?
** Attachment added: "1686617858.918541193.unknown.crash"
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2022856/+attachment/5679380/+files/1686617858.918541193.unknown.crash
--
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