Setup ambari-agents running under non root user. (ambari-server is also non-root, not sure if this is required to reproduce)
Register agents manually.
Stop all services.
ambari-server reset -s.
ambari-server setup -s;
Perform manual hosts registration 'Perform manual registration on hosts and do not use SSH'
Look at the hosts checks results. No warnings shown except THP.
It contains warnings for users and folders, but not for installed packages.
This failure affects HostCleanup.py which uses hostcheck.result files to remove packages, but file does not list any packages.