Uploaded image for project: 'Red Hat Workload Availability'
  1. Red Hat Workload Availability
  2. RHWA-656

SBR | Operator default image path is incorrect

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      When creating an 'SBDConfig' without specifying an image, the Operator injects an invalid default image path from its environment variables.

      Cause: Attempting to inject an invalid default image path from its environment variables, causes the agent pods to fail permanently with 'ImagePullBackOff' and 'ErrImagePull'.
      Consequence: The installation does not work out of the box.
      Fix: Specify 'spec.image' explicitly in the 'SBDConfig' and use a valid image, such as, 'registry.redhat.io/workload-availability/storage-base-remediation-agent-rhel9:v0.1.0'.
      Result: The default image path is correct and the installation works out of the box.
      Show
      When creating an 'SBDConfig' without specifying an image, the Operator injects an invalid default image path from its environment variables. Cause: Attempting to inject an invalid default image path from its environment variables, causes the agent pods to fail permanently with 'ImagePullBackOff' and 'ErrImagePull'. Consequence: The installation does not work out of the box. Fix: Specify 'spec.image' explicitly in the 'SBDConfig' and use a valid image, such as, 'registry.redhat.io/workload-availability/storage-base-remediation-agent-rhel9:v0.1.0'. Result: The default image path is correct and the installation works out of the box.
    • Bug Fix
    • In Progress
    • Important

      When creating an SBDConfig without specifying an image, the Operator injects a default image path from its environment variables. This default path is invalid, causing the Agent pods to fail permanently with ImagePullBackOff / ErrImagePull.

      Investigation reveals two errors in the default path registry.redhat.io/workload-availability/sbd-agent:latest:

      1. Repository Name Mismatch: The operator attempts to pull from sbd-agent, but the correct repository in the Red Hat Registry is storage-base-remediation-agent-rhel9.
      2. Tag Mismatch: The operator defaults to the :latest tag. The official repository does not publish a latest tag; only specific version tags (e.g., v0.1.0) are available.

       

       

      Steps to Reproduce:

      1. Install SBD Operator v0.1.0.
      2. Apply a default SBDConfig (do not specify spec.image).
      3. Wait for the Operator to reconcile and create the DaemonSet.
      4. Observe the image URL in the sbd-agent pods.

      Expected Result: The default image path should point to a valid, pullable image (e.g., registry.redhat.io/workload-availability/storage-base-remediation-agent-rhel9:v0.1.0) so that the installation works out of the box.

      Actual Result: The pods try to pull registry.redhat.io/workload-availability/sbd-agent:latest and fail with: failed to pull and unpack image ...: repository name not found to exist

      Evidence: Pod events showing the failure on the default path:

      Warning  Failed     ...  kubelet  Failed to pull image "registry.redhat.io/workload-availabilit
      

              mshitrit@redhat.com Michael Shitrit
              rh-ee-malter Maxim Alter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: