subiquity installer is crashing on the normal installation

Bug #2038938 reported by Bartosz Woronicz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
New
Undecided
Unassigned

Bug Description

It offers updated subiquity which I installed but the result is the same.
installed: 23.09.1 (5097) 19MB classic
The original installation got 23.08.1

The installation goes on the physical hardware
HP Proliant DL380 Gen10 Server
with multiple discs and network cards

I was able to configure network and drop to shell to gather information

Here's excerpt from log

2023-10-09 16:57:16,019 ERROR subiquity.server.controllers.refresh:207 checking for snap update failed
Traceback (most recent call last):
  File "/snap/subiquity/5004/lib/python3.10/site-packages/subiquity/server/controllers/refresh.py", line 205, in check_for_update
    result = await self.app.snapdapi.v2.find.GET(select='refresh')
  File "/snap/subiquity/5004/lib/python3.10/site-packages/subiquity/common/api/client.py", line 47, in impl
    async with make_request(
  File "/snap/subiquity/5004/usr/lib/python3.10/contextlib.py", line 199, in __aenter__
    return await anext(self.gen)
  File "/snap/subiquity/5004/lib/python3.10/site-packages/subiquity/server/snapdapi.py", line 260, in make_request
    content = await async_snapd.get(path[1:], **params)
  File "/snap/subiquity/5004/lib/python3.10/site-packages/subiquitycore/snapd.py", line 203, in get
    response.raise_for_status()
  File "/snap/subiquity/5004/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+unix://%2Frun%2Fsnapd.socket/v2/find?select=refresh
2023-10-09 16:57:16,027 DEBUG root:37 finish: subiquity/Refresh/check_for_update: SUCCESS: checking for snap update failed
2023-10-09 17:01:31,425 DEBUG subiquity.server.controllers.integrity:63 casper-md5check results: {'checksum_missmatch': [], 'result': 'pass'}

and here's the server side

2023-10-10 15:03:25,954 DEBUG root:37 finish: subiquity/Filesystem/guided_GET: SUCCESS: 500 Traceback (most recent call last):
  File "/snap/subiquity/5097/lib/python3.1...
2023-10-10 15:03:25,954 DEBUG subiquity.server.server:456 request to /storage/guided crashed
Traceback (most recent call last):
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/common/api/server.py", line 160, in handler
    result = await implementation(**args)
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/server/controllers/filesystem.py", line 461, in guided_GET
    disks=[labels.for_client(d, min_size=min_size) for d in disks],
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/server/controllers/filesystem.py", line 461, in <listcomp>
    disks=[labels.for_client(d, min_size=min_size) for d in disks],
  File "/snap/subiquity/5097/usr/lib/python3.10/functools.py", line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/common/filesystem/labels.py", line 307, in _for_client_disk
    partitions=[for_client(p) for p in gaps.parts_and_gaps(disk)],
  File "/snap/subiquity/5097/usr/lib/python3.10/functools.py", line 889, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/common/filesystem/gaps.py", line 191, in parts_and_gaps_disk
    return find_disk_gaps_v1(device)
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/common/filesystem/gaps.py", line 99, in find_disk_gaps_v1
    info = device.alignment_data()
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/models/filesystem.py", line 627, in alignment_data
    return self._m._partition_alignment_data[ptable]
KeyError: 'unsupported'
2023-10-10 15:03:25,955 ERROR aiohttp.server:405 Error handling request
Traceback (most recent call last):
  File "/snap/subiquity/5097/usr/lib/python3/dist-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/snap/subiquity/5097/usr/lib/python3/dist-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/snap/subiquity/5097/usr/lib/python3/dist-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/snap/subiquity/5097/lib/python3.10/site-packages/subiquity/server/server.py", line 463, in middleware
    ErrorReportRef, report.ref())
AttributeError: 'NoneType' object has no attribute 'ref'

sosreport attached

Revision history for this message
Bartosz Woronicz (mastier1) wrote :
affects: maas-ui → subiquity
description: updated
description: updated
Revision history for this message
Bartosz Woronicz (mastier1) wrote :

Workaround. Wipefs -a -f all disks, as there were some LVM groups and that was causing the disk wizard to break.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.