[W|dyn|] Couldn't find Katello::SyncPlan with 'id'=xxx

Problem:
==> /var/log/foreman/production.log <==
[…]
xxxx-xx-xxTxx:xx:xx [W|dyn|] Couldn’t find Katello::SyncPlan with ‘id’=1
[…]

Expected outcome:
no “Couldn’t find Katello::SyncPlan” logged message in /var/log/foreman/production.log

Foreman and Proxy versions:
Foreman 2.3.5 / Katello 3.18.5
Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7.9
Other relevant data:

Where do the ids come from ?
How can i clean them ?
I can’t find them in database, nor in recurring logics, nor by using hammer:

[FR][LBG root@lcm ~]$ hammer organization list --fields id
--
ID
--
1
82
--
[FR][LBG root@lcm ~]$ hammer sync-plan list --organization-id 1 --fields id
---
ID
---
128
133
130
129
131
132
134
127
126
---
[FR][LBG root@lcm ~]$ hammer sync-plan list --organization-id 82 --fields id
---
ID
---
139
140
136
138
137
---
[FR][LBG root@lcm ~]$
[FR][LBG root@lcm ~]$ date && grep -i "couldn't find katello::syncplan" /var/log/foreman/production.log |tail -n10
Mon Oct 11 11:53:33 CEST 2021
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=124
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=115
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=114
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=122
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=121
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=112
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=113
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=123
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=118
2021-10-11T11:53:29 [W|dyn|] Couldn't find Katello::SyncPlan with 'id'=119
[FR][LBG root@lcm ~]$

Do you know what causes this log? Is it just a hammer sync-plan list?

1 Like

Hello @sajha : i don’t know, that’s why i ask :wink:
The messages concernaing sync plans not found are not beeing caused by hammer sync-plan list, they appear (to me) frequently in /var/log/foreman/production.log

I am not entirely sure where this would come from. One guess is from recurring logics. Could you have any active recurring logics under Monitor > recurring logic against deleted sync plans?

Thanks for the suggestion, but there is none

Could you get some logs from before you see these? Those might have some pointers as to what the server is doing when it runs into these…Do you have any scheduled foreman tasks which say Run sync plan or similar?