Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Openshift role out by Ansible fails #156

Closed
Borrelworst opened this issue Feb 18, 2019 · 4 comments
Closed

Openshift role out by Ansible fails #156

Borrelworst opened this issue Feb 18, 2019 · 4 comments

Comments

@Borrelworst
Copy link

Borrelworst commented Feb 18, 2019

Describe the bug
OpenShift Container Platform Deployment using Ansible can never work.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy the platform according to the documentation
  2. Results in error: The error was: 'master_publicip_fqdn' is undefined

Expected behavior
A deployed cluster using Ansible

Additional context
The problem here is that in the playbook a new play is started on the Bastion host, while all variables were set on localhost. Hence the deployment fails as the Bastion is not aware of all the facts that were set on localhost. This should be easy to fix by referencing all facts that were set in de play before as follows:

{{ hostvars['localhost']['fact'] }}

It looks like this playbook has not been tested, as it could have never worked.

@Borrelworst
Copy link
Author

After solving this part of the playbook, it turns out that this playbook stops after deploying the infra: The installation of the Openshift container platform is never initiated. I guess that this still is Work in Progress, and it would be kind to add this to the documentation.

@haroldwongms
Copy link
Contributor

Sorry for the delay. I have been working on making a major update to the templates and scripts. I have already incorporated the fix from @geda10 into the latest version of the templates and have opened a PR with a major revision. Once this gets reviewed and we merge, all should be good.

@haroldwongms
Copy link
Contributor

Fixes now merged into master. Please try again and let me know if you still have issues.

@haroldwongms
Copy link
Contributor

Assuming this is fixed since no response provided.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants