Skip to content

Custom integration defined type bugfix#490

Merged
truthbk merged 1 commit intoDataDog:masterfrom
o0oxid:master
Jan 24, 2019
Merged

Custom integration defined type bugfix#490
truthbk merged 1 commit intoDataDog:masterfrom
o0oxid:master

Conversation

@o0oxid
Copy link
Copy Markdown
Contributor

@o0oxid o0oxid commented Jan 23, 2019

Seems like there is a regression in 2.4.0 release. We setup datadog custom integrations via defined type. After upgrade to 2.4.0 puppet fails with following errors:

Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/datadog-agent/conf.d/check_snapshot.d/conf.yaml20190104-21120-1j3khxt.lock (file:
/etc/puppetlabs/code/modules/datadog_agent/manifests/integration.pp, line: 19)
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/datadog-agent/conf.d/check_snapshot.d/conf.yaml20190104-21120-1j3khxt.lock (file:
/etc/puppetlabs/code/modules/datadog_agent/manifests/integration.pp, line: 19)
Wrapped exception:
No such file or directory @ dir_s_mkdir - /etc/datadog-agent/conf.d/check_snapshot.d/conf.yaml20190104-21120-1j3khxt.lock
Error: /Stage[main]/Datadog_integrations::Snapshot_monitor/Datadog_agent::Integration[check_snapshot]/File[/etc/datadog-agent/conf.d/check_snapshot.d/conf.yaml]/ensure: change from 'absent' to 'file' failed: Could not set 'file' on ensure: No such file or directory @ dir_s_mkdir - /etc/datadog-agent/conf.d/check_snapshot.d/conf.yaml20190104-21120-1j3khxt.lock (file: /etc/puppetlabs/code/modules/datadog_agent/manifests/integration.pp, line: 19)

The root cause is puppet fails to create config.yaml resource because /etc/datadog-agent/${integration}.d/ directory is missing.

With predefined integrations everything is fine though, as necessary integration directories are created by datadog-agent RPM package.

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.

Great fix, and you're absolutely right this was a regression on our part with the new locations.

@truthbk truthbk merged commit c6a642d into DataDog:master Jan 24, 2019
@truthbk truthbk added this to the 2.5.0 milestone Jan 24, 2019
@truthbk truthbk modified the milestones: 2.5.0, 2.4.1 Feb 21, 2019
truthbk pushed a commit that referenced this pull request Feb 21, 2019
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Apr 6, 2020
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