Skip to content

vSphere IPI Installation for vCenter Username Error Incorrect #10398

@timway

Description

@timway

When running an openshift-install for an IPI install of vSphere if you omit the username you will get an error that contains:

ERROR failed to fetch Metadata: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: [platform.vsphere.vcenters[0].username: Required value: must specify the username

The above error implies the key should be username but after inspecting https://github.com/openshift/installer/blame/release-4.21/pkg/types/vsphere/platform.go#L306 I noticed it needed to be user. Possibly:

allErrs = append(allErrs, field.Required(fldPath.Index(index).Child("user"), "must specify the user"))

It appears the error text in https://github.com/openshift/installer/blob/release-4.21/pkg/types/vsphere/validation/platform.go#L145-L147 is the source of the confusion.

platform:
  vsphere:
    vcenters:
      - ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions