openshift-ansible
openshift-ansible copied to clipboard
Set fact crio_latest fail on RHEL9
Description
Provide a brief description of your issue here. For example:
I'm trying to add 3 RHEL9 nodes to OpenShift using this repo. It fails with the following
TASK [openshift_node : Set fact crio_latest] **************************************************************
fatal: [duck001]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/Users/andrew/openshift-ansible/roles/openshift_node/tasks/install.yml': line 78, 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: Set fact crio_latest\n ^ here\n"}
fatal: [duck002]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/Users/andrew/openshift-ansible/roles/openshift_node/tasks/install.yml': line 78, 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: Set fact crio_latest\n ^ here\n"}
fatal: [duck003]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/Users/andrew/openshift-ansible/roles/openshift_node/tasks/install.yml': line 78, 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: Set fact crio_latest\n ^ here\n"}
Version
Please put the following version information in the code block indicated below.
- Your ansible version per
ansible --version
ansible [core 2.17.3] config file = /Users/andrew/openshift-ansible/ansible.cfg configured module search path = ['/Users/andrew/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /Users/andrew/openshift-ansible/.venv/lib/python3.12/site-packages/ansible ansible collection location = /Users/andrew/.ansible/collections:/usr/share/ansible/collections executable location = /Users/andrew/openshift-ansible/.venv/bin/ansible python version = 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 09:45:58) [Clang 14.0.6 ] (/Users/andrew/openshift-ansible/.venv/bin/python) jinja version = 3.1.4 libyaml = True
- The output of
git describe
openshift-ansible-4.6.0-202006231248.p0-151-gd15426bab
Steps To Reproduce
- [step 1]
- [step 2]
Expected Results
Describe what you expected to happen.
ansible-playbook -i inventory/hosts playbooks/scaleup.yml
Observed Results
Describe what is actually happening.
ansible-playbook -i inventory/hosts playbooks/scaleup.yml
TASK [openshift_node : Set fact crio_latest] **************************************************************
fatal: [duck001]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/Users/andrew/openshift-ansible/roles/openshift_node/tasks/install.yml': line 78, 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: Set fact crio_latest\n ^ here\n"}
fatal: [duck002]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/Users/andrew/openshift-ansible/roles/openshift_node/tasks/install.yml': line 78, 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: Set fact crio_latest\n ^ here\n"}
fatal: [duck003]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/Users/andrew/openshift-ansible/roles/openshift_node/tasks/install.yml': line 78, 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: Set fact crio_latest\n ^ here\n"}
PLAY RECAP ************************************************************************************************
duck001.hpc-l.com : ok=12 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
duck002.hpc-l.com : ok=10 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
duck003.hpc-l.com : ok=10 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
localhost
Additional Information
Provide any additional information which may help us diagnose the issue.
-
Your operating system and version Ansible running on OSX, Ansible running from within a venv, latest installed via pip. hosts to be configured are Red Hat Enterprise Linux release 9.4 (Plow)
-
Your inventory file (especially any non-standard configuration parameters)
[all:vars]
# SSH user, this user should allow ssh based auth without requiring a
# password. If using ssh key based auth, then the key should be managed by an
# ssh agent.
ansible_user=root
# If ansible_user is not root, ansible_become must be set to true and the
# user must be configured for passwordless sudo
#ansible_become=True
###############################################################################
# Required configuration variables #
###############################################################################
openshift_kubeconfig_path="~/.kube/config"
# For running RHEL worker upgrades
# [workers]
# mycluster-worker-[1:3].example.com
# For running RHEL worker scaleup
[new_workers]
# mycluster-worker-[4:6].example.com
duck001
duck002
duck003