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

create image command erroneously logs that Base ISO was obtained from release

    XMLWordPrintable

Details

    • No
    • Agent Sprint 232, Agent Sprint 233
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, when running the `openshift-install agent create image` command to generate a bootable ISO image, the command output provided a message indicating a successful generated image even if the Agent Installer could not extract a base ISO image from the release image. With this update, the command output now produces an error message if the Agent-based Installer could not locate the base ISO image, which might be indicative of an issue with `releaseImage`. (link:https://issues.redhat.com/browse/OCPBUGS-9949[*OCPBUGS-9949*])
      Show
      Previously, when running the `openshift-install agent create image` command to generate a bootable ISO image, the command output provided a message indicating a successful generated image even if the Agent Installer could not extract a base ISO image from the release image. With this update, the command output now produces an error message if the Agent-based Installer could not locate the base ISO image, which might be indicative of an issue with `releaseImage`. (link: https://issues.redhat.com/browse/OCPBUGS-9949 [* OCPBUGS-9949 *])
    • Bug Fix
    • Done

    Description

      Description of problem:

      When creating an image for arm, i.e. using:
        architecture: arm64
      
      and running
      $ ./bin/openshift-install agent create image --dir ./cluster-manifests/ --log-level debug
      
      the output indicates the the correct base iso was extracted from the release:
      INFO Extracting base ISO from release payload     
      DEBUG Using mirror configuration                   
      DEBUG Fetching image from OCP release (oc adm release info --image-for=machine-os-images --insecure=true --icsp-file=/tmp/icsp-file347546417 registry.ci.openshift.org/origin/release:4.13) 
      DEBUG extracting /coreos/coreos-aarch64.iso to /home/bfournie/.cache/agent/image_cache, oc image extract --path /coreos/coreos-aarch64.iso:/home/bfournie/.cache/agent/image_cache --confirm --icsp-file=/tmp/icsp-file3609464443 registry.ci.openshift.org/origin/4.13-2023-03-09-142410@sha256:e3c4445cabe16ca08c5b874b7a7c9d378151eb825bacc90e240cfba9339a828c 
      INFO Base ISO obtained from release and cached at /home/bfournie/.cache/agent/image_cache/coreos-aarch64.iso 
      DEBUG Extracted base ISO image /home/bfournie/.cache/agent/image_cache/coreos-aarch64.iso from release payload 
      
      When in fact the ISO was not extracted from the release image and the command failed:
      ERROR failed to write asset (Agent Installer ISO) to disk: cannot generate ISO image due to configuration errors 
      FATAL failed to fetch Agent Installer ISO: failed to generate asset "Agent Installer ISO": provided device /home/bfournie/.cache/agent/image_cache/coreos-aarch64.iso does not exist

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

      4.13

      How reproducible:

      every time

      Steps to Reproduce:

      1. Set architecture: arm64  for all hosts in install-config.yaml 
      2. Run the openshift-install command as above
      3. See the log messages and the command fails
      

      Actual results:

      Invalid messages are logged and command fails

      Expected results:

      Command succeeds

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              bfournie@redhat.com Robert Fournier
              bfournie@redhat.com Robert Fournier
              Manoj Hans Manoj Hans
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: