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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 4.19.z
    • 4.19.0
    • oc / node-image
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Proposed
    • Bug Fix
    • Hide
      Before this update, if the cluster was created without an SSH key, creating a node image with the `oc adm node-image create` command failed due to the absence of the `99-worker-ssh` machine configuration. This prevented worker node image creation. With this release, the `machineConfig` for `worker-ssh` has been created, enabling node image creation. As a result, node image creation for worker nodes now succeeds. (link:https://issues.redhat.com/browse/OCPBUGS-60832[OCPBUGS-60832])
      Show
      Before this update, if the cluster was created without an SSH key, creating a node image with the `oc adm node-image create` command failed due to the absence of the `99-worker-ssh` machine configuration. This prevented worker node image creation. With this release, the `machineConfig` for `worker-ssh` has been created, enabling node image creation. As a result, node image creation for worker nodes now succeeds. (link: https://issues.redhat.com/browse/OCPBUGS-60832 [ OCPBUGS-60832 ])
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-60600. The following is the description of the original issue:

      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:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: