Support YAML oslo policy file in software

The usage of JSON oslo policy files was deprecated in Victoria [1]. This
change converts the current policy files and their references to YAML.

The policy file was converted to YAML, using the tool provided by oslo
('oslopolicy-convert-json-to-yaml').

[1] https://docs.openstack.org/releasenotes/oslo.policy/victoria.html

Test Plan:
PASS: Deploy AIO-SX (over master branch).
      Check that the YAML files are present.
PASS: Check the YAML rules using the oslo tool 'oslopolicy-checker'.
PASS: Run 'software list' and 'software show starlingx-26.03.0'.

Story: 2011360
Task: 53168

Change-Id: Ic7e5f7cffc39c0f8ba0a9acb5230cd0951272d96
Signed-off-by: Marcelo de Castro Loebens <Marcelo.DeCastroLoebens@windriver.com>
This commit is contained in:
Marcelo de Castro Loebens
2025-11-20 16:24:27 -04:00
parent e818a8fd9e
commit a701f610d7
3 changed files with 2 additions and 4 deletions

View File

@@ -49,8 +49,8 @@ override_dh_install:
${ROOT}/etc/init.d/reset-boot-counter ${ROOT}/etc/init.d/reset-boot-counter
install -m 600 service-files/software.conf \ install -m 600 service-files/software.conf \
${ROOT}/etc/software/software.conf ${ROOT}/etc/software/software.conf
install -m 644 service-files/policy.json \ install -m 644 service-files/policy.yaml \
${ROOT}/etc/software/policy.json ${ROOT}/etc/software/policy.yaml
install -m 444 service-files/pmon-software-controller-daemon.conf \ install -m 444 service-files/pmon-software-controller-daemon.conf \
${PMONDIR}/software-controller-daemon.conf ${PMONDIR}/software-controller-daemon.conf
install -m 444 service-files/pmon-software-agent.conf \ install -m 444 service-files/pmon-software-agent.conf \

View File

@@ -1,2 +0,0 @@
{
}

View File