Ubuntu 22.04 not installing on md partition

Bug #1970116 reported by Oscar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin (Ubuntu)
Invalid
High
Unassigned
probert (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

I'm trying to install Ubuntu 22.04 server edition, using /boot and / as separate partitions, both as md array, but it fails.

Looking at log seems that the installer is looking for a device that not exists:
 ValueError: Specified md device does not exist: /dev/md/md127p1

 but to me seems that it is looking for a malformed device name: from the logs it finds correctly

           "device_path": "/dev/md127p1"

and in the shell I can look at it:

root@ubuntu-server:/# ls -la /dev/md*
brw-rw---- 1 root disk 9, 125 Apr 23 18:03 /dev/md125
brw-rw---- 1 root disk 259, 1 Apr 23 18:17 /dev/md125p1
brw-rw---- 1 root disk 9, 126 Apr 23 18:03 /dev/md126
brw-rw---- 1 root disk 9, 127 Apr 24 08:12 /dev/md127
brw-rw---- 1 root disk 259, 2 Apr 24 08:12 /dev/md127p1

Instead, in the /dev/md/ I find a "descriptive" name of the array, but is not the name the installer is looking for:

root@ubuntu-server:/# ls -la /dev/md/
total 0
drwxr-xr-x 2 root root 140 Apr 24 08:12 .
drwxr-xr-x 20 root root 4860 Apr 24 08:12 ..
lrwxrwxrwx 1 root root 8 Apr 23 18:03 oscar-backend:41 -> ../md126
lrwxrwxrwx 1 root root 8 Apr 24 08:12 ubuntu-server:73 -> ../md127
lrwxrwxrwx 1 root root 10 Apr 24 08:12 ubuntu-server:73p1 -> ../md127p1
lrwxrwxrwx 1 root root 8 Apr 23 18:03 ubuntu-server:82 -> ../md125
lrwxrwxrwx 1 root root 10 Apr 23 18:17 ubuntu-server:82p1 -> ../md125p1

Also /proc/mdstat looks good:

root@ubuntu-server:/# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]
md125 : active raid1 sdb4[0] sdc4[1]
      524155904 blocks super 1.2 [2/2] [UU]
      bitmap: 0/4 pages [0KB], 65536KB chunk

md126 : active (auto-read-only) raid5 sdb5[1] sda5[3] sdc5[0]
      10653326336 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
      bitmap: 0/40 pages [0KB], 65536KB chunk

md127 : active raid1 sdc2[1] sdb2[0]
      1046528 blocks super 1.2 [2/2] [UU]

unused devices: <none>

Tags: fr-2277
Revision history for this message
Oscar (mc4280) wrote :
Dan Bungert (dbungert)
Changed in curtin (Ubuntu):
status: New → Confirmed
Dan Bungert (dbungert)
tags: added: fr-2277
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Oops, this is my fault, in https://github.com/canonical/probert/commit/5a37f8821bf6ad1af19babc862a17e148da5ae25 I accidentally changed to code so that it would think that partitions of an existing RAID are RAID devices.

Changed in curtin (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Revision history for this message
Dan Bungert (dbungert) wrote :

A fix for this has been merged to the Subiquity snap beta channel.
If you would like to help test this fix, please do the following:
* Launch your installer ISO as you normally would
* During the install, when the network is configured enough that snap
  should be able to reach the snap store, please go to a command line.
  The easiest way to do this should be to use the "Enter Shell" option
  in the "Help Menu"
* Run command `sudo snap refresh --beta subiquity`
* Complete your install as you would normally

Autoinstall users would need to use:
  refresh-installer:
    update: yes
    channel: beta

This build differs from the released version with the following fixes:
https://github.com/canonical/probert/pull/116/commits/e4115e837ed9e48b714b17f7a1c57cc62e5f7abe
https://git.launchpad.net/curtin/commit/?id=15ecdeab1e3a41069e84ddcac42d8bd1747e0382

Changed in curtin (Ubuntu):
status: Triaged → Fix Committed
Changed in probert (Ubuntu):
status: New → Fix Committed
Changed in curtin (Ubuntu):
status: Fix Committed → Invalid
Revision history for this message
geole0 (geole0) wrote :

Hello

Today this message
ise à jour du programme d'installation disponible
Version 22.05.1 of the installer is now available (22.04.2 is currently running)
Vous pouvez lire les notes de publication de chaque version sur
                                                       https:/github.com/canonical/subiquity/releases
If you choose to update, the update will be download and the installation will continue from here.

                    Mise à jour vers le nouveau programme d'installation
                    Continuer sans mettre à jour
                    retour

Revision history for this message
Dan Bungert (dbungert) wrote :

@geole0 - I'm not sure what your feedback here is, but that popup showing that a new version is available is expected.

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.