Skip to content
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

Update mongodb_exporter to version 0.11.0 #455

Closed
wants to merge 6 commits into from
Closed

Update mongodb_exporter to version 0.11.0 #455

wants to merge 6 commits into from

Conversation

dhoppe
Copy link
Member

@dhoppe dhoppe commented May 25, 2020

Fixes #350, #366

@dhoppe
Copy link
Member Author

dhoppe commented May 27, 2020

@voxpupuli/collaborators Does anyone know if the failed builds are related to the following error message?

bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

I have run the acceptance tests locally, logged into the docker container and the process exists with that parameter.

@ekohl
Copy link
Member

ekohl commented May 27, 2020

voxpupuli/beaker-hostgenerator#183 but generally that's not really relevant.

pp = "class { 'prometheus::mongodb_exporter': version => '0.11.0', use_kingpin => true }"
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
shell('sleep 30')
Copy link
Member

Choose a reason for hiding this comment

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

Could it be this sleep is not working correctly? With systemd I'd suggest some proper ready check. Ideally using the notify type but the exporter probably doesn't support that. An alternative is theforeman/puppet-qpid@7534cd9

Copy link
Member Author

@dhoppe dhoppe May 27, 2020

Choose a reason for hiding this comment

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

That is an interesting thought.

In the case of puppet-jira, shell('sleep x') is used quite often and this certainly has a negative effect on the runtime of the build jobs.

In this case, however, you should only make sure that the service has been started before checking if the port is open.

Copy link
Member

Choose a reason for hiding this comment

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

With systemd, a properly written service will not return until it has properly started. Since they often run in the foreground, there is no forking and initialization in the background. The idea of that alternative is that systemd checks the port is open and only then does systemctl start $service return.

Copy link
Member

Choose a reason for hiding this comment

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

@ekohl that's clever hack!

group => 0, # 0 instead of root because OS X uses "wheel".
mode => '0555',
}
-> archive { "/tmp/${service_name}-${version}.${download_extension}":
Copy link
Member

Choose a reason for hiding this comment

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

We should not be using the arrow syntax between resources like this and should instead use before/require and notify/subscribe metaparameters.

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like this was no problem two years ago:

Good luck with checking the remaining ~130 modules.

@dhoppe dhoppe closed this May 27, 2020
@dhoppe dhoppe deleted the update_mongodb branch May 27, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants