Commit 23ae2cb
Fixes #38468 - Reset HostProxyInvocations when rebuilding a host
Rebuilding a provisioned host in-place generates new host ssh keys, but
does not reset the host-proxy mapping in the host_proxy_invocations
table. As a result, the ssh keys are not pruned from the known hosts
proxy file, and REX jobs won't succeed on the host because of the
offending keys. Resetting host-proxy mapping solves this issue.1 parent c42da6c commit 23ae2cb
File tree
1 file changed
+6
-0
lines changed- app/models/concerns/foreman_remote_execution
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
0 commit comments