installer: [OPENSTACK] platform.openstack.cloud parameter doesn't have an effect
Version
$ openshift-install version
./bin/openshift-install unreleased-master-542-g0e12f4527c25e9d1e2ddb31bea0ace0cb6d463ca-dirty
Platform openstack:
Having install-config.yaml containing following snippet
platform:
openstack:
cloud: psi-prod
When running installer, it fails on following error:
ERROR Error: Error refreshing state: 1 error occurred:
ERROR * provider.openstack: cloud openstack does not exist in clouds.yaml
ERROR
ERROR
ERROR
ERROR
ERROR Failed to read tfstate: open /tmp/openshift-install-721794227/terraform.tfstate: no such file or directory
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform
it is looking for cloud named openstack instead of psi-prod which I have selected in wizard.
See the troubleshooting documentation for ideas about what information to collect.
For example, if the installer fails to create resources, attach the relevant portions of your .openshift_install.log.
What you expected to happen?
Installer should respect values in configuration file.
How to reproduce it (as minimally and precisely as possible)?
run installer with custom cloud name.
Anything else we need to know?
I believe it is because of hard-coded CloudName as a constant in https://github.com/openshift/installer/blob/5455c4ac317900208a92983e35e6b87fc74fd354/pkg/asset/machines/openstack/machines.go#L27
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (3 by maintainers)
@lukas-bednar,
I got 60 days on the developer account. I’ll put the same version
Regards, Fábio Sbano