Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-45179

[RHEL10] livemedia-creator fails to build an ISO on non-x86_64 architectures

    • python-blivet-3.10.0-7.el10
    • None
    • Moderate
    • sst_storage_management
    • ssg_filesystems_storage_and_HA
    • 10
    • 12
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      livemedia-creator fails to build an ISO on aarch64, ppc64le and s390x. Its log shows an issue with loading of nvme module and Storage Anaconda module:

      ...
      2024-03-05 08:26:40,855 INFO pylorax: Running anaconda.
      2024-03-05 08:26:41,367 INFO pylorax:
      2024-03-05 08:26:41,368 INFO pylorax: ** (process:1): WARNING **: 08:26:41.118: failed to load module nvme: libbd_nvme.so.2: cannot open shared object file: No such file or directory
      2024-03-05 08:26:48,378 INFO pylorax: Starting installer, one moment...
      2024-03-05 08:26:48,378 INFO pylorax: terminal size detection failed, using default width
      2024-03-05 08:26:48,378 INFO pylorax: anaconda 34.25.4.7-1.el9 for Red Hat Enterprise Linux 9 (pre-release) started.
      2024-03-05 08:26:48,379 INFO pylorax: 08:26:48 Service org.fedoraproject.Anaconda.Modules.Storage has failed to start: Process org.fedoraproject.Anaconda.Modules.Storage exited with status 1
      2024-03-05 08:26:58,394 ERROR pylorax: Running anaconda failed: process '['unshare', '--pid', '--kill-child', '--mount', '--propagation', 'unchanged', 'anaconda', '--kickstart', '/mnt/tests/installation/livemedia-creator/build-images/ks.cfg', '--cmdline', '--image', '/var/tmp/lmc-disk-ztjg7z0v.img', '--remotelog', '127.0.0.1:36765']' exited with status 1
      ...

      and there is a traceback in Anaconda's log:

      ...
      org.fedoraproject.Anaconda.Modules.Storage[20707]: INFO:program:Running... /usr/libexec/fcoe/fcoe_edd.sh -i
      org.fedoraproject.Anaconda.Modules.Storage[20707]: ERROR:program:Error running /usr/libexec/fcoe/fcoe_edd.sh: No such file or directory
      org.fedoraproject.Anaconda.Modules.Storage[20707]: INFO:blivet:Failed to read FCoE EDD info: No such file or directory
      org.fedoraproject.Anaconda.Modules.Storage[20707]: DEBUG:anaconda.modules.storage.iscsi.iscsi:Start up the iSCSI module.
      org.fedoraproject.Anaconda.Modules.Storage[20707]: DEBUG:anaconda.modules.storage.nvme.nvme:Start up the NVMe module.
      python3[20707]: The function 'bd_nvme_get_host_nqn' called, but not implemented!
      org.fedoraproject.Anaconda.Modules.Storage[20707]: Traceback (most recent call last):
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib64/python3.9/runpy.py", line 197, in _run_module_as_main
      org.fedoraproject.Anaconda.Modules.Storage[20707]: return _run_code(code, main_globals, None,
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
      org.fedoraproject.Anaconda.Modules.Storage[20707]: exec(code, run_globals)
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/_main_.py", line 29, in <module>
      org.fedoraproject.Anaconda.Modules.Storage[20707]: service = StorageService()
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/storage.py", line 104, in _init_
      org.fedoraproject.Anaconda.Modules.Storage[20707]: self._nvme_module = NVMEModule()
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/nvme/nvme.py", line 38, in _init_
      org.fedoraproject.Anaconda.Modules.Storage[20707]: self.reload_module()
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/nvme/nvme.py", line 49, in reload_module
      org.fedoraproject.Anaconda.Modules.Storage[20707]: nvme.startup()
      org.fedoraproject.Anaconda.Modules.Storage[20707]: File "/usr/lib/python3.9/site-packages/blivet/nvme.py", line 78, in startup
      org.fedoraproject.Anaconda.Modules.Storage[20707]: self._hostnqn = blockdev.nvme_get_host_nqn()
      org.fedoraproject.Anaconda.Modules.Storage[20707]: gi.repository.GLib.GError: g-bd-init-error-quark: The function 'bd_nvme_get_host_nqn' called, but not implemented! (1)
      ...

      followed by subsequent tracebacks.

      I found there have been some NVMe-related changes made in Anaconda since the last time our livemedia-creator test passed (which was with RHEL-9.4.0-20240116.9/anaconda-34.25.4.1-1.el9): https://github.com/rhinstaller/anaconda/pull/5328 - may it be the cause of the failure?

      Please provide the package NVR for which bug is seen:

      anaconda-34.25.4.7-1.el9 (RHEL-9.4.0-20240301.8)

      How reproducible:

      Always.

      Steps to reproduce

      1. Build a live ISO using livemedia-creator: livemedia-creator --make-disk --no-virt --iso /var/lib/libvirt/images//boot.iso --ks ks.cfg --nomacboot

      Expected results

      Image build is successful.

      Actual results

      Image build fails due to an Anaconda traceback.

            vtrefny@redhat.com Vojtěch Trefný
            rhn-support-jikortus Jiri Kortus
            Vojtěch Trefný Vojtěch Trefný
            Release Test Team Release Test Team
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: