Actions
Bug #26274
closedPreviously created facts are removed
Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Description
Foreman saves facts obtained only from last executed role.
Packages versions:
ii ansible 2.7.7-1ppa~trusty all Ansible IT Automation
ii foreman 1.20.2-1 amd64 Systems management web interface
ii foreman-postgresql 1.20.2-1 all metapackage providing PostgreSQL dependencies for Foreman
ii foreman-proxy 1.20.2-1 all RESTful proxies for DNS, DHCP, TFTP, and Puppet
ii ruby-foreman-ansible 2.2.9-1 all Foreman Ansible plugin
ii ruby-foreman-deface 1.3.2-1 all Foreman Deface Plugin Dependency
ii ruby-foreman-discovery 14.0.1-1 all Foreman Discovery Plugin
ii ruby-foreman-remote-execution 1.6.7-1 all Foreman Remote Execution Plugin
ii ruby-foreman-remote-execution-core 1.1.3-1 all Foreman remote execution - core bits
ii ruby-foreman-tasks 0.14.3-1 all Tasks management engine for Foreman.
ii ruby-foreman-tasks-core 0.2.5-1 all Foreman tasks - core bits
ii ruby-smart-proxy-ansible 2.0.3-2 all Ansible support for Foreman smart proxy
Log:
2019-03-07T09:10:02 [I|app|0145ed7c] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:10:02 [I|app|0145ed7c] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:10:03 [I|app|0145ed7c] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 210, Updated: 0, Deleted 0 facts
2019-03-07T09:10:03 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:10:03 +0000
2019-03-07T09:10:03 [I|app|19b5add3] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:10:03 [I|app|19b5add3] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:10:03 [I|app|19b5add3] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 2, Updated: 0, Deleted 210 facts
2019-03-07T09:11:11 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:11:11 +0000
2019-03-07T09:11:11 [I|app|cf0cf79a] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:11:11 [I|app|cf0cf79a] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:11:11 [I|app|cf0cf79a] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 1, Updated: 0, Deleted 2 facts
2019-03-07T09:11:30 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:11:30 +0000
2019-03-07T09:11:30 [I|app|c1c7ab83] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:11:30 [I|app|c1c7ab83] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:11:30 [I|app|c1c7ab83] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 4, Updated: 0, Deleted 1 facts
2019-03-07T09:11:33 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:11:33 +0000
2019-03-07T09:11:33 [I|app|41e7b799] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:11:33 [I|app|41e7b799] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:11:34 [I|app|41e7b799] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 3, Updated: 0, Deleted 4 facts
2019-03-07T09:12:24 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:24 +0000
2019-03-07T09:12:24 [I|app|9dffb31f] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:24 [I|app|9dffb31f] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:24 [I|app|9dffb31f] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 1, Updated: 0, Deleted 3 facts
2019-03-07T09:12:25 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:25 +0000
2019-03-07T09:12:25 [I|app|a774793a] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:25 [I|app|a774793a] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:25 [I|app|a774793a] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 1, Updated: 0, Deleted 1 facts
2019-03-07T09:12:33 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:33 +0000
2019-03-07T09:12:33 [I|app|ecb3f7ac] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:33 [I|app|ecb3f7ac] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:33 [I|app|ecb3f7ac] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 12, Updated: 0, Deleted 1 facts
2019-03-07T09:12:43 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:43 +0000
2019-03-07T09:12:43 [I|app|9450b998] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:43 [I|app|9450b998] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:44 [I|app|9450b998] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 2, Updated: 0, Deleted 12 facts
2019-03-07T09:12:45 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:45 +0000
2019-03-07T09:12:45 [I|app|06ace1bf] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:45 [I|app|06ace1bf] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:45 [I|app|06ace1bf] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 4, Updated: 0, Deleted 2 facts
2019-03-07T09:12:55 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:55 +0000
2019-03-07T09:12:55 [I|app|36bb5311] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:55 [I|app|36bb5311] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:55 [I|app|36bb5311] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 2, Updated: 0, Deleted 4 facts
2019-03-07T09:12:56 [I|app|] Started POST "/api/v2/hosts/facts" for 172.18.0.3 at 2019-03-07 09:12:56 +0000
2019-03-07T09:12:56 [I|app|d63ddf8f] Processing by Api::V2::HostsController#facts as JSON
2019-03-07T09:12:56 [I|app|d63ddf8f] Parameters: {"facts"=>"[FILTERED]", "name"=>"192.168.33.16", "apiv"=>"v2", "host"=>{"name"=>"192.168.33.16"}}
2019-03-07T09:12:56 [I|app|d63ddf8f] Import facts for 'mace0d55e43afc7.ctdp.pl' completed. Added: 11, Updated: 0, Deleted 2 facts
Updated by Ondřej Pražák about 6 years ago
I think https://github.com/ansible/ansible/pull/51546 aims to fix this.
Updated by Ondřej Ezr about 4 years ago
- Status changed from New to Resolved
- Pull request https://github.com/theforeman/foreman-ansible-modules/pull/1155 added
This has been fixed in the new callback plugin, linking the PR.
Actions