Project

General

Profile

Actions

Bug #22279

closed

Foreman registers duplicates of host again and again on Ansible callback

Added by Romans Krjukovs over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi,

I have a fresh installation of Foreman 1.16 on a clean host.
Ansible 2.4.2 is installed on the same host and foreman callback is configured.
When i execute some ansible playbook, target host is registered in Foreman (which is expected).
When i execute the same or another playbook targeting same host, another (duplicate) host record with the same hostname
is registered in Foreman. Again and again. Each execution of Ansible playbook produces another
host duplicate in Foreman.

Pls, advise.

Thank You!

Regards
/Romans


Files


Related issues 1 (0 open1 closed)

Has duplicate Ansible - Bug #24090: Ansible Callback Script generates duplicate Foreman Host entriesDuplicateActions
Actions #1

Updated by Martin Angermeier almost 6 years ago

  • Related to Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries added
Actions #2

Updated by Ondřej Pražák over 5 years ago

  • Related to deleted (Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries)
Actions #3

Updated by Ondřej Pražák over 5 years ago

  • Has duplicate Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries added
Actions #4

Updated by Ondřej Pražák over 5 years ago

  • Assignee set to Ondřej Pražák

The temporary workaround is to use host FQDN.

Steps to reproduce:

1) Have a host that Foreman does not know about (my-host.example.com)
2) Set up Foreman plugin callback for Ansible to send facts and reports to Foreman
3) Run Ansible on the host using partially qualified host name: ansible -m setup my-host -i myhost,
4) observe the duplicate hosts

Actions #5

Updated by Ondřej Pražák over 5 years ago

  • Status changed from New to Assigned
Actions #6

Updated by The Foreman Bot over 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/214 added
Actions #7

Updated by Marek Hulán over 5 years ago

  • Fixed in Releases foreman-ansible 2.3.0 added
Actions #8

Updated by Anonymous over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF