Undercloud Install: 'Task' object has no attribute '_valid_attrs'

Bug #1996482 reported by Amol Kahat
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Takashi Kajinami

Bug Description

Undercloud installation is failing at

 Stack standalone/a2a3f097-2b83-4681-9292-4aa47ca89bf3 CREATE_COMPLETE

Generating default ansible config file /home/zuul/tripleo-deploy/ansible.cfg
[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to
new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be
removed from ansible-core in version 2.15. Deprecation warnings can be disabled
 by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_GATHER_SUBSET option, the module_defaults
keyword is a more generic version and can apply to all calls to the
M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use
module_defaults instead. This feature will be removed from ansible-core in
version 2.18. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults
keyword is a more generic version and can apply to all calls to the
M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use
module_defaults instead. This feature will be removed from ansible-core in
version 2.18. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[WARNING]: Skipping key (deprecated) in group (overcloud) as it is not a
mapping, it is a <class 'ansible.parsing.yaml.objects.AnsibleUnicode'>
[WARNING]: Found both group and host with same name: standalone
[WARNING]: Skipping plugin (/usr/share/ansible/plugins/callback/tripleo.py),
cannot load: cannot import name 'COMPAT_OPTIONS' from
'ansible.plugins.callback.default' (/usr/lib/python3.9/site-
packages/ansible/plugins/callback/default.py)

PLAY [External deployment step 0] **********************************************
[WARNING]: Using run_once with the tripleo_free strategy is not currently
supported. This task will still be executed for every host in the inventory
list.
ERROR! Unexpected Exception, this is probably a bug: 'Task' object has no attribute '_valid_attrs'
to see the full traceback, use -vvv
Ansible execution failed. playbook: deploy_steps_playbook.yaml, Run Status: failed, Return Code: 250
Not cleaning working directory /home/zuul/tripleo-deploy/tripleo-heat-installer-templates
Not cleaning ansible directory /home/zuul/tripleo-deploy/standalone-ansible-f7kh3woa
Install artifact is located at /home/zuul/tripleo-deploy/standalone-install-20221114032226.tar.bzip2

Logs
- https://logserver.rdoproject.org/openstack-component-clients/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-scenario000-multinode-oooq-container-updates-clients-wallaby/02f79b1/job-output.txt
- https://logserver.rdoproject.org/openstack-component-clients/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-ovb-3ctlr_1comp-featureset001-clients-wallaby/0d13388/job-output.txt
https://logserver.rdoproject.org/openstack-component-clients/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-containers-multinode-clients-wallaby/e35f7a2/job-output.txt
- https://logserver.rdoproject.org/openstack-component-clients/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-scenario000-multinode-oooq-container-updates-clients-master/abbe8a4/logs/undercloud/home/zuul/undercloud_install.log.txt.gz
- https://logserver.rdoproject.org/openstack-component-clients/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-9-ovb-3ctlr_1comp-featureset001-clients-master/07fd1e9/logs/undercloud/home/zuul/undercloud_install.log.txt.gz

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Marios Andreou (marios-b) wrote :

Fixes proposed at https://review.opendev.org/c/openstack/tripleo-ansible/+/864383 & also tripleo-ansible/+/860516 tripleo-ansible/+/864390

but now all squashed into one patch at

https://review.opendev.org/c/openstack/tripleo-ansible/+/864392 Fix compatibility with Ansible 2.14

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-ansible (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/864383
Reason: merged into https://review.opendev.org/c/openstack/tripleo-ansible/+/864392

Changed in tripleo:
assignee: nobody → Takashi Kajinami (kajinamit)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)
Revision history for this message
Marios Andreou (marios-b) wrote :

as discussed in irc since this is a gate blocker (announced yesterday there [1]) lets try to pin ansible for now. Then we can continue with tripleo-ansible/+/864392 but with less pressure. Finally we'll unpin for 2.14 once we are ready

Posted [2] to pin and [3] to test periodics and [4] master [5] zed and [6] wallaby check/gate test.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-November/031186.html
[2] https://review.opendev.org/c/openstack/tripleo-quickstart/+/864498
[3] https://review.rdoproject.org/r/c/testproject/+/46099
[4] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/864499
[5] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/864474
[6] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/864500

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart/+/864498
Committed: https://opendev.org/openstack/tripleo-quickstart/commit/da7312c530c441cbcf12f1f67c3a49cfbbe418c9
Submitter: "Zuul (22348)"
Branch: master

commit da7312c530c441cbcf12f1f67c3a49cfbbe418c9
Author: Marios Andreou <email address hidden>
Date: Tue Nov 15 09:59:05 2022 +0200

    Pin ansible-core until we can fix compatibility with 2.14

    Per related-bug lets pin ansible-core by excluding 2.14.* until
    we can consume it without breaking. This is currently a gate
    blocker. Pins master zed wallaby for gate and periodic.

    Relate-Bug: 1996482
    Change-Id: I6b2a7db54683539eec005ed511eb28c2142e1d77

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/864392
Committed: https://opendev.org/openstack/tripleo-ansible/commit/73da12601770018cb366211ed2485d2fca2c9799
Submitter: "Zuul (22348)"
Branch: master

commit 73da12601770018cb366211ed2485d2fca2c9799
Author: Takashi Kajinami <email address hidden>
Date: Mon Nov 14 17:16:34 2022 +0900

    Fix compatibility with Ansible 2.14

    This fixes the following three compatibility problems with the latest
    Ansible 2.14 which was recently released.

    1)
    ITERATING_* attributes and FAILED_* attributes of PlayIterator has been
    deprecated[1] and was removed in Ansible 2.14.

    2)
    The _valid_attrs attribute was replaced by the new FieldAttributes in
    Ansible 2.14[2].

    3)
    The warn parameter of command/shell module was deprecated was removed
    in 2.14[3].

    4)
    Drop usage of removed compat attributes from default callback[4].

    [1] https://github.com/ansible/ansible/pull/73908
    [2] https://github.com/ansible/ansible/pull/74511
    [3] https://github.com/ansible/ansible/pull/77411
    [4] https://github.com/ansible/ansible/pull/77677

    Closes-Bug: #1996482
    Change-Id: I74311e4c11b9dbb4858f119e109acfdaa8e81ff0

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

