Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-21709

conditional check 'not boot_file_entry_present' failed when a reboot is required (reboot_required=true)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • rhos-18.0.14 FR 4
    • edpm-ansible
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • rhos-ops-day1day2-edpm
    • None
    • Hide
      . The `edpm_bootstrap` Ansible role uses the undefined variable `boot_file_entry_present`

      When a data plane node is rebooted, the `edpm_bootstrap` service might fail with the error `The conditional check 'not boot_file_entry_present' failed.`. This error is seen in the Job log of the associated `edpm_bootstrap` pod triggered by the `OpenStackDataPlaneDeployment` for the `OpenStackDataPlaneNodeSet`.

      *Workaround:* In the `OpenStackDataPlaneNodeSet` custom resource under `nodeTemplate.ansibleVars`, set the `boot_file_entry_present` variable to the following:

      ----
      boot_file_entry_present: true
      ----
      Show
      . The `edpm_bootstrap` Ansible role uses the undefined variable `boot_file_entry_present` When a data plane node is rebooted, the `edpm_bootstrap` service might fail with the error `The conditional check 'not boot_file_entry_present' failed.`. This error is seen in the Job log of the associated `edpm_bootstrap` pod triggered by the `OpenStackDataPlaneDeployment` for the `OpenStackDataPlaneNodeSet`. *Workaround:* In the `OpenStackDataPlaneNodeSet` custom resource under `nodeTemplate.ansibleVars`, set the `boot_file_entry_present` variable to the following: ---- boot_file_entry_present: true ----
    • Known Issue
    • Proposed
    • Important

      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.

              jslagle@redhat.com James Slagle
              jslagle@redhat.com James Slagle
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: