-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
rhos-18.0.14 FR 4
-
None
Seeing the following error reported from some component-integration jobs:
TASK [osp.edpm.edpm_kernel : Reboot tasks] *************************************
fatal: [compute-cu2ka6em-0]: FAILED! => {"msg": "The conditional check 'not boot_file_entry_present' failed. The error was: error while evaluating conditional (not boot_file_entry_present): 'boot_file_entry_present' is undefined. 'boot_file_entry_present' is undefined\n\nThe error appears to be in '/usr/share/ansible/collections/ansible_collections/osp/edpm/roles/edpm_kernel/tasks/kernelargs.yml': line 213, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: Reboot tasks\n ^ here\n"}
fatal: [compute-cu2ka6em-1]: FAILED! => {"msg": "The conditional check 'not boot_file_entry_present' failed. The error was: error while evaluating conditional (not boot_file_entry_present): 'boot_file_entry_present' is undefined. 'boot_file_entry_present' is undefined\n\nThe error appears to be in '/usr/share/ansible/collections/ansible_collections/osp/edpm/roles/edpm_kernel/tasks/kernelargs.yml': line 213, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: Reboot tasks\n ^ here\n"}
We need to check if
boot_file_entry_present
is defined before attempting to use it. The bug can be triggered when reboot_required var is set, which could happen for various reasons as that can be a result of any other service signaling a reboot is required. In the case of the CI jobs, FIPS was enabled during the bootstrap service which set reboot_required to true, triggering this bug.
The CI job eventually succeeds though since when the ansible Job retries, it doesn't see enabling FIPS as a change the second time through, so it does not set reboot_required=true. However, that would leave FIPS not fully enabled as a reboot hasn't been done.
- is depended on by
-
OSPRH-20619 [CI] Automate CI for Swift Data Plane EDPM nodes
-
- In Progress
-
- links to
- mentioned on