This patch is also addressing the issue for the tripleo-operator-ansible:
https://review.opendev.org/c/openstack/tripleo-operator-ansible/+/864409

I missed to add the relevant info in the commit message, sorry.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/864696

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/864696
Committed: https://opendev.org/openstack/tripleo-ansible/commit/d854a3c30c2a1aa73706566acba71cd40741c32e
Submitter: "Zuul (22348)"
Branch: stable/zed

commit d854a3c30c2a1aa73706566acba71cd40741c32e
Author: Takashi Kajinami <email address hidden>
Date: Mon Nov 14 17:16:34 2022 +0900

    Fix compatibility with Ansible 2.14

    This fixes the following three compatibility problems with the latest
    Ansible 2.14 which was recently released.

    1)
    ITERATING_* attributes and FAILED_* attributes of PlayIterator has been
    deprecated[1] and was removed in Ansible 2.14.

    2)
    The _valid_attrs attribute was replaced by the new FieldAttributes in
    Ansible 2.14[2].

    3)
    The warn parameter of command/shell module was deprecated was removed
    in 2.14[3].

    4)
    Drop usage of removed compat attributes from default callback[4].

    [1] https://github.com/ansible/ansible/pull/73908
    [2] https://github.com/ansible/ansible/pull/74511
    [3] https://github.com/ansible/ansible/pull/77411
    [4] https://github.com/ansible/ansible/pull/77677

    Closes-Bug: #1996482
    Change-Id: I74311e4c11b9dbb4858f119e109acfdaa8e81ff0
    (cherry picked from commit 73da12601770018cb366211ed2485d2fca2c9799)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/865089

Revision history for this message
Alan Pevec (apevec) wrote :

https://review.opendev.org/c/openstack/tripleo-ansible/+/865089 was not merged to Wallaby yet, let's keep this bug open

Changed in tripleo:
status: Fix Released → In Progress
Alan Pevec (apevec)
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/865089
Committed: https://opendev.org/openstack/tripleo-ansible/commit/0f1c1ca9d406944b8065edf3f53343af4729c90b
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 0f1c1ca9d406944b8065edf3f53343af4729c90b
Author: Takashi Kajinami <email address hidden>
Date: Mon Nov 14 17:16:34 2022 +0900

    Fix compatibility with Ansible 2.14

    This fixes the following three compatibility problems with the latest
    Ansible 2.14 which was recently released.

    1)
    ITERATING_* attributes and FAILED_* attributes of PlayIterator has been
    deprecated[1] and was removed in Ansible 2.14.

    2)
    The _valid_attrs attribute was replaced by the new FieldAttributes in
    Ansible 2.14[2].

    3)
    The warn parameter of command/shell module was deprecated was removed
    in 2.14[3].

    4)
    Drop usage of removed compat attributes from default callback[4].

    [1] https://github.com/ansible/ansible/pull/73908
    [2] https://github.com/ansible/ansible/pull/74511
    [3] https://github.com/ansible/ansible/pull/77411
    [4] https://github.com/ansible/ansible/pull/77677

    Conflicts:
            tripleo_ansible/ansible_plugins/strategy/tripleo_linear.py
            tripleo_ansible/roles/tripleo_bootstrap/tasks/bootstrap.yml
            tripleo_ansible/roles/tripleo_ceph_uuid/molecule/default/converge.yml

    Note:
    This backport includes a few modifications to support Ansible 2.9,
    which is the available version in CentOS 8.

    Closes-Bug: #1996482
    Change-Id: I74311e4c11b9dbb4858f119e109acfdaa8e81ff0
    (cherry picked from commit 73da12601770018cb366211ed2485d2fca2c9799)
    (cherry picked from commit d854a3c30c2a1aa73706566acba71cd40741c32e)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 6.0.0

This issue was fixed in the openstack/tripleo-ansible 6.0.0 release.

Revision history for this message
Marios Andreou (marios-b) wrote :

related patch:

https://review.opendev.org/c/openstack/tripleo-quickstart/+/878182 Bump ansible to 2.14 in wallaby

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.