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

[RFE] Have OCI hook errors print to podman output

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

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.6
    • podman
    • None
    • Low
    • rhel-container-tools
    • 3
    • False
    • False
    • Hide

      None

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

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

      • When using OCI hooks with podman if they error they do not print a clear error message to the podman output, only "Error: OCI runtime error: crun: error executing hook `/usr/local/bin/test-hook` (exit code: 1)" and you can not set annotation to log to podman output.

      What is the impact of this issue to you?

      • Customer would like a clear indication of what failed with the hook when running a container with an OCI hook

      Please provide the package NVR for which the bug is seen:
      podman-5.4.0-13.el9_6.x86_64

      How reproducible is this bug?:

      • Always

      Steps to reproduce

      1. Configure an OCI hook to use with a container
      2. Have hook fail and observe error

      Expected results

      • Customer would like a clear indication of why the hook failed

      Actual results

      • A generic error that does not indicate why the hook failed.

              bbaude@redhat.com Brent Baude
              rhn-support-bhenders Blake Henderson
              Container Runtime Eng Bot Container Runtime Eng Bot
              Container Runtime Bugs Bot Container Runtime Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: