Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for nova-cc charm ssh known_hosts fail #758

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
checks:
has_error_log:
input: var/log/juju/unit-nova-cloud-controller-*.log
expr: '[\d-]+ [\d:]+ ERROR .+ Could not obtain SSH host key from \S+: reason: Command ''\[''ssh-keyscan'', ''-H'', ''-t'', ''rsa'', ''([\d.:\[\]]+)''\]'' returned non-zero exit status 1.'
constraints:
search-result-age-hours: 168 # 7 days
conclusions:
known_hosts_failed:
decision: has_error_log
raises:
type: OpenstackWarning
message: >-
The nova-cloud-controller charm on this host has failed to populate the
ssh known_hosts for one or more nova-compute unit. A common cause is
when this unit cannot reach the remote compute host on the network for
which it is trying to add the host/address. Please check
that this host is able to reach host {remote}.
format-dict:
remote: '@checks.has_error_log.requires.results_group_1:comma_join'
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
data-root:
files:
var/log/juju/unit-nova-cloud-controller-*.log: |
2023-10-19 13:27:37 ERROR unit.nova-cloud-controller/0.juju-log server.go:316 Could not obtain SSH host key from 10.11.12.2: reason: Command '['ssh-keyscan', '-H', '-t', 'rsa', '10.11.12.2']' returned non-zero exit status 1.
raised-issues:
OpenstackWarning: >-
The nova-cloud-controller charm on this host has failed to populate the ssh
known_hosts for one or more nova-compute unit. A common cause is when this
unit cannot reach the remote compute host on the network for which it is
trying to add the host/address. Please check that this host is able to
reach host 10.11.12.2.
Loading