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

feat(migrations): Add migration for inputs.snmp_legacy #14123

Merged
merged 3 commits into from
Oct 16, 2023

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Oct 16, 2023

relates to #13376

This PR adds migrations for the deprecated inputs.snmp_legacy plugin that requires manual intervention.

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Oct 16, 2023
@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Oct 16, 2023
@powersj powersj merged commit 98c4289 into influxdata:master Oct 16, 2023
4 checks passed
@github-actions github-actions bot added this to the v1.29.0 milestone Oct 16, 2023
@Hipska
Copy link
Contributor

Hipska commented Nov 7, 2023

Am I right that in these cases it is opted for telegraf to just silently (Inform message in log) ignore the plugin rather than preventing telegraf to start up?

@srebhan
Copy link
Member Author

srebhan commented Nov 10, 2023

I don't think we should silently ignore these but instead fail early and loudly. The user can still comment the plugins or filter the inputs via command-line option.

@Hipska
Copy link
Contributor

Hipska commented Nov 10, 2023

I don’t see that actually. Could you point where this fail is happening?

@srebhan
Copy link
Member Author

srebhan commented Nov 14, 2023

The fail happens as we do not remove the plugin and telegraf will (or at least should) fail on start when we rollout v1.30.0 on the deprecated plugin.

@Hipska
Copy link
Contributor

Hipska commented Nov 14, 2023

Okay, I think I'm starting to get it.. But not completely yet.. 😂

So, why is this migration created if it's not possible to migrate? And did I also understand correctly that the plugin code will not get actually removed in 1.30?

@srebhan
Copy link
Member Author

srebhan commented Nov 14, 2023

So, why is this migration created if it's not possible to migrate?

I created the migration in case someone runs the migrate command and expects that afterwards the config works. Those people will now (hopefully) see the message and fix the issue themselves. Otherwise they might expect that Telegraf will just work...

And did I also understand correctly that the plugin code will not get actually removed in 1.30?

We will discuss this. One idea is to keep the code in 1.30.0 (and get an error message) and remove it in 1.30.1 for the case that some unforeseen issues appear. The (more likely) alternative is to remove the code directly in revertible PRs.

@Hipska
Copy link
Contributor

Hipska commented Nov 14, 2023

Many thanks for the explanations.. I now fully understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants