Bug #14352
closedConfiguration status is getting marked out of sync incorrectly
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1321104
Description of problem:
Host's last report was 22 minutes ago, but it shows out of sync in the UI.
irb(main):026:0> time_ago_in_words(host.last_report)
=> "25 minutes"
irb(main):027:0> host.get_status(HostStatus::ConfigurationStatus)
=> #<HostStatus::ConfigurationStatus id: 9, type: "HostStatus::ConfigurationStatus", status: 117440512, host_id: 4, reported_at: "2016-03-24 04:21:21">
irb(main):028:0> host.get_status(HostStatus::ConfigurationStatus).to_label
=> "Out of sync"
irb(main):029:0> Setting[:puppet_interval]
=> 30
Version-Release number of selected component (if applicable):
6.2 Snap 5.1
How reproducible:
Always
Steps to Reproduce:
1. Create a host managed by puppet
Actual results:
Some time after the first report shows up, the host will go to out of sync
Expected results:
Host shows OK up to Setting[:puppet_interval] after report
Additional info: