/uFailed to perform rollback on Remove SSH known hosts

Problem:
Unable to remove some hosts. Foreman shows an error message: “Failed to perform rollback on Remove SSH known hosts for xxxxxxxx - Dont know how to rollback drop_from_known_hosts”. This problem happens only with some hosts and I’m unable to figure out what’s wrong.

Expected outcome:
Host should be deleted without problems

Foreman and Proxy versions:
2.0.0

Foreman and Proxy plugin versions:

Distribution and version:
CentOS Linux release 7.8.2003

Other relevant data:
curl -s -k -u :*** -H “Accept: version=2,application/json” -X DELETE https://foreman/api/hosts/hrgspog1.mydomain.local
{
“error”: {“id”:1585,“errors”:{“base”:[“Failed to perform rollback on Remove SSH known hosts for - Dont know how to rollback drop_from_known_hosts”,“Failed to perform rollback on Remove SSH known hosts for - Dont know how to rollback drop_from_known_hosts”,“Failed to perform rollback on Remove SSH known hosts for - Dont know how to rollback drop_from_known_hosts”,“Failed to perform rollback on Remove SSH known hosts for hrgspog1.mydomain.local - Dont know how to rollback drop_from_known_hosts”]},“full_messages”:[“Failed to perform rollback on Remove SSH known hosts for - Dont know how to rollback drop_from_known_hosts”,“Failed to perform rollback on Remove SSH known hosts for - Dont know how to rollback drop_from_known_hosts”,“Failed to perform rollback on Remove SSH known hosts for - Dont know how to rollback drop_from_known_hosts”,“Failed to perform rollback on Remove SSH known hosts for hrgspog1.mydomain.local - Dont know how to rollback drop_from_known_hosts”]}
}

Hi, what version of smart proxy remote execution ssh do you have?

1 Like

tfm-rubygem-smart_proxy_remote_execution_ssh-0.3.0-1.fm2_0.el7.noarch

Any one? Even using the most recent Foreman’s
and system packets (CentOS 7), the problem still happens when trying to delete only some hosts.

The problem was solved after the Foreman team release a new version of tfm-rubygem-smart_proxy_remote_execution_ssh Package

Updated to the latest Debian Buster version of the remote execution plugin but this is still a problem

ruby-foreman-remote-execution         3.3.7-1
ruby-foreman-remote-execution-core    1.3.1-1
ruby-smart-proxy-remote-execution-ssh 0.3.0-1