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

Don't forget plugin deprecations after CLI init #73240

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Fixes #73051.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
lib/ansible/cli/__init__.py
lib/ansible/config/manager.py 

@ansibot ansibot added affects_2.11 bug This issue/PR relates to a bug. collection Related to Ansible Collections work collection:ktdreyer.koji_ansible collection:ngine_io.pingping collection:t_systems_mms.icinga_director core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Jan 14, 2021
@felixfontein
Copy link
Contributor Author

/rebuild_failed

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. collection:paloaltonetworks.panos and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Jan 15, 2021
@Shrews
Copy link
Contributor

Shrews commented Jan 18, 2021

Just as an FYI, I tried this change locally and it looks like it requires the plugin to call set_options() before the deprecation message will appear. Many of our builtin plugins (e.g., file) do not call that method since it doesn't seem to be required to do so.

@Shrews Shrews removed the needs_triage Needs a first human triage before being processed. label Jan 19, 2021
@briantist
Copy link
Contributor

@Shrews memory is getting fuzzy now but when I hit this issue #73051 I remember looking through all of core, and any collections I happen to have cloned (c.g and the windows ones, besides community.hashi_vault), and the only existing examples of (this style of) deprecations I saw were in connection plugins, which aren't affected since their deprecations were processed early enough for them to be displayed.

Anyway, all that to say: it's probably fine that many plugins don't yet use config manager: if a deprecation is added to a plugin and wants to use the automatic display of it, it'll have to be converted, which probably isn't a bad thing.

@felixfontein
Copy link
Contributor Author

Essentially you don't get config manager features if you don't use the config manager :-)

If you don't use the config manager, the DOCUMENTATION content is only used by ansible-doc and the antsibull-docs. All other things in DOCUMENTATION (like vars, ini, option type checking, ...) also don't work if you don't use the config manager, except if you implement them manually. Deprecations are no exception to that rule.

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. core_review In order to be merged, this PR must follow the core review workflow. labels Nov 4, 2021
@samdoran samdoran added the ci_verified Changes made in this PR are causing tests to fail. label Nov 5, 2021
Co-authored-by: Sam Doran <sdoran@redhat.com>
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. core_review In order to be merged, this PR must follow the core review workflow. labels Nov 5, 2021
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Nov 17, 2021
@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 19, 2022
@nitzmahone nitzmahone added the P3 Priority 3 - Approved, No Time Limitation label Mar 8, 2023
@nitzmahone nitzmahone requested a review from bcoca March 8, 2023 19:42
@nitzmahone
Copy link
Member

We need to fix some stuff in the new display remoting to workers to preserve dedupes on these, then we can merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.15 bug This issue/PR relates to a bug. collection Related to Ansible Collections work has_issue needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. new_plugin This PR includes a new plugin. P3 Priority 3 - Approved, No Time Limitation stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

marked deprecations from lookup (possibly other) plugins are not displayed
6 participants