Ansible bootstrap of subcloud failed on CentOS

Bug #1989504 reported by Li Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Li Zhu

Bug Description

Brief Description
-----------------
Ansible bootstrap of subcloud failed on CentOS.

Severity
--------
Critical: System/Feature is not usable after the defect

Steps to Reproduce
------------------
Deploy a distributed cloud with at least 1 subcloud using a CentOS iso.

Expected Behavior
------------------
The ansible bootstrap of subcloud is successfully completed.

Actual Behavior
------------------
The ansible bootstrap of subcloud fails.

Reproducibility
------------------
100% Reproducible

System Configuration
------------------
DC.

Load info (eg: 2022-03-10_20-00-07)
------------------
controller-0:~$ cat /etc/build.info
###

Wind River Cloud Platform
    Release 22.12
###
    Wind River Systems, Inc.
###
SW_VERSION="22.12"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="2022-09-10_18-00-09"
SRC_BUILD_ID="1397"

JOB="WRCP_Dev_Build"
BUILD_BY="jenkins"
BUILD_NUMBER="1397"
BUILD_HOST="yow-cgts4-lx.wrs.com"
BUILD_DATE="2022-09-10 18:07:57 -0400"
controller-0:~$

Last Pass
----------
September 8, 2022

Timestamp/Logs
--------------
From ansible log of subcloud bootstrap:

TASK [bootstrap/apply-manifest : Write required system controller keystone user and project Ids to static hieradata if it's subcloud] ***
Tuesday 13 September 2022 12:38:57 +0000 (0:00:00.042) 0:01:21.518 *****
fatal: [subcloud1]: FAILED! =>
  msg: the inline if-expression on line 1 evaluated to false and no else section was defined.

PLAY RECAP *********************************************************************
subcloud1 : ok=149 changed=32 unreachable=0 failed=1

Alarms
---------
N/A.

Test Activity
------------------
Developer Testing.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-playbooks (master)

Reviewed: https://review.opendev.org/c/starlingx/ansible-playbooks/+/857510
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/d8c96daeecd5e7e1a431c0a1ad61a4f5e6e41dce
Submitter: "Zuul (22348)"
Branch: master

commit d8c96daeecd5e7e1a431c0a1ad61a4f5e6e41dce
Author: Li Zhu <email address hidden>
Date: Tue Sep 13 15:58:27 2022 -0400

    CentOS: Fix no else section defined in the inline if-expression

    The else section was not defined in the inline if-expression in
    "Write required system controller keystone user and project Ids
    to static hieradata if it's subcloud" task in the
    apply_bootstrap_manifest ansible playbook for CentOS.

    This error was caused by the previous code merge of
    "Debian: Fix openstack secret get failure"
    (https://review.opendev.org/c/starlingx/ansible-playbooks/+/856299).

    Test Plan:
    PASS: Successfully run bootstrap of subcloud on CentOS.

    Closes-Bug: 1989504

    Signed-off-by: Li Zhu <email address hidden>
    Change-Id: I354fbe77b8c605cbb8f0c7f0766c9c67de38374b

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Li Zhu (lzhu1)
importance: Undecided → Medium
tags: added: stx.8.0 stx.distcloud
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.