Retry creating /var/run/platform in case there's
a exception when trying apply a runtime puppet manifest.
With the mechanism that was implemented here, when
an OSError occurs, the system will retry creating the
/var/run/platform path.
Test plan
PASS: AIO-SX fresh install, bootstrap and initial unlock.
PASS: Standard (2+2) fresh install, bootstrap and initial
unlock for all nodes.
PASS: Standard Upgrade from 21.12.
PASS: Simulate retry mechanism on a Standard system by
forcing an error on puppet-manifest-apply.sh
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/896458 /opendev. org/starlingx/ config/ commit/ a6a324b35fd2134 2e621360577f201 45bd2753a9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit a6a324b35fd2134 2e621360577f201 45bd2753a9
Author: Heron Vieira <email address hidden>
Date: Mon Sep 25 15:01:30 2023 -0300
Retry on a OSError for /var/run/platform
Retry creating /var/run/platform in case there's run/platform path.
a exception when trying apply a runtime puppet manifest.
With the mechanism that was implemented here, when
an OSError occurs, the system will retry creating the
/var/
Test plan manifest- apply.sh
PASS: AIO-SX fresh install, bootstrap and initial unlock.
PASS: Standard (2+2) fresh install, bootstrap and initial
unlock for all nodes.
PASS: Standard Upgrade from 21.12.
PASS: Simulate retry mechanism on a Standard system by
forcing an error on puppet-
Closes-bug: 2038562
Change-Id: Ia19404b852bfdf dd51a83070f8c3b 396e807b9d7
Signed-off-by: Heron Vieira <email address hidden>