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

BZ#2274174 os_brick.initiator.connectors.nvmeof raises warning log messages when running inside container like glance

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • python-os-brick-4.3.4-17.1.20240607160815.cf69f92.el9ost
    • None
    • Moderate

      Description of problem:

      Warnings are logged when os_brick is initialized inside some RHOSP container. For example, the following warning message was logged when copying image from volume
      :
      2024-04-08 18:06:25.177 20 WARNING os_brick.initiator.connectors.nvmeof [req-UUID ID1 ID2 - default default] Process execution error in _get_host_uuid: Unexpected error while running command.
      Command: blkid overlay -s UUID -o value
      Exit code: 2
      Stdout: ''
      Stderr: '': oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.

      It is possible to reproduce https://github.com/openstack/os-brick/blob/unmaintained/wallaby/os_brick/initiator/connectors/nvmeof.py#L98-L111 manually:

      [root@overcloud-controller0 ~]# podman exec -it glance_api_internal bash
      bash-5.1$ findmnt / -n -o SOURCE
      overlay
      bash-5.1$ blkid overlay -s UUID -o value
      bash-5.1$ echo $?
      2

      There is an upstream bug https://bugs.launchpad.net/os-brick/+bug/2045557

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

      How reproducible:
      Please see description

      Actual results:
      Warning is logged because _get_host_uuid() logic is not ready to process overlayfs

      Expected results:
      _get_host_uuid() is able to process overlayfs and proceed

              brosmait@redhat.com Brian Rosmaita
              jira-bugzilla-migration RH Bugzilla Integration
              Yosi Ben Shimon Yosi Ben Shimon
              rhos-dfg-storage-squad-cinder
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: