Comment 2 for bug 2051880

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to utilities (master)

Reviewed: https://review.opendev.org/c/starlingx/utilities/+/907358
Committed: https://opendev.org/starlingx/utilities/commit/8d7d74f97c3d2890d09fe6b2971260a091065d54
Submitter: "Zuul (22348)"
Branch: master

commit 8d7d74f97c3d2890d09fe6b2971260a091065d54
Author: amantri <email address hidden>
Date: Wed Jan 31 15:58:39 2024 -0500

    Fix WRA cert info in the show-certs.sh output

    When fgrep'ing for "ca.crt","ext-ca.crt" in the WRA secret "mon-elastic-
    services-secrets" it is finding matches for "ca.crt:","ca.crt-helm:" and
    "ext-ca.crt:","ext-ca.crt-helm:" respectively, this fails an if clause
    where it checks whether it is managed by cert-manager and wrongly
    displaying the renewal as "Manual" instead of "Automatic",this fix
    addresses this issue by hardening the fgrep to look for "ca.crt:" and
    "ext-ca.crt:" respectively.

    Test Cases:
    PASS: Run "show-certs.sh" script and verify that all information for WRA
          certs properly in the output
    PASS: "show-certs.sh -k" script and verify that all information for WRA
          certs properly in the output

    Closes-Bug: 2051880

    Change-Id: I73af1ebd60a0c750569381b6ed67108f79dbb69e
    Signed-off-by: amantri <email address hidden>