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

Failed to deploy with custom disk partition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.19
    • GitOps ZTP
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • None
    • Ready to Pick
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:
      Attempt to request custom disk partition on the boot disk fails.

      From node's console it reports issue mounting /sysroot:

      Error: system has 0 devices with a filesystem labeled 'boot': []
      coreos-ignition-unique-boot.service: Main process exited, code=exited, status=1/Failure
      

      Version-Release number of selected component (if applicable):
         4.19.0-ec.4

      How reproducible:

      100%

      Steps to Reproduce:

      1. Request a custom disk partition for `var` directory on the same disk requested by `rootDeviceHints` in the ZTP site-config

              automatedCleaningMode: metadata
              nodeLabels:
                node-role.kubernetes.io/standard: ''
              rootDeviceHints:
                deviceName: /dev/disk/by-path/pci-0000:5c:00.0-sas-0x58ce38ee220a82fe-lun-0
      

        2. Specify ignitionCOnfigOverride

               ignitionConfigOverride: '{"ignition": {"version": "3.2.0"},"storage": {"disks": [{"device": "/dev/disk/by-path/pci-0000:5c:00.0-sas-0x58ce38ee220a82fe-lun-0","partitions": [{"label": "var","number": 5,"sizeMiB": 0,"startMiB": 307201,"wipePartitionEntry": true}],"wipeTable": true}],"filesystems": [{"device": "/dev/disk/by-partlabel/var","format": "xfs","mountOptions": ["defaults","prjquota"],"path": "/var","wipeFilesystem": true}]},"systemd": {"units": [{"contents": "# Generated by Butane\n[Unit]\nRequires=systemd-fsck@dev-disk-by\\x2dpartlabel-var.service\nAfter=systemd-fsck@dev-disk-by\\x2dpartlabel-var.service\n\n[Mount]\nWhere=/var\nWhat=/dev/disk/by-partlabel/var\nType=xfs\nOptions=defaults,prjquota\n\n[Install]\nRequiredBy=local-fs.target","enabled": true,"name": "var.mount"}]}}'
      

        3. Start deployment

      Actual results:
      Deployment fails as nodes fail to boot and end up in emergency shell

      Expected results:
      Deployment succeeds

      Additional info:
      When requesting portion on other than "boot" disk it works without issues:

      [core@ocp-node-4 ~]$ lsblk
      NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
      loop0    7:0    0   5.7M  1 loop
      sda      8:0    0 894.3G  0 disk
      ├─sda1   8:1    0   300G  0 part
      └─sda2   8:2    0 594.3G  0 part /var/lib/etcd
      sdb      8:16   0   3.5T  0 disk
      ├─sdb1   8:17   0     1M  0 part
      ├─sdb2   8:18   0   127M  0 part
      ├─sdb3   8:19   0   384M  0 part /boot
      └─sdb4   8:20   0   1.5T  0 part /var
                                       /sysroot/ostree/deploy/rhcos/var
                                       /etc
                                       /sysroot
      sdc      8:32   0 894.3G  0 disk
      

              rh-ee-apalanis Abraham Miller
              yprokule@redhat.com Yurii Prokulevych
              None
              None
              Michael Nguyen Michael Nguyen
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: