Project

General

Profile

Actions

Bug #25649

closed

Foreman Proxy does not remove Salt key for a host that has been deleted

Added by Joe Collette over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Smart Proxy
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Proxy logs shows a finger on the key when deleting a host from foreman, but the salt key remains.

Proxy log log during delete routine that is not removing key:
D, [2018-12-07T11:47:31.919152 ] DEBUG -- : close: 10.250.8.10:40258
D, [2018-12-07T11:50:11.589170 ] DEBUG -- : accept: 10.250.8.10:40388
D, [2018-12-07T11:50:11.591587 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2018-12-07T11:50:11.592141 04d43316] DEBUG -- : Found salt-key at /usr/bin/salt-key
D, [2018-12-07T11:50:11.592223 04d43316] DEBUG -- : Found salt at /usr/bin/salt
D, [2018-12-07T11:50:11.592284 04d43316] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2018-12-07T11:50:11.592331 04d43316] DEBUG -- : Executing /usr/bin/sudo u root /usr/bin/salt-key --finger-all --output=json
I, [2018-12-07T11:50:12.175202 04d43316] INFO -
: 10.250.8.10 - - [07/Dec/2018:11:50:12 -0500] "GET /salt/key HTTP/1.1" 200 165789 0.5832

Removing the salt-key for this host manually through the UI triggers the correct function.

D, [2018-12-07T11:50:42.166010 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2018-12-07T11:50:42.166687 04d43316] DEBUG -- : Found salt-key at /usr/bin/salt-key
D, [2018-12-07T11:50:42.166773 04d43316] DEBUG -- : Found salt at /usr/bin/salt
D, [2018-12-07T11:50:42.166836 04d43316] DEBUG -- : Found sudo at /usr/bin/sudo
D, [2018-12-07T11:50:42.166918 04d43316] DEBUG -- : about to execute: ["/usr/bin/sudo", "-u", "root", "/usr/bin/salt-key", "--yes", "-d", "test55"]
I, [2018-12-07T11:50:42.651034 04d43316] INFO -- : Result: The following keys are going to be deleted:
Accepted Keys:
test55
Key for minion test deleted.

I, [2018-12-07T11:50:42.651457 04d43316] INFO -- : 10.250.8.10 - - [07/Dec/2018:11:50:42 -0500] "DELETE /salt/key/test55 HTTP/1.1" 200 - 0.4850

Actions

Also available in: Atom PDF