Marcelo de Castro Loebens
b3530f1844
Add cert renewal in enrollment init timeout
In some cases, the runtime configuration that is supposed to install the ssl certificate containing the new OAM IP in /etc/ssl/private/server-cert.pem is not working during enrollment, when the REST API/GUI certificate is updated. This change adds a remediation for the enrollment failure when this happens, triggering another renewal of the REST API/GUI certificate. It also increases the retries before trying to renew the cert from 30 to 45, and the timeout before the sysinv API is ready after the first reboot from 900s to 1020s. Test plan: PASS: Verify that renewal tasks are triggered when REST API/GUI cert is not valid (curl command fails). Verify that fail message is shown when certificate doesn't exist. PASS: Enroll system as subcloud. Closes-bug: 2091437 Change-Id: Ibd549cc8c2d0f07db4ac6d7889803e806a6bb7a2 Signed-off-by: Marcelo de Castro Loebens <Marcelo.DeCastroLoebens@windriver.com>
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
Description
Languages
Jinja
82.3%
Python
13.7%
Shell
3.9%