Subcloud installation fails because getting 5XX server error while storing barbican secret

Bug #2067097 reported by Hugo Nicodemos Brito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Hugo Nicodemos Brito

Bug Description

Brief Description

Subcloud installation fails because getting 5XX server error while storing barbican secret

Severity

Critical

Steps to Reproduce

Deploy the subcloud:

dcmanager subcloud add ...

Expected Behavior

Subcloud should be installed successfully

Actual Behavior

Subcloud installation is failing

Reproducibility

Yes

System Configuration

DC

Load info (eg: 2022-03-10_20-00-07)

[sysadmin@controller-0 ~(keystone_admin)]$ cat /etc/build.info
SW_VERSION="24.09"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="2024-05-22_19-00-22"
SRC_BUILD_ID="1998"

JOB="wrcp-master-debian"
BUILD_BY="jenkins"
BUILD_NUMBER="755"
BUILD_HOST="yow-wrcp-lx.wrs.com"
BUILD_DATE="2024-05-22 23:00:22 +0000"

Last Pass

Worked on the build:

BUILD_DATE="2024-05-07"

Timestamp/Logs

TASK [bootstrap/persist-config : Create Barbican secret for k8s registry if credentials exist] ***
Friday 24 May 2024 06:34:01 +0000 (0:00:00.013) 0:04:44.671 ************
fatal: [subcloud2]: FAILED! => changed=true
  cmd: source /etc/platform/openrc; openstack secret store -n k8s-registry-secret -p 'username:admin password:Li69nux*1234' -c 'Secret href' -f value
  delta: '0:00:06.217436'
  end: '2024-05-24 06:34:20.707764'
  msg: non-zero return code
  rc: 1
  start: '2024-05-24 06:34:14.490328'
  stderr: |-
    5xx Server error: b'<html>\n <head>\n <title>Internal Server Error</title>\n </head>\n <body>\n <h1><p>Internal Server Error</p></h1>\n \n </body>\n</html>\n'
    b'<html>\n <head>\n <title>Internal Server Error</title>\n </head>\n <body>\n <h1><p>Internal Server Error</p></h1>\n \n </body>\n</html>\n'
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
subcloud2 : ok=297 changed=124 unreachable=0 failed=1 skipped=240 rescued=0 ignored=0

Friday 24 May 2024 06:34:08 +0000 (0:00:06.702) 0:04:51.374 ************
===============================================================================

Log Dir:

NA

Alarms

NA

Test Activity

Feature Testing

Workaround

NA

Changed in starlingx:
assignee: nobody → Hugo Nicodemos Brito (hbrito)
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/+/920406
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/fc101416c81f74a20d207f3246c6eb0529fadf28
Submitter: "Zuul (22348)"
Branch: master

commit fc101416c81f74a20d207f3246c6eb0529fadf28
Author: Hugo Brito <email address hidden>
Date: Fri May 24 14:46:04 2024 -0300

    Create Keystone service and endpoints at bootstrap

    This commit creates the Keystone identity service and endpoints
    during keystone bootstrap configuration. This enables the Barbican
    service to create OpenStack secrets.

    Test Plan:
    PASS: Perform a complete deploy in a DC environment.
    PASS: Check that OpenStack secrets were created.
    PASS: Verify Barbican secrets can get on the subcloud with the correct
    payload.

    Closes-bug: 2067097

    Change-Id: I3e76bb1ccdf0fd24adbbb714083fb6381d9290f9
    Signed-off-by: Hugo Brito <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
tags: added: stx.10.0 stx.config 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.