Go to file
Marcelo de Castro Loebens f7470252cb Update secrets with registry credentials
As part of rehoming, the keystone password for sysinv is updated for
the new SystemController value. A callback then comes from keystone
to sysinv in which the secrets that contain the password used to
authenticate to the docker registry for each namespace are updated.

However, since the playbook needs to restart sysinv right away,
there is a racing condition between this callback and the sysinv
restart. To prevent this, this change adds a script that makes a
RPC call to sysinv, to run the audit that updates the credentials
in the secrets in a synchronous way (w/o waiting for the callback).

PASS: Rehome a SX subcloud
      Confirm that the registry secrets were updated

PASS: Enroll SX subcloud

Depends-on: https://review.opendev.org/c/starlingx/config/+/963219

Closes-bug: 2126680

Change-Id: If595916b87e2c0cbfce60721547ea74d6ac4b168
Signed-off-by: Marcelo de Castro Loebens <Marcelo.DeCastroLoebens@windriver.com>
2025-10-07 11:06:00 -04:00
2019-06-15 14:03:07 -05:00
2019-06-15 14:21:19 -05:00
2019-06-15 14:21:19 -05:00

stx-ansible-playbooks

StarlingX Bootstrap and Deployment Ansible1 Playbooks

Execution environment

  • Unix like OS (recent Linux based distributions, MacOS, Cygwin)
  • Python 3.8 and later

Additional Required Packages

In addition to the pakages listed in requirements.txt and test-requirements.txt, the following packages are required to run the playbooks remotely:

  • python3-pexpect
  • python3-ptyprocess
  • sshpass

Supported StarlingX Releases

The playbooks are compatible with StarlingX R8.0 and later.

Executing StarlingX Playbooks

Bootstrap Playbook

For instructions on how to set up and execute the bootstrap playbook from another host, please refer to the StarlingX Documentation2, at Installation Guides, section Configure controller-0 of the respective system deployment type.

Developer Notes

This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest3.

References


  1. https://docs.ansible.com/ansible/latest/installation_guide↩︎

  2. https://docs.starlingx.io↩︎

  3. https://opendev.org/starlingx/manifest.git↩︎

Description
StarlingX Ansible Playbooks
Readme 33 MiB
Languages
Jinja 73.5%
Python 16.9%
Shell 6.6%
Smarty 3%