[Bug 1958433] Re: Cannot deploy Centos7 with xfs when using Focal as commissioning image

Mauricio Faria de Oliveira 1958433 at bugs.launchpad.net
Tue Aug 29 20:59:48 UTC 2023


** Changed in: maas/2.9
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1958433

Title:
  Cannot deploy Centos7 with xfs when using Focal as commissioning image

Status in curtin:
  Invalid
Status in MAAS:
  Fix Released
Status in MAAS 2.8 series:
  Triaged
Status in MAAS 2.9 series:
  Fix Released
Status in MAAS 3.0 series:
  Fix Released
Status in MAAS 3.1 series:
  Fix Released

Bug description:
  When setting Focal as commissioning image and try to deploy Centos7
  with xfs the machine keeps rebooting.

  The reboots happen because the root partition is mounted as read-only and cannot be re-mounted as rw :
  [ 1.627587] XFS (sda2): Superblock has unknown read-only compatible features (0x4) enabled.
  [ 3.115579] XFS (sda2): ro->rw transition prohibited on unknown (0x4) ro-compat filesystem

  
  If use Bionic as commissioning image Centos7+xfs is deployed without problems.

  
  The root cause of this is xfs being incompatible between older and newer versions.
  To confirm this I passed "reflink=0" to mkfs.xfs command with following hack :
  diff --git a/curtin/block/mkfs.py b/curtin/block/mkfs.py
  index ea5f09dd..abfefdb1 100644
  --- a/curtin/block/mkfs.py
  +++ b/curtin/block/mkfs.py
  @@ -84,7 +84,7 @@ family_flag_mappings = {
                "ext": ("-U", "{uuid}"),
                "reiserfs": ("--uuid", "{uuid}"),
                "swap": ("--uuid", "{uuid}"),
  -             "xfs": ("-m", "uuid={uuid}")},
  +             "xfs": ("-m", "uuid={uuid},reflink=0")},
   }
   
   release_flag_mapping_overrides = {

  
  With this hack I was able to deploy Centos7+xfs using focal as commissioning image.
  However this quick hack is only to confirm the root cause and not a good fix.
  I open this bug to investigate a more appropriate solution.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1958433/+subscriptions




More information about the foundations-bugs mailing list