nrpe_check_ovn_certs shows cert expiry as WARNING
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-ovn-central |
Fix Released
|
Undecided
|
Seyeong Kim | ||
charm-ovn-chassis |
Fix Released
|
Undecided
|
Seyeong Kim |
Bug Description
We discovered recently that the script "check_
It can be seen in the below excerpts from the script "check_
if remaining_days <= 0:
if remaining_days < 10:
except Exception as exc:
message = "failed to check cert '{}': {}".format(cert, str(exc))
While it should return:
- exit_code = 2 (CRITICAL) for remaining_days < 10 and
- exit_code = 3 (UNKNOWN) for exception case.
Rationale: Keeping the alert as WARNING for "remaining_days < 10" case, keeps it under the radar until there's less than 1 day left to the certificate expiry.
Similar is the case for exception case.
Expectation: "exit_code" returned should be updated as per above request.
ovn charms (ovn-central and ovn-chassis): 22.03/stable rev 165
same is the case for neutron-
tags: | added: sts |
Changed in charm-ovn-central: | |
assignee: | nobody → Seyeong Kim (seyeongkim) |
Changed in charm-ovn-chassis: | |
assignee: | nobody → Seyeong Kim (seyeongkim) |
Changed in charm-ovn-central: | |
status: | New → In Progress |
Changed in charm-ovn-chassis: | |
status: | New → In Progress |
status: | In Progress → New |
Changed in charm-ovn-chassis: | |
status: | New → In Progress |
Changed in charm-ovn-central: | |
status: | In Progress → Fix Released |
Changed in charm-ovn-chassis: | |
status: | In Progress → Fix Released |
In addition to the issue mentioned by Kamal, the checks on the CHASSIS are wrong here,
56: for cert in ['/etc/ ovn/cert_ host', '/etc/ovn/ ovn-central. crt']:
It should be checking for /etc/ovn/ ovn-chassis. crt