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

ironic-inspector can't write on the shared volume

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 3
    • Important
    • None
    • None
    • Rejected
    • Metal Platform 278
    • 1
    • In Progress
    • Bug Fix
    • Hide
      Before the ironic-inspector container didn't have the correct permissions to access the shared volume and save the ramdisk logs making it impossible to troubleshoot any issue on the ironic agent side. We've fixed the permissions, the shared volume is accessible, and we can access the ramdisk logs correctly.
      Show
      Before the ironic-inspector container didn't have the correct permissions to access the shared volume and save the ramdisk logs making it impossible to troubleshoot any issue on the ironic agent side. We've fixed the permissions, the shared volume is accessible, and we can access the ramdisk logs correctly.
    • None
    • None
    • None
    • None

      Description of problem:

          ironic-inspector can't write on the shared volume

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

          

      How reproducible:

          run any deployment or CI job using ironic-inspector

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          ironic-inspector tries to create the ramdisk log dir but it fails
      
      directly from the runironic-inspector script:
      + mkdir -p /shared/log/ironic-inspector/ramdisk
      mkdir: cannot create directory '/shared/log/ironic-inspector': Permission denied
      
      from the ironic-inspector logs:
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process [-] [node: 65590eb0-a5be-4eb0-bf57-7372c238ae3b BMC 192.168.12.144] Could not store the ramdisk logs: PermissionError: [Errno 13] Permission denied: '/shared/log/ironic-inspector'
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process Traceback (most recent call last):
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process   File "/usr/lib/python3.9/site-packages/ironic_inspector/process.py", line 68, in _store_logs
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process     os.makedirs(CONF.processing.ramdisk_logs_dir)
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process   File "/usr/lib64/python3.9/os.py", line 215, in makedirs
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process     makedirs(head, exist_ok=exist_ok)
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process   File "/usr/lib64/python3.9/os.py", line 225, in makedirs
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process     mkdir(name, mode)
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process PermissionError: [Errno 13] Permission denied: '/shared/log/ironic-inspector'
      2025-10-16T17:09:36.981556481Z 2025-10-16 17:09:36.980 1 ERROR ironic_inspector.process [00m
      
      

       

      Expected results:

          

      Additional info:

          

              rpittau@redhat.com Riccardo Pittau
              rpittau@redhat.com Riccardo Pittau
              Jad Haj Yahya
              None
              Jad Haj Yahya Jad Haj Yahya
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: