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

Fixes #23741 - Associate hostname to reports created by IP #187

Merged
merged 1 commit into from Jul 12, 2018

Conversation

dLobatog
Copy link
Member

Steps to reproduce:

1 set setting remote_execution_connect_by_ip to true
2 run Ansible job
3 search for reports at the host

Before: no reports found for the host, new host created with the
name of the IP, with the reports assigned

After: The original host gets the reports assigned

--- still needs tests

Copy link
Member Author

@dLobatog dLobatog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixing the problem as far as associating config reports to the old host is concerned.

However the host with the IP address as hostname is still created. That has to do with the way facts are parsed - I'll deal with that in here too.

@dLobatog dLobatog force-pushed the 23741 branch 4 times, most recently from bae56e7 to 71a7f8b Compare July 12, 2018 15:27
Copy link
Member Author

@dLobatog dLobatog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ares @bastilian Alright - I think this is now ready for review

Steps to reproduce:

1 set setting remote_execution_connect_by_ip to true
2 run Ansible job
3 search for reports at the host

Before: no reports found for the host, new host created with the
name of the IP, with the reports assigned

After: The original host gets the reports assigned
@ares
Copy link
Member

ares commented Jul 12, 2018

All green, thank you, merging!

@ares ares merged commit 593302f into theforeman:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants