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

create cluster-manifests fails when imageContentSources is missing

    XMLWordPrintable

Details

    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the `openshift-install agent create cluster-manifests` command required a non-empty list of `imageContentSources` in the `install-config.yaml` file. If no image content sources were supplied, the command generated the error `failed to write asset (Mirror Registries Config) to disk: failed to write file: open .: is a directory`. With this update, the command works whether or not the `imageContentSources` section of `install-config.yaml` file contains anything. (link:https://issues.redhat.com/browse/OCPBUGS-8384[*OCPBUGS-8384*])
      Show
      * Previously, the `openshift-install agent create cluster-manifests` command required a non-empty list of `imageContentSources` in the `install-config.yaml` file. If no image content sources were supplied, the command generated the error `failed to write asset (Mirror Registries Config) to disk: failed to write file: open .: is a directory`. With this update, the command works whether or not the `imageContentSources` section of `install-config.yaml` file contains anything. (link: https://issues.redhat.com/browse/OCPBUGS-8384 [* OCPBUGS-8384 *])
    • Bug Fix

    Description

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

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

      Invoking 'create cluster-manifests' fails when imageContentSources is missing in install-config yaml:

      $ openshift-install agent create cluster-manifests
      INFO Consuming Install Config from target directory
      FATAL failed to write asset (Mirror Registries Config) to disk: failed to write file: open .: is a directory

      install-config.yaml:

      apiVersion: v1alpha1
      metadata:
        name: appliance
      rendezvousIP: 192.168.122.116
      hosts:
        - hostname: sno
          installerArgs: '["--save-partlabel", "agent*", "--save-partlabel", "rhcos-*"]'
          interfaces:
           - name: enp1s0
             macAddress: 52:54:00:e7:05:72
          networkConfig:
            interfaces:
              - name: enp1s0
                type: ethernet
                state: up
                mac-address: 52:54:00:e7:05:72
                ipv4:
                  enabled: true
                  dhcp: true 

      Attachments

        Issue Links

          Activity

            People

              zabitter Zane Bitter
              openshift-crt-jira-prow OpenShift Prow Bot
              Manoj Hans Manoj Hans
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: