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

node-image create command fails with "99-worker-ssh not found"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.19.0
    • oc / node-image
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      * Previously, the `oc adm node-image create` command failed to create an ISO image if the target cluster did not have a debug SSH key store in the `99-worker-ssh` config map, which is not a requirement for generating an image. With this update, the ISO image can successfully be created without this key store in the `99-worker-ssh` config map. (link:https://issues.redhat.com/browse/OCPBUGS-60600[OCPBUGS-60600])
      Show
      * Previously, the `oc adm node-image create` command failed to create an ISO image if the target cluster did not have a debug SSH key store in the `99-worker-ssh` config map, which is not a requirement for generating an image. With this update, the ISO image can successfully be created without this key store in the `99-worker-ssh` config map. (link: https://issues.redhat.com/browse/OCPBUGS-60600 [ OCPBUGS-60600 ])
    • None
    • None
    • None
    • None

      Description of problem:

      When running the node-image create command to generate a node image, the operation fails with the following error: "machineconfigs.machineconfiguration.openshift.io "99-worker-ssh" not found"
      This prevents the creation of the node image for worker nodes.

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

      4.19.7

      How reproducible:

      Always

      Steps to Reproduce:

          1. Setup OVE cluster
          2. Run oc adm node-image create --mac-address=$MAC_ADDRESS
          

      Actual results:

      2025-08-17T20:45:22Z [node-image create] Launching command
      2025-08-17T20:45:34Z [node-image create] Gathering additional information from the target cluster
      2025-08-17T20:45:34Z [node-image create] command execution failed. Reason: machineconfigs.machineconfiguration.openshift.io "99-worker-ssh" not found
      2025-08-17T20:45:34Z [node-image create] Saving report file

      Expected results:

      Node ISO should be created successfully.    

      Workaround:

      Create Machine config manually.
      
      apiVersion: machineconfiguration.openshift.io/v1
      kind: MachineConfig
      metadata:
        name: 99-worker-ssh
        labels:
          machineconfiguration.openshift.io/role: worker
      spec:
        config:
          ignition:
            version: 3.5.0
          passwd:
            users:
            - name: core
              sshAuthorizedKeys:
              - $KEY

              afasano@redhat.com Andrea Fasano
              rhn-support-mhans Manoj Hans
              None
              None
              Manoj Hans Manoj Hans
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: