Traceback deploying Jammy with MAAS 3.1

Bug #1956613 reported by Jeff Lane 
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned

Bug Description

Doing some testing of Jammy via MAAS. I've added the 22.04 images via the Candidate stream and just attempted several deployments on multiple machines, all fail with the same traceback:

finish: cmd-install/stage-partitioning/builtin/cmd-block-meta/clear-holders: FAIL: removing previous storage devices
TIMED BLOCK_META: 5.411
finish: cmd-install/stage-partitioning/builtin/cmd-block-meta: FAIL: curtin command block-meta
Traceback (most recent call last):
  File "/curtin/curtin/commands/main.py", line 202, in main
    ret = args.func(args)
  File "/curtin/curtin/log.py", line 97, in wrapper
    return log_time("TIMED %s: " % msg, func, *args, **kwargs)
  File "/curtin/curtin/log.py", line 79, in log_time
    return func(*args, **kwargs)
  File "/curtin/curtin/commands/block_meta.py", line 102, in block_meta
    meta_clear(devices, state.get('report_stack_prefix', ''))
  File "/curtin/curtin/commands/block_meta.py", line 1889, in meta_clear
    clear_holders.clear_holders(devices)
  File "/curtin/curtin/block/clear_holders.py", line 639, in clear_holders
    shutdown_function(dev_info['device'])
  File "/curtin/curtin/block/clear_holders.py", line 244, in wipe_superblock
    if block.is_extended_partition(blockdev):
  File "/curtin/curtin/block/__init__.py", line 1084, in is_extended_partition
    return (get_part_table_type(parent_dev) in ['dos', 'msdos'] and
  File "/curtin/curtin/block/__init__.py", line 1026, in get_part_table_type
    return ('gpt' if check_efi_signature(device) else
  File "/curtin/curtin/block/__init__.py", line 1058, in check_efi_signature
    sector_size = get_blockdev_sector_size(devname)[0]
  File "/curtin/curtin/block/__init__.py", line 785, in get_blockdev_sector_size
    logical = info[parent]['LOG-SEC']
KeyError: 'LOG-SEC'
'LOG-SEC'
curtin: Installation failed with exception: Unexpected error while running command.
Command: ['curtin', 'block-meta', 'custom']
Exit code: 3

I've attached the logs from one of the failed deployments.

I know that there were some curtin issues earlier that affected Jammy deployments, but was told that MAAS 3.1 should have addressed these, so I don't know if this is a new issue or still the same issue.

We're using the MAAS 3.1.0 snap.

As a side note, I really, REALLY appreciate being able to simply download the tarball of deployment logs from the MAAS UI. Bravo!

Revision history for this message
Jeff Lane  (bladernr) wrote :
Revision history for this message
Diego Mascialino (dmascialino) wrote :

Hi Jeff,

This issue is fixed in curtin 21.3.

If you run maas 3.1/edge you will be able to deploy jammy images.

Changed in maas:
status: New → Fix Committed
Revision history for this message
Diego Mascialino (dmascialino) wrote :

I am wrong, this changes are also needed to deploy 22.04 images:

https://git.launchpad.net/maas/commit/?id=e2c01963430e6837198a54bc1eadf3efc9fdd9a2

So currently the only version of maas is latest/edge.

Revision history for this message
Igor Gnip (igorgnip) wrote :

I am not in agreement that established parameter names can be changed.
Feel free to introduce new parameters to lsblk.
Fixing 'issue' by forcing use of latest MAAS is very wrong. Starts to feel like windows updates.

Using latest software is not a solution for bad practices as it is breaking contracts/conventions/parameter formats for developer's immediate convenience.
As I said, feel free to add new parameters, leave the old ones be.
This is a hard breakage of well established conventions.

Changed in maas:
milestone: none → 3.2.0-beta1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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