Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1776272

Summary: [OSP] Installer fails without project_name
Product: OpenShift Container Platform Reporter: Pierre Prinetti <pprinett>
Component: InstallerAssignee: Mike Fedosin <mfedosin>
Installer sub component: OpenShift on OpenStack QA Contact: David Sanz <dsanzmor>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: low CC: akaris, arghosh, mfedosin
Version: 4.3.0   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-04 11:16:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pierre Prinetti 2019-11-25 12:00:13 UTC
Description of problem:

The creation of the `install-config` fails if the `clouds.yaml` lacks the property `project_name`.

Version-Release number of the following components:

```
unreleased-master-2182-g8e75675f373d7ca46ec7fa4b4156ce75287735d1
built from commit 8e75675f373d7ca46ec7fa4b4156ce75287735d1
release image registry.svc.ci.openshift.org/origin/release:4.3
```

How reproducible:
reliably

Steps to Reproduce:
1. Have a clouds.yaml with project_id
2. Remove project_name from clouds.yaml if any
3. Run `openshift-install create install-config`
4. Follow the instructions
5. After "FlavourName", the wizard crashes while collection information prior to asking for the base domain.

Actual results:

```
> ./openshift-install --dir=foo create install-config
? SSH Public Key /Users/chris/.ssh/id_rsa.pub
? Platform openstack
? Cloud imke-test
? ExternalNetwork provider
? APIFloatingIPAddress 185.116.247.101
? FlavorName m1.medium
FATAL failed to fetch Install Config: failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed to generate asset "Platform": Authentication failed
```

Expected results:

* Wizard asking for BaseDomain
* Creation of install-config.yaml 

Additional info:
* Originally reported on Github by Christoph Glaubitz https://github.com/openshift/installer/issues/2710

Comment 1 David Sanz 2019-12-17 10:52:05 UTC
Verified on 4.4.0-0.nightly-2019-12-16-171529


[morenod@morenod-laptop tmp]$ tar xzvf openshift-install-linux-4.4.0-0.nightly-2019-12-16-171529.tar.gz 
README.md
openshift-install

$ ./openshift-install create cluster
? SSH Public Key /home/xx/.ssh/openshift-qe.pub
? Platform openstack
INFO Credentials loaded from file "/tmp/clouds.yaml" 
? Cloud openstack
? ExternalNetwork xxxx
? APIFloatingIPAddress xxxx
? FlavorName xxxx
? Base Domain xxxxx
? Cluster Name morenod
? Pull Secret [? for help]

Comment 2 Martin André 2020-01-09 15:33:17 UTC
*** Bug 1785705 has been marked as a duplicate of this bug. ***

Comment 4 errata-xmlrpc 2020-05-04 11:16:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0581