Fix certificate ssl_ca cert install by dc-orch sync
This commit fixes an issue where trying to install the same certificate
again results in a 'Cannot install certificate with same subject'. That
is incorrect and should be thrown only for a different certificate with
the same subject.
Test Plan:
PASS: Manage a subcloud and verify that it's able to synchronize certs
without the 'Cannot install certificate with same subject' error
PASS: Try to install the same certificate multiple times and verify
that no 'Cannot install certificate with same subject' error
is returned
PASS: Try to install two different certificates with same subjects and
verify that a 'Cannot install certificate with same subject' error
is returned
Closes-Bug: 1990007
Signed-off-by: Rei Oliveira <email address hidden>
Change-Id: I17861145f20b8e1ef61896c3271a96a28fe9ded2
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/858149 /opendev. org/starlingx/ config/ commit/ 397e708a42280f6 f8c001981320b99 e112a9ce37
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 397e708a42280f6 f8c001981320b99 e112a9ce37
Author: Rei Oliveira <email address hidden>
Date: Fri Sep 16 11:54:02 2022 -0300
Fix certificate ssl_ca cert install by dc-orch sync
This commit fixes an issue where trying to install the same certificate
again results in a 'Cannot install certificate with same subject'. That
is incorrect and should be thrown only for a different certificate with
the same subject.
Test Plan:
PASS: Manage a subcloud and verify that it's able to synchronize certs
without the 'Cannot install certificate with same subject' error
PASS: Try to install the same certificate multiple times and verify
that no 'Cannot install certificate with same subject' error
is returned
PASS: Try to install two different certificates with same subjects and
verify that a 'Cannot install certificate with same subject' error
is returned
Closes-Bug: 1990007
Signed-off-by: Rei Oliveira <email address hidden> 1ef61896c3271a9 6a28fe9ded2
Change-Id: I17861145f20b8e