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

Fix type mismatch for ovs_stats port #959

Merged
merged 4 commits into from
Oct 23, 2020
Merged

Conversation

mrunge
Copy link
Contributor

@mrunge mrunge commented Oct 12, 2020

Pull Request (PR) description

There is a typo in the template to create the ovs_stats config. For collectd, the given port number is a string, where
puppet-collectd treats this as a port, thus resulting as a number in the collectd config file.
Since collectd upstream uses 6640 by default, this option is rarely required.

This Pull Request (PR) fixes the following issues

Fixes: #958

@bastelfreak
Copy link
Member

@mrunge can you take a look at the failing unit tests and maybe add an acceptance test for this change? We've a bunch of examples at https://github.com/voxpupuli/puppet-collectd/tree/master/spec/acceptance

@bastelfreak bastelfreak added bug Something isn't working needs-tests tests-fail labels Oct 12, 2020
@mrunge
Copy link
Contributor Author

mrunge commented Oct 12, 2020

Thank you for your quick look.

The failing tests lead me to the acceptance tests. If the tests are passing now, this should be good to go :)

There are already tests, but they did not require
quotation marks.
@mrunge
Copy link
Contributor Author

mrunge commented Oct 12, 2020

Okay, tests pass now and the tests also check for existence of quotation marks.

@bastelfreak
Copy link
Member

can you please add an acceptance test for this as well? :)

@mrunge mrunge force-pushed the ovs_stats branch 2 times, most recently from 3261fc5 to d0a1caa Compare October 13, 2020 13:30
@mrunge
Copy link
Contributor Author

mrunge commented Oct 13, 2020

Tests fail with:
E: Unable to locate package collectd-ovs-stats on ubuntu

ovs_stats does not exist anywhere on the test infra. Trying to
load it is not going to fly.

This reverts commit 4f1a798.
@mrunge
Copy link
Contributor Author

mrunge commented Oct 13, 2020

The package is not available on ubuntu and debian (which uses the same repo); it also fails to load on centos either.
There is not much value in adding a test, when the infra can not check it properly.

@mrunge
Copy link
Contributor Author

mrunge commented Oct 14, 2020

@bastelfreak any opinion to move forward here?

@bastelfreak bastelfreak merged commit d1c782d into voxpupuli:master Oct 23, 2020
@mrunge mrunge deleted the ovs_stats branch October 23, 2020 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ovs_stats port number mismatch
2 participants