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

Hostnqn and hostid are not automatically generated post nvme package installation

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • rhel-10.0
    • nvme-cli
    • None
    • Yes
    • None
    • rhel-storage-io-2
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

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

      I tried using hostnqn for my testing but hostnqn is not already generated whereas at RHEL 9 I did not face this issue

      What is the impact of this issue to you?

      I have to manually generate hostnqn and hostid to proceed

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?:

      1/1 times

      Steps to reproduce

      1. dnf install nvme-cli
      2. cd /etc/nvme - no such folder
      3. /etc/nvmehostnqn /etc/nvme/hostid - no such files

      Expected results

      hostnqn and hostid are automatically generated upon nvme-cli installation

      Actual results

      Ref- https://bugzilla.redhat.com/show_bug.cgi?id=2415011

      On RHEL-9
      [root@ceph-rl-2gw-zu68ek-node6 ~]# ls /etc/nvme
      ls: cannot access '/etc/nvme': No such file or directory
      [root@ceph-rl-2gw-zu68ek-node6 ~]# dnf install nvme-cli -y
      Updating Subscription Management repositories.
      
      This system has release set to 9.6 and it receives updates only for this release.
      
      Last metadata expiration check: 1:10:27 ago on Fri Nov 14 09:58:16 2025.
      Dependencies resolved.
      ==========================================================================================================================================================================================================================================
       Package                                            Architecture                                     Version                                                Repository                                                               Size
      ==========================================================================================================================================================================================================================================
      Installing:
       nvme-cli                                           x86_64                                           2.11-7.el9_6                                           rhel-9-for-x86_64-baseos-rpms                                           1.0 M
      
      Transaction Summary
      ==========================================================================================================================================================================================================================================
      Install  1 Package
      
      Total download size: 1.0 M
      Installed size: 6.0 M
      Downloading Packages:
      nvme-cli-2.11-7.el9_6.x86_64.rpm                                                                                                                                                                          2.3 MB/s | 1.0 MB     00:00
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Total                                                                                                                                                                                                     2.3 MB/s | 1.0 MB     00:00
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
        Preparing        :                                                                                                                                                                                                                  1/1
        Installing       : nvme-cli-2.11-7.el9_6.x86_64                                                                                                                                                                                     1/1
        Running scriptlet: nvme-cli-2.11-7.el9_6.x86_64                                                                                                                                                                                     1/1
      Created symlink /etc/systemd/system/default.target.wants/nvmefc-boot-connections.service → /usr/lib/systemd/system/nvmefc-boot-connections.service.
      
        Verifying        : nvme-cli-2.11-7.el9_6.x86_64                                                                                                                                                                                     1/1
      Installed products updated.
      
      Installed:
        nvme-cli-2.11-7.el9_6.x86_64
      
      Complete!
      [root@ceph-rl-2gw-zu68ek-node6 ~]# ls /etc/nvme
      discovery.conf  hostid  hostnqn
      [root@ceph-rl-2gw-zu68ek-node6 ~]# cat /etc/redhat-release
      Red Hat Enterprise Linux release 9.6 (Plow)
      
      
      
      
      On RHEL -10,
      [root@ceph-rahul9-0-k4a8f1-node4 ~]# cat /etc/redhat-release
      Red Hat Enterprise Linux release 10.0 (Coughlan)
      [root@ceph-rahul9-0-k4a8f1-node4 ~]# ls /etc/nvme
      ls: cannot access '/etc/nvme': No such file or directory
      [root@ceph-rahul9-0-k4a8f1-node4 ~]# dnf install nvme-cli -y
      Updating Subscription Management repositories.
      
      This system has release set to 10.0 and it receives updates only for this release.
      
      Last metadata expiration check: 3:07:08 ago on Fri Nov 14 08:16:15 2025.
      Dependencies resolved.
      ==========================================================================================================================================================================================================================================
       Package                                           Architecture                                    Version                                                  Repository                                                               Size
      ==========================================================================================================================================================================================================================================
      Installing:
       nvme-cli                                          x86_64                                          2.11-6.el10_0                                            rhel-10-for-x86_64-baseos-rpms                                          1.0 M
      
      Transaction Summary
      ==========================================================================================================================================================================================================================================
      Install  1 Package
      
      Total download size: 1.0 M
      Installed size: 5.9 M
      Downloading Packages:
      nvme-cli-2.11-6.el10_0.x86_64.rpm                                                                                                                                                                         2.2 MB/s | 1.0 MB     00:00
      ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Total                                                                                                                                                                                                     2.2 MB/s | 1.0 MB     00:00
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
        Preparing        :                                                                                                                                                                                                                  1/1
        Installing       : nvme-cli-2.11-6.el10_0.x86_64                                                                                                                                                                                    1/1
        Running scriptlet: nvme-cli-2.11-6.el10_0.x86_64                                                                                                                                                                                    1/1
      Created symlink '/etc/systemd/system/default.target.wants/nvmefc-boot-connections.service''/usr/lib/systemd/system/nvmefc-boot-connections.service'.
      
      Installed products updated.
      
      Installed:
        nvme-cli-2.11-6.el10_0.x86_64
      
      Complete!
      [root@ceph-rahul9-0-k4a8f1-node4 ~]# ls /etc/nvme
      discovery.conf
      [root@ceph-rahul9-0-k4a8f1-node4 ~]# nvme gen-hostnqn > /etc/nvme/hostnqn
      [root@ceph-rahul9-0-k4a8f1-node4 ~]#  uuidgen > /etc/nvme/hostid
      [root@ceph-rahul9-0-k4a8f1-node4 ~]# ls /etc/nvme
      discovery.conf  hostid  hostnqn
      

              mlombard@redhat.com Maurizio Lombardi
              rlepaksh Rahul Lepakshi
              Maurizio Lombardi Maurizio Lombardi
              Yi Zhang Yi Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: