Can't deploy CentOS with an XFS partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned |
Bug Description
Recently (a few weeks ago?) something changed where we can no longer deploy CentOS 7 images if we have an XFS partition defined in the storage tab, regardless of which partition it is.
Generally our storage layout was
sda-part1 536.9MB fat32 /boot/efi
sda-part2 959.7GB ext4 /
sdb-part1 960.2GB xfs /scratch
Upon attempting a deploy there are errors visible on the local console:
```
654.445670] scsi15:0:0:0: Direct-Access
AMI
Virtual HDisk8 1.00 PO: 0 ANSI: 8 CCS
654.448933] sd 15:0:0:0: Attached scsi generic sg2 type a
654.454282] sd 15:0:0:0: [sdb] Attached SCSI removable disk
Authorization not available. Check if polkit service is ruing or see debug message for more information
674.1588001 XFS (sda3): Superblock has unknown read-only compatible features (Ox4) enabled
674.1614331 XFS (sda3) : Attempted to mount read-only compatible filesystem read-write
674.1640431 XFS (sda3) : Filesystem can only be safely mounted read only.
674.1667001 XFS (sda3) : SB validate failed with error -22.
Welcome to emergency mode! After logging in, tupe
"journalct1 -xb" to view
system logs,
"systemctI reboot" to reboot,
"systemct1 default"
"D to
try again to boot into default mode.
Cannot open access to console, the root account is locked
See
sulogin(8) man page for more details.
Press Enter to continue
```
Attempting to boot into default mode fails, so I cannot view the journalctl output.
Additionally, if we deploy a machine with an unformatted partition, format it to XFS, add it to fstab, and reboot, the machine does not boot anymore.