tripleo-ci-centos-9-scenario001-standalone fails 'dict object' has no attribute 'BACKUP_PROG_CRYPT_ENABLED'

Bug #1965528 reported by John Fulton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

The following was observed in the tripleo-ci-centos-9-scenario001-standalone ansible.log [1]

2022-03-18 00:33:22,715 p=20104 u=root n=ansible | 2022-03-18 00:33:22.714230 | fa163e31-3463-22fb-9895-000000000f1e | FATAL | Delete the encrypt key line if encrypted backup is disabled | standalone | error={"msg": "The conditional check 'not (tripleo_backup_and_restore_local_config[\"BACKUP_PROG_CRYPT_ENABLED\"] | bool)' failed. The error was: error while evaluating conditional (not (tripleo_backup_and_restore_local_config[\"BACKUP_PROG_CRYPT_ENABLED\"] | bool)): 'dict object' has no attribute 'BACKUP_PROG_CRYPT_ENABLED'\n\nThe error appears to be in '/usr/share/ansible/roles/backup_and_restore/tasks/setup_rear.yml': line 138, 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: Delete the encrypt key line if encrypted backup is disabled\n ^ here\n"}

Maybe this was introduced by [2]?

[1] https://fc1117959d9ea26fc99f-fc178b78e746168ff9a6f79c77a7e799.ssl.cf2.rackcdn.com/832701/2/gate/tripleo-ci-centos-9-scenario001-standalone/2f02c0e/logs/undercloud/home/zuul/ansible.log

[2] https://review.opendev.org/c/openstack/tripleo-ansible/+/832785

Ronelle Landy (rlandy)
Changed in tripleo:
milestone: xena-rc1 → yoga-3
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
Changed in tripleo:
status: Triaged → In Progress
Ronelle Landy (rlandy)
tags: added: promotion-blocker
Revision history for this message
Marios Andreou (marios-b) wrote :

testing there for scenario1 on john's patch (tripleo-ansible/+/834279) https://review.opendev.org/c/openstack/tripleo-heat-templates/+/834280

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/834279
Committed: https://opendev.org/openstack/tripleo-ansible/commit/81cfc98897767f83438b6daee2ee4ce01e056f0e
Submitter: "Zuul (22348)"
Branch: master

commit 81cfc98897767f83438b6daee2ee4ce01e056f0e
Author: John Fulton <email address hidden>
Date: Fri Mar 18 07:52:07 2022 -0400

    Do not reference backup/restore config unless defined

    Before referencing BACKUP_PROG_CRYPT_ENABLED key in
    tripleo_backup_and_restore_local_config ensure first
    that it is defined.

    Change-Id: Ie83f18e356aa4a51eecb2214449db713ddf9d99b
    Closes-Bug: #1965528

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 4.2.0

This issue was fixed in the openstack/tripleo-ansible 4.2.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.