openstack-tox-tht jobs are failing in victoria and wallaby - "TypeError: load() missing 1 required positional argument: 'Loader'

Bug #1947373 reported by Ronelle Landy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Sandeep Yadav

Bug Description

openstack-tox-tht jobs are failing in check/gate on wallaby and victoria:

021-10-14 15:28:02.821910 | ubuntu-focal | TASK [Render the ansible tasks per role] ***************************************
2021-10-14 15:28:02.821941 | ubuntu-focal | fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["python", "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tools/render-ansible-tasks.py", "--output", "/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/../tht-rendered/rendered-tasks/", "--ansible-tasks", "update_tasks", "post_update_tasks", "external_update_tasks", "upgrade_tasks", "post_upgrade_tasks", "external_upgrade_tasks", "--all"], "delta": "0:00:00.359852", "end": "2021-10-14 15:28:02.590078", "msg": "non-zero return code", "rc": 1, "start": "2021-10-14 15:28:02.230226", "stderr": "Traceback (most recent call last):\n File \"/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tools/render-ansible-tasks.py\", line 128, in <module>\n main()\n File \"/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tools/render-ansible-tasks.py\", line 61, in main\n resource_reg = yaml.load(open(os.path.join(resource_registry), 'r'))\nTypeError: load() missing 1 required positional argument: 'Loader'", "stderr_lines": ["Traceback (most recent call last):", " File \"/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tools/render-ansible-tasks.py\", line 128, in <module>", " main()", " File \"/home/zuul/src/opendev.org/openstack/tripleo-heat-templates/tools/render-ansible-tasks.py\", line 61, in main", " resource_reg = yaml.load(open(os.path.join(resource_registry), 'r'))", "TypeError: load() missing 1 required positional argument: 'Loader'"], "stdout": "", "stdout_lines": []}
2021-10-14 15:28:02.821957 | ubuntu-focal |

TH failure history is below:

https://zuul.opendev.org/t/openstack/builds?job_name=openstack-tox-tht&project=openstack%2Ftripleo-heat-templates&branch=stable%2Fwallaby

 https://zuul.opendev.org/t/openstack/builds?job_name=openstack-tox-tht&project=openstack%2Ftripleo-heat-templates&branch=stable%2Fvictoria

started on 01/14

Revision history for this message
Ronelle Landy (rlandy) wrote :

master is passing - as is stable/ussuri

Changed in tripleo:
milestone: none → yoga-1
importance: Undecided → Critical
status: New → Triaged
tags: added: ci promotion-blocker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814150

Changed in tripleo:
assignee: nobody → Sandeep Yadav (sandeepyadav93)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814151

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814150
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/f4d8a39c1d8621d32a4dd1c740d89e1e00743d03
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit f4d8a39c1d8621d32a4dd1c740d89e1e00743d03
Author: Takashi Kajinami <email address hidden>
Date: Thu Jul 22 22:08:45 2021 +0900

    Use yaml.safe_load to load YAML files

    Since PyYAML 5.1, yaml.load without specifying the Loader option is
    deprecated and shows the following warning.

    YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
    as the default Loader is unsafe.
    Please read https://msg.pyyaml.org/load for full details.

    This change replaces yaml.load by yaml.safe_load (which is effectively
    same as adding Loader=yaml.SafeLoader) to get rid of that warning
    message. Also, existing all usage of yaml.load with the Loader option
    are also replaced so that we to make all implementation to load yaml
    files consistent.

    Closes-Bug: #1947373

    Change-Id: Id44fa2354429b944fbc0809f63db558bb7de23f7
    (cherry picked from commit 53040573abca10c9eefdad7688a56610c67ed645)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814151
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/8a4351664dff20f3594bcdd8fc0999d35689779c
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 8a4351664dff20f3594bcdd8fc0999d35689779c
Author: Takashi Kajinami <email address hidden>
Date: Thu Jul 22 22:08:45 2021 +0900

    Use yaml.safe_load to load YAML files

    Since PyYAML 5.1, yaml.load without specifying the Loader option is
    deprecated and shows the following warning.

    YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
    as the default Loader is unsafe.
    Please read https://msg.pyyaml.org/load for full details.

    This change replaces yaml.load by yaml.safe_load (which is effectively
    same as adding Loader=yaml.SafeLoader) to get rid of that warning
    message. Also, existing all usage of yaml.load with the Loader option
    are also replaced so that we to make all implementation to load yaml
    files consistent.

    Closes-Bug: #1947373

    Change-Id: Id44fa2354429b944fbc0809f63db558bb7de23f7
    (cherry picked from commit 53040573abca10c9eefdad7688a56610c67ed645)

tags: added: in-stable-victoria
Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/ussuri)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/train)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814267
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/3b986aba9b4429ae57e6fcb9a72f4cd6a7623a98
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 3b986aba9b4429ae57e6fcb9a72f4cd6a7623a98
Author: Takashi Kajinami <email address hidden>
Date: Thu Jul 22 22:08:45 2021 +0900

    Use yaml.safe_load to load YAML files

    Since PyYAML 5.1, yaml.load without specifying the Loader option is
    deprecated and shows the following warning.

    YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
    as the default Loader is unsafe.
    Please read https://msg.pyyaml.org/load for full details.

    This change replaces yaml.load by yaml.safe_load (which is effectively
    same as adding Loader=yaml.SafeLoader) to get rid of that warning
    message. Also, existing all usage of yaml.load with the Loader option
    are also replaced so that we to make all implementation to load yaml
    files consistent.

    Closes-Bug: #1947373

    Change-Id: Id44fa2354429b944fbc0809f63db558bb7de23f7
    (cherry picked from commit 53040573abca10c9eefdad7688a56610c67ed645)
    (cherry picked from commit 8a4351664dff20f3594bcdd8fc0999d35689779c)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/train)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814268
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/7e00042633c98f8cfd7ec3506f3f40e6dab37bfa
Submitter: "Zuul (22348)"
Branch: stable/train

commit 7e00042633c98f8cfd7ec3506f3f40e6dab37bfa
Author: Takashi Kajinami <email address hidden>
Date: Thu Jul 22 22:08:45 2021 +0900

    Use yaml.safe_load to load YAML files

    Since PyYAML 5.1, yaml.load without specifying the Loader option is
    deprecated and shows the following warning.

    YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
    as the default Loader is unsafe.
    Please read https://msg.pyyaml.org/load for full details.

    This change replaces yaml.load by yaml.safe_load (which is effectively
    same as adding Loader=yaml.SafeLoader) to get rid of that warning
    message. Also, existing all usage of yaml.load with the Loader option
    are also replaced so that we to make all implementation to load yaml
    files consistent.

    Closes-Bug: #1947373

    Change-Id: Id44fa2354429b944fbc0809f63db558bb7de23f7
    (cherry picked from commit 53040573abca10c9eefdad7688a56610c67ed645)
    (cherry picked from commit 8a4351664dff20f3594bcdd8fc0999d35689779c)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 12.4.6

This issue was fixed in the openstack/tripleo-heat-templates 12.4.6 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 13.6.0

This issue was fixed in the openstack/tripleo-heat-templates 13.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates train-eol

This issue was fixed in the openstack/tripleo-heat-templates train-eol release.

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.