Comment 1 for bug 2047652

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/+/900424
Committed: https://opendev.org/starlingx/ansible-playbooks/commit/9b1197cc4cef9dcc85dd7eda639ad4d7a5da0479
Submitter: "Zuul (22348)"
Branch: master

commit 9b1197cc4cef9dcc85dd7eda639ad4d7a5da0479
Author: Marcelo Loebens <email address hidden>
Date: Wed Nov 8 11:13:10 2023 -0400

    Fix privilege issue in platform certificates update

    When 'localhost' isn't included in the target_list parameter of
    update_platform_certificates.yml playbook, there is an error at the
    end of the execution caused by 'localhost' not being able to escalate
    to handle the files used to install the CA certificates as trusted.

    This commit includes code to acquire the required variables for
    privilege escalation for 'localhost'.

    Test Plan:
    PASS: In DC w/ SX sc, executed update_platform_certificates.yml
          passing 'target_list=all_online_subclouds'.

    PASS: In DC w/ SX sc, executed update_platform_certificates.yml
          passing 'target_list=locahost,all_online_subclouds'.

    Closes-bug: 2047652

    Change-Id: I9cc64a0e2e5c5573ac34cb8e2488bb0b688475d9
    Signed-off-by: Marcelo Loebens <email address hidden>