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

remove obsolete set_play on play_context #47934

Merged
merged 6 commits into from
Mar 11, 2019
Merged

Conversation

bcoca
Copy link
Member

@bcoca bcoca commented Nov 1, 2018

  • all tasks already inherit this from play directly
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

play_context

ANSIBLE VERSION
2.x

@ansibot
Copy link
Contributor

ansibot commented Nov 1, 2018

Hi @bcoca, thank you for submitting this pull-request!

click here for bot help

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. 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. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Nov 1, 2018
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Nov 1, 2018
@ansibot ansibot added 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 Nov 1, 2018
@mattclay

This comment has been minimized.

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Nov 5, 2018
@ansibot ansibot added support:community This issue/PR relates to code supported by the Ansible community. and removed ci_verified Changes made in this PR are causing tests to fail. labels Nov 5, 2018
@mattclay

This comment has been minimized.

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Nov 6, 2018
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Nov 6, 2018
@ansible ansible deleted a comment from ansibot Nov 6, 2018
@mattclay

This comment has been minimized.

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Nov 6, 2018
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Nov 6, 2018
@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Nov 7, 2018
@ansible ansible deleted a comment from ansibot Nov 9, 2018
@ansibot ansibot removed ci_verified Changes made in this PR are causing tests to fail. support:community This issue/PR relates to code supported by the Ansible community. labels Nov 9, 2018
@mattclay
Copy link
Member

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Nov 16, 2018
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Nov 16, 2018
@mattclay

This comment has been minimized.

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Feb 8, 2019
@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 Feb 16, 2019
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Feb 20, 2019
@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 Mar 1, 2019
@ansibot ansibot added 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. and removed 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. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Mar 5, 2019
@bcoca bcoca merged commit f73e036 into ansible:devel Mar 11, 2019
@bcoca bcoca deleted the fix_port_type branch March 11, 2019 22:25
@felixfontein
Copy link
Contributor

@bcoca Every playbook I'm executing now is currently littered with [DEPRECATION WARNING]: PlayContext.force_handlers should not be used, the calling code should be using play itself instead. This feature will be removed in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. warnings (which have been introduced in this PR). I'm even getting it with a trivial playbook such as:

- hosts: localhost
  tasks: []

Is this intended?

@albers
Copy link
Contributor

albers commented Mar 14, 2019

I'm also facing this in a slightly different context:

A playbook with several plays.
The first play invokes a role that calls another role from its task file via include_role (also happens with import_role).
Every task in that secondary role causes the deprecation warning.

playbook

# This play causes lots of deprecation warnings
- name: Create VMs
  hosts: swarm_masters
  gather_facts: no
  tags: [deploy]
  roles:
    - ubuntu_cloud_image_host

# This play does not cause any deprecation warnings
- name: Create a Docker swarm
  hosts: swarm_masters
  tags: [swarm]
  roles:
    - ubuntu_host
    - swarm_master

tasks file of role ubuntu_cloud_image_host

- import_role: name=albers.vmware_ubuntu_cloud_image

@felixfontein
Copy link
Contributor

@albers the problem I had was fixed in #53705; do you still have this problem after that PR was merged?

@albers
Copy link
Contributor

albers commented Mar 14, 2019

@felixfontein Thanks for the hint.

I was still at 15303b0.
Pulling to the current repo state (fa2e8d8) resolved the issue for me.

@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. 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.

None yet

5 participants