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

create cluster-manifests fails when imageContentSources is missing

    XMLWordPrintable

Details

    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      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 would fail with the error "failed to write asset (Mirror Registries Config) to disk: failed to write file: open .: is a directory".

      This has been fixed, so the `openshift-install agent create cluster-manifests` command works whether or not the imageContentSources section of install-config.yaml contains anything.
      Show
      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 would fail with the error "failed to write asset (Mirror Registries Config) to disk: failed to write file: open .: is a directory". This has been fixed, so the `openshift-install agent create cluster-manifests` command works whether or not the imageContentSources section of install-config.yaml contains anything.
    • Bug Fix

    Description

      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: