[Expired for curtin because there has been no activity for 60 days.]

** Changed in: curtin
       Status: Incomplete => Expired

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

Title:
  Upon RAID partitioning I get "Duplicate key in mdadm regex parsing:
  UUID"

Status in curtin:
  Expired

Bug description:
  I'm trying to install Ubuntu 18.04 with curtin under MaaS 2.4 control
  on a RAID1 array.

  Apparently, under the hood curtin runs

  `mdadm --examine /dev/md127`

  Which in turn calls __mdadm_detail_to_dict(input):
  
https://github.com/CanonicalLtd/curtin/blob/f02fd6132b770149b02644018fd65319a77c8338/curtin/block/mdadm.py#L605

  Here's the output of my `$ sudo mdadm --examin /dev/md127` command:

  $ sudo mdadm --examine /dev/md127
  /dev/md127:
            Magic : Intel Raid ISM Cfg Sig.
          Version : 1.1.00
      Orig Family : 0885e967
           Family : 0885e967
       Generation : 00000033
       Attributes : All supported
             UUID : 1fb6c7b0:55d26b20:69e244b0:7b7974cf
         Checksum : e7840880 correct
      MPB Sectors : 2
            Disks : 2
     RAID Devices : 1

    Disk01 Serial : YF922101XY480BGN
            State : active
               Id : 00000001
      Usable Size : 937692686 (447.13 GiB 480.10 GB)

  [Volume0]:
             UUID : 060af43a:79c0b5e1:d9f68187:aebfcecb
       RAID Level : 1 <-- 1
          Members : 2 <-- 2
            Slots : [UU] <-- [_U]
      Failed disk : 0
        This Slot : 1
      Sector Size : 512
       Array Size : 890798080 (424.77 GiB 456.09 GB)
     Per Dev Size : 890800128 (424.77 GiB 456.09 GB)
    Sector Offset : 0
      Num Stripes : 3479680
       Chunk Size : 64 KiB <-- 64 KiB
         Reserved : 0
    Migrate State : rebuild
        Map State : normal <-- degraded
       Checkpoint : 434961 (512)
      Dirty State : clean
       RWH Policy : off

    Disk00 Serial : YF9221058A480BGN
            State : active
               Id : 00000000
      Usable Size : 937692686 (447.13 GiB 480.10 GB)

  As you can see, there's indeed a duplication of key 'UUID', as there
  are two UUID fields in my mdadm result, one for the whole Raid
  controller, and the other just for one volume. Those are different
  sections, having different UUIDs with different meanings.

  curtin crashes at this place and installation fails with the following
  log:

  ```
  curtin: Installation started. (19.1-7-g37a7a0f4-0ubuntu1~18.04.1)

  Duplicate key in mdadm regex parsing: uuid

  curtin: Installation failed with exception: Unexpected error while
  running command.

  Command: ['curtin', 'block-meta', 'custom']

  Exit code: 3

  Reason: -

  Stdout: Duplicate key in mdadm regex parsing: uuid


  Stderr: ''
  ```

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

-- 
Mailing list: https://launchpad.net/~curtin-dev
Post to     : curtin-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~curtin-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to