Skip to content

Bug Fix: Faulty check on Redhat causes repeat reinstalls of agent.#412

Merged
truthbk merged 1 commit intoDataDog:masterfrom
carnivalmobile:fix-redhat-reinstall-loop
Mar 14, 2018
Merged

Bug Fix: Faulty check on Redhat causes repeat reinstalls of agent.#412
truthbk merged 1 commit intoDataDog:masterfrom
carnivalmobile:fix-redhat-reinstall-loop

Conversation

@jcarr-sailthru
Copy link
Copy Markdown
Contributor

The factor check for old legacy datadag repo was incorrect and would always return true if a file exists yet was empty. This results in one Puppet run removing the agent, then the next Puppet run adding it again.

Reproducing:

  1. Use Amazon Linux with existing Datadog 5 agent installed from 1.x Puppet module.
  2. Upgrade to this new Puppet module
  3. Apply Puppet multiple times. It will alternate between removing vs reinstalling the agent.
  4. Cry
  5. Submit fix to Datadog team to help others

The factor check for old legacy datadag repo was incorrect and would always
return true if a file exists yet was empty. This results in one Puppet run
removing the agent, then the next Puppet run adding it again.
@irabinovitch irabinovitch requested a review from truthbk March 12, 2018 23:56
Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thank you! 💯

@truthbk truthbk added this to the 2.2.0 milestone Mar 14, 2018
@truthbk truthbk merged commit 1c1ce37 into DataDog:master Mar 14, 2018
@truthbk truthbk modified the milestones: 2.2.0, 2.1.1 Mar 14, 2018
@jcarr-sailthru jcarr-sailthru deleted the fix-redhat-reinstall-loop branch March 14, 2018 20:20
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
…ataDog#412)

The factor check for old legacy datadag repo was incorrect and would always
return true if a file exists yet was empty. This results in one Puppet run
removing the agent, then the next Puppet run adding it again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants