Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-16255

EDPM growvols does not handle the multipath disk correctly

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • No Docs Impact
    • diskimage-builder-3.37.0-18.0.20250513194836.95e3479.el9ost
    • rhos-ops-day1day2-hardprov
    • None
    • HardProv Sprint 3, HardProv Sprint 4, HardProv Sprint 6
    • 3
    • Important

      Context:
      In the case of RHOSO EDPM Deployment where the nodes have disks exposed with multipath. The growvols utility does not handle the multipath disk correctly.

      The partition name construction on the source code is not compatible with multipath names, actually the partition name on such disks get names of format devnamep1, devnamep2, devnamep3 and so on, but the growvols is waiting for somthing like devname1, devname2, devname3 
      This is a blocking point to the openstackdataplanedeployment in case of nodes with multipath

      $ oc logs -l app=openstackansibleee -f --max-log-requests 10
      TASK [osp.edpm.edpm_growvols : Running /usr/local/sbin/growvols/=8GB /tmp=1GB /var/log=25GB /var/log/audit=2GB /home=1GB /var=100%] ***
      task path: /usr/share/ansible/collections/ansible_collections/osp/edpm/roles/edpm_growvols/tasks/main.yml:38
      fatal: [vel1-nfv12-kvm0105]: FAILED! => {"changed": false, "cmd": "/usr/local/sbin/growvols --yes /=8GB /tmp=1GB /var/log=25GB /var/log/audit=2GB /home=1GB /var=100%\n", "delta": "0:00:00.121648", "end": "2025-04-28 05:49:59.595052", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2025-04-28 05:49:59.473404", "stderr": "Traceback (most recent call last):\n  File \"/usr/local/sbin/growvols\", line 678, in <module>\n    sys.exit(main(sys.argv))\n  File \"/usr/local/sbin/growvols\", line 566, in main\n    partnum = find_next_partnum(devices, disk)\n  File \"/usr/local/sbin/growvols\", line 366, in find_next_partnum\n    max_partnum = max(max_partnum, int(dev_name[disk_name_length:]))\nValueError: invalid literal for int() with base 10: 'p1'", "stderr_lines": ["Traceback (most recent call last):", "  File \"/usr/local/sbin/growvols\", line 678, in <module>", "    sys.exit(main(sys.argv))", "  File \"/usr/local/sbin/growvols\", line 566, in main", "    partnum = find_next_partnum(devices, disk)", "  File \"/usr/local/sbin/growvols\", line 366, in find_next_partnum", "    max_partnum = max(max_partnum, int(dev_name[disk_name_length:]))", "ValueError: invalid literal for int() with base 10: 'p1'"], "stdout": "", "stdout_lines": []}
      
      NO MORE HOSTS LEFT *************************************************************
      
      NO MORE HOSTS LEFT *************************************************************
      
      PLAY RECAP *********************************************************************
      vel1-nfv12-kvm0105         : ok=5    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
      $ 

      To Reproduce

       

      1. Prepare an OSDPNodeSet with a server with multipath disks,
      2. Make sure the services section on the NodeSet contains bootstrap service,
      3. Make that no AnsibleSkipTag is used on the OSDPDeployment
      4. Apply the deployment.

      Expected behavior

      • The deployment configure the system including resizing volumes

      Device Info:

      • Hardware Specs: Cisco UCS B200 M6 2 Socket Blade Server
                        Disks are exposed to the nodes over SAN and multipath is used.

      Bug impact

      • The bug block the RHOSO DataPlane Deployment. 

      Known workaround

      • A TagSkip was added at OpenStackDataPlaneDeployment level to skip importing the growvols roles, This is a workaround to try to handle the volume configuration and resizing but other means like on the bootstrap commands level for example.

       

              rhn-gps-hjensas Harald Jensas
              rh-ee-bbellaou Brahim BELLAOUI (Inactive)
              rhos-dfg-hardprov
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: