Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-18174

[BUG] ABI install will fail while `serialNumber` used for `rootDeviceHints` section.

XMLWordPrintable

    • Important
    • No
    • Sprint 241, Sprint 242
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      While doing an ABI install with `serialNumber` of disk used in
      `rootDeviceHints' section the installation will fail and checking this further
      we  the inventory takes the serialNumber as WWN while it generates the stats
      for install.If we put the serialNumber of disk to WWN fields while we declare
      `rootDeviceHints' the installation works but again serial number and WWN
      aren't the same thing so it's clear that the inventory generation has issues.For Ex: If we have local SSD drives we really don't have WWN's.This was working with 4.12 as per customer.
      From journal log:
      ```
      time="2023-08-24T10:39:35Z" level=info msg="Received step reply <inventory-1c54ceab> from infra-env
      ...
      {\"bootable\":true,\"by_id\":\"/dev/disk/by-id/wwn-0x5ace42e02544xyza\",\"by_path\":\"/dev/disk/by-path/pci-0000:00:17.0-ata-1.0\",\"drive_type\":\"SSD\",\"has_uuid\":true,\"hctl\":\"1:0:0:0\",\"id\":\"/dev/disk/by-id/wwn-0x5ace42e02544xyza\",\"installation_eligibility\":{\"eligible\":true,\"not_eligible_reasons\":null},\"model\":\"MK000480BCDFS\",\"name\":\"sda\",\"path\":\"/dev/sda\",\"serial\":\"5ace42e02544xyza\",\"size_bytes\":480103981056,\"vendor\":\"ATA\",\"wwn\":\"0x5ace42e02544xyza\"},{\"by_id\":\"/dev/disk/by-id/wwn-0x5002538c408xyzxy\",\"by_path\":\"/dev/disk/by-path/pci-0000:00:17.0-ata-2.0\",\"drive_type\":\"SSD\",\"has_uuid\":true,\"hctl\":\"2:0:0:0\",\"holders\":\"dm-0,dm-1\",\"id\":\"/dev/disk/by-id/wwn-0x5002538c408xyzxy\",\"installation_eligibility\":{\"eligible\":true,\"not_eligible_reasons\":null},\"model\":\"MK000480BCDFS\",\"name\":\"sdb\",\"path\":\"/dev/sdb\",\"serial\":\"5002538c408xyzxy\",\"size_bytes\":480103981056,\"vendor\":\"ATA\",\"wwn\":\"0x5002538c408xyzxy\"}
      ```From the output above you can see that serial is the same is wwn in the inventory output:
      ```
      \"wwn\":\"0x5ace42e02544xyza\
      ...
      \"serial\":\"5ace42e02544xyza\"
      ```(hashed the serial number by `xyza` substitute.)

      Version-Release number of selected component (if applicable):

      4.13.z and 4.13

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create agent-config with following configs,
         -------------
            rootDeviceHints:
            minSizeGigabytes: 120
            rotational: false
            serialNumber: "ABCCN5202I280XYZA"
          ------------
      2. Create ISO and it will fail.
      3.
      

      Actual results:

      Fails install.

      Expected results:

      Shouldn't be failing.

      Additional info:

      With further tests we see on 4.13 variables ID_SERIAL and ID_SERIAL_SHORT are pointing to WWN

              bfournie@redhat.com Robert Fournier
              rhn-support-pkhedeka Parikshit Khedekar
              zhenying niu zhenying niu
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: