Bug 2112686
| Summary: | ForemanPuppet::HostClass resource_type still present in database after removing puppet - excessive error logging | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Paul Armstrong <parmstro> |
| Component: | Puppet | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | NEW --- | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.11.0 | CC: | apatel, ehelms, gtalreja, kgaikwad, minlxs, saydas |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Paul Armstrong
2022-07-31 16:54:16 UTC
JFYI, For a Sat 6.11.3 or 6.11.4, Apart from the Tracebacks related to "ForemanPuppet::HostClass" resource, I get to see the exact same tracebacks for the following resource types as well, flooding the logs.
# cat /var/log/foreman/production.log | egrep 'ForemanPuppet::' | grep 'ignoring$' | awk '{ print $5 }' | sort | uniq -c
837 ForemanPuppet::ConfigGroup,
1116 ForemanPuppet::Environment,
1116 ForemanPuppet::Puppetclass,
1116 ForemanPuppet::PuppetclassLookupKey,
So I ended up clearing these resources as well. using the following rake sequence ( and by changing the resource type )
cat << EOF | foreman-rake console
perms = Permission.where(:resource_type => 'ForemanPuppet::HostClass')
perms.each { |perm| perm.filters.destroy_all }
perms.destroy_all
EOF
And finally a restart of services.
Since we provide the option to run the "satellite-maintain plugin purge-puppet" command without "--remove-all-data" , It needs to be clean and there should be no huge tracebacks related to that many resources in the production log filling it up completely.
Adding to Sayan's update, one also has to disable puppet after running "satellite-maintain plugin purge-puppet --remove-all-data": systemctl disable --now puppet Otherwise messages on sat and capsules will be filled with: Dec 14 11:22:18 puppet-agent[1301]: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known) Dec 14 11:22:18 puppet-agent[1301]: No more routes to ca Needs more QA.. Adding to Sayan's update, one also has to disable puppet after running "satellite-maintain plugin purge-puppet --remove-all-data": systemctl disable --now puppet Otherwise messages on sat and capsules will be filled with: Dec 14 11:22:18 puppet-agent[1301]: Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known) Dec 14 11:22:18 puppet-agent[1301]: No more routes to ca Needs more QA.. |