New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef report handler loop randomly #8225

Open
Raboo opened this Issue Feb 8, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@Raboo
Copy link

Raboo commented Feb 8, 2019

Description

Running chef-client in daemon mode with chef_handler_foreman causes report handler to loop sometimes at the end of the chef run.
The loop can last all from 90 repeats(2s) up to more than 1 hour (I have a hourly cron that checks for chef-client processes that have been executing for more than an hour and kill it).
Can't really pinpoint when it happens, it appears to be random from my POV.

Related ticket in foreman redmine https://projects.theforeman.org/issues/21705.

After speaking with the developer behind chef_foreman_handler he explained that it doesn't do anything special, it uses the Chef::Handler class as intended.

Chef Version

13.6.4
13.4.24
13.12.3
(v12 not affected)
(v14 and v15 not tested)

Platform Version

Ubuntu 14.04, 16.04.

Replication Case

  1. Have foreman installed with foreman_chef plugin.
  2. Run chef-client v13 (in daemon mode) with chef_handler_foreman and facts or reports uploads enabled.
  3. Wait random amount of chef runs until problems occurs.

Client Output

[2019-02-08T10:25:49+01:00] INFO: Chef Run complete in 12.673782323 seconds
[2019-02-08T10:25:50+01:00] INFO: Running report handlers
[2019-02-08T10:25:50+01:00] INFO: No attributes have changed - not uploading to foreman
[2019-02-08T10:25:50+01:00] INFO: No attributes have changed - not uploading to foreman
....
[2019-02-08T10:25:51+01:00] INFO: No attributes have changed - not uploading to foreman
[2019-02-08T10:25:51+01:00] INFO: Generating new Chef success timestamp with value 1549617951
[2019-02-08T10:25:51+01:00] INFO: Report handlers complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment