Closed arunabhabanerjee closed 3 years ago
It works with certain OCP version. I tried with 4.6.21, 4.6.9 and it failed, but when I tried with 4.6.1 it works. Any reason behind this?
You will need to add the other (failing) versions to: openshift-auto-upi/inventory/group_vars/all/software/openshift_installer.yml openshift-auto-upi/inventory/group_vars/all/software/openshift_client.yml
Only after you add them to the list, you can use them.
Thank you for your help. This time it works fine. Now I am stuck with this error. Could you please help?
`TASK [openshift_common : Download CoreOS image from https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.8/rhcos-4.6.8-x86_64-openstack.x86_64.qcow2.gz] ***** task path: /root/openshift-auto-upi/roles/openshift_common/tasks/download_coreos.yml:16
That one is probable a bug in Ansible that's been already fixed in the meantime. There are two ways to resolve this.
checksum: 'sha256:{{ openshift_installer.sha256sum_url }}'
I improved the Ansible scripts. Users will be able to specify arbitrary OpenShift version: https://github.com/noseka1/openshift-auto-upi/commit/662bff2f94335eb0286c7d69ea77476033a4acb9
Thanks for reporting this issue!
While running clients.yml ansible playbook I facing this issue. Please help.
`TASK [clients : Download openshift-install archive {{ openshift_installer.archive_url }}] **** task path: /root/openshift-auto-upi/roles/clients/tasks/main.yml:8 fatal: [helper]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: {u'sha256sum_url': u'{{ openshift_installer_versions[openshift_install_config.distribution][openshift_install_config.version].sha256sum_url }}', u'archive_url': u'{{ openshift_installer_versions[openshift_install_config.distribution][openshift_install_config.version].archive_url }}'}: 'dict object' has no attribute u'4.6.23'\n\nThe error appears to be in '/root/openshift-auto-upi/roles/clients/tasks/main.yml': line 8, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Download openshift-install archive {{ openshift_installer.archive_url }}\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n" }
PLAY RECAP *** helper : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0`