AttributeError: 'MoleculeItem' object has no attribute 'funcargs' in molecule jobs

Bug #1867035 reported by Arx Cruz
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Steve Baker

Bug Description

2020-03-11 17:04:27.619998 | ubuntu-bionic | [3036] /home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras$ /home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/bin/python -m pytest --color=yes --html=/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/log/reports.html --self-contained-html -rA --molecule-unavailable-driver=fail -k 'molecule and docker'
2020-03-11 17:04:28.538587 | ubuntu-bionic | ============================= test session starts ==============================
2020-03-11 17:04:28.538659 | ubuntu-bionic | platform linux -- Python 3.6.9, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
2020-03-11 17:04:28.544437 | ubuntu-bionic | cachedir: .tox/molecule/.pytest_cache
2020-03-11 17:04:28.544507 | ubuntu-bionic | rootdir: /home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras, inifile: setup.cfg
2020-03-11 17:04:28.544568 | ubuntu-bionic | plugins: html-2.1.0, metadata-1.8.0, cov-2.8.1, molecule-1.2.3
2020-03-11 17:04:29.091274 | ubuntu-bionic | collected 2 items
2020-03-11 17:04:29.091880 | ubuntu-bionic |
2020-03-11 17:08:53.017550 | ubuntu-bionic | roles/build-test-packages/molecule/default/molecule.yml
2020-03-11 17:08:53.017627 | ubuntu-bionic | INTERNALERROR> Traceback (most recent call last):
2020-03-11 17:08:53.017707 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/_pytest/main.py", line 197, in wrap_session
2020-03-11 17:08:53.017759 | ubuntu-bionic | INTERNALERROR> session.exitstatus = doit(config, session) or 0
2020-03-11 17:08:53.017859 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/_pytest/main.py", line 247, in _main
2020-03-11 17:08:53.017920 | ubuntu-bionic | INTERNALERROR> config.hook.pytest_runtestloop(session=session)
2020-03-11 17:08:53.018015 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in __call__
2020-03-11 17:08:53.018124 | ubuntu-bionic | INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
2020-03-11 17:08:53.018221 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec
2020-03-11 17:08:53.018283 | ubuntu-bionic | INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
2020-03-11 17:08:53.018382 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/manager.py", line 87, in <lambda>
2020-03-11 17:08:53.018451 | ubuntu-bionic | INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
2020-03-11 17:08:53.018550 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
2020-03-11 17:08:53.018606 | ubuntu-bionic | INTERNALERROR> return outcome.get_result()
2020-03-11 17:08:53.018699 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
2020-03-11 17:08:53.018761 | ubuntu-bionic | INTERNALERROR> raise ex[1].with_traceback(ex[2])
2020-03-11 17:08:53.018861 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
2020-03-11 17:08:53.018927 | ubuntu-bionic | INTERNALERROR> res = hook_impl.function(*args)
2020-03-11 17:08:53.019029 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/_pytest/main.py", line 271, in pytest_runtestloop
2020-03-11 17:08:53.019112 | ubuntu-bionic | INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
2020-03-11 17:08:53.019212 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in __call__
2020-03-11 17:08:53.019276 | ubuntu-bionic | INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
2020-03-11 17:08:53.019375 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec
2020-03-11 17:08:53.019437 | ubuntu-bionic | INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
2020-03-11 17:08:53.019535 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/manager.py", line 87, in <lambda>
2020-03-11 17:08:53.019605 | ubuntu-bionic | INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
2020-03-11 17:08:53.019741 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
2020-03-11 17:08:53.019813 | ubuntu-bionic | INTERNALERROR> return outcome.get_result()
2020-03-11 17:08:53.019909 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
2020-03-11 17:08:53.019965 | ubuntu-bionic | INTERNALERROR> raise ex[1].with_traceback(ex[2])
2020-03-11 17:08:53.020095 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
2020-03-11 17:08:53.020147 | ubuntu-bionic | INTERNALERROR> res = hook_impl.function(*args)
2020-03-11 17:08:53.020249 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/_pytest/runner.py", line 84, in pytest_runtest_protocol
2020-03-11 17:08:53.020309 | ubuntu-bionic | INTERNALERROR> runtestprotocol(item, nextitem=nextitem)
2020-03-11 17:08:53.020408 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/_pytest/runner.py", line 99, in runtestprotocol
2020-03-11 17:08:53.020469 | ubuntu-bionic | INTERNALERROR> reports.append(call_and_report(item, "call", log))
2020-03-11 17:08:53.020572 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/_pytest/runner.py", line 187, in call_and_report
2020-03-11 17:08:53.020637 | ubuntu-bionic | INTERNALERROR> report = hook.pytest_runtest_makereport(item=item, call=call)
2020-03-11 17:08:53.020735 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/hooks.py", line 286, in __call__
2020-03-11 17:08:53.020800 | ubuntu-bionic | INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
2020-03-11 17:08:53.020898 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/manager.py", line 93, in _hookexec
2020-03-11 17:08:53.020959 | ubuntu-bionic | INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
2020-03-11 17:08:53.021086 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/manager.py", line 87, in <lambda>
2020-03-11 17:08:53.021151 | ubuntu-bionic | INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
2020-03-11 17:08:53.021251 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall
2020-03-11 17:08:53.021299 | ubuntu-bionic | INTERNALERROR> gen.send(outcome)
2020-03-11 17:08:53.021403 | ubuntu-bionic | INTERNALERROR> File "/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/lib/python3.6/site-packages/pytest_html/plugin.py", line 98, in pytest_runtest_makereport
2020-03-11 17:08:53.021462 | ubuntu-bionic | INTERNALERROR> fixture_extras = item.funcargs.get("extra", [])
2020-03-11 17:08:53.021528 | ubuntu-bionic | INTERNALERROR> AttributeError: 'MoleculeItem' object has no attribute 'funcargs'
2020-03-11 17:08:53.040905 | ubuntu-bionic |
2020-03-11 17:08:53.041195 | ubuntu-bionic | ====================== no tests ran in 264.50s (0:04:24) =======================
2020-03-11 17:08:53.130987 | ubuntu-bionic | ERROR: InvocationError for command /home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/bin/python -m pytest --color=yes --html=/home/zuul/src/opendev.org/openstack/tripleo-quickstart-extras/.tox/molecule/log/reports.html --self-contained-html -rA --molecule-unavailable-driver=fail -k 'molecule and docker' (exited with code 3)

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

Fix proposed to branch: master
Review: https://review.opendev.org/712526

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

Fix proposed to branch: master
Review: https://review.opendev.org/712527

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

Reviewed: https://review.opendev.org/712527
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=7db44e9456c0d65fcb926ad4e07224846659d135
Submitter: Zuul
Branch: master

commit 7db44e9456c0d65fcb926ad4e07224846659d135
Author: Arx Cruz <email address hidden>
Date: Wed Mar 11 19:15:38 2020 +0100

    Pinning pytest-html to <= 2.0.1

    Molecule tests are failing due the new release of pytest-html.
    Pinning it to known working release

    Change-Id: I0a94f2ddbed0fb2ac4bb7c88f31423622c1f3cc9
    Closes-Bug: #1867035

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.opendev.org/712526
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=21a097e402a9ee956cd88d5d83eecac66b5c5c32
Submitter: Zuul
Branch: master

commit 21a097e402a9ee956cd88d5d83eecac66b5c5c32
Author: Arx Cruz <email address hidden>
Date: Wed Mar 11 19:14:04 2020 +0100

    Pinning pytest-html to <= 2.0.1

    Molecule tests are failing due the new release of pytest-html.
    Pinning it to known working release

    Change-Id: I76d53d6e58c4da57932a550dc797d42b453bd1e6
    Closes-Bug: #1867035

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

Fix proposed to branch: master
Review: https://review.opendev.org/712679

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

Reviewed: https://review.opendev.org/712679
Committed: https://git.openstack.org/cgit/openstack/tripleo-operator-ansible/commit/?id=4209a94cd2b280695f71ec8264a9e90ed1e8a105
Submitter: Zuul
Branch: master

commit 4209a94cd2b280695f71ec8264a9e90ed1e8a105
Author: Alex Schultz <email address hidden>
Date: Thu Mar 12 07:46:21 2020 -0600

    Pinning pytest-html to <= 2.0.1

    Molecule tests are failing due the new release of pytest-html.
    Pinning it to known working release

    Change-Id: I2d928651ddf560672d7683511b1990ca000ecc52
    Closes-Bug: #1867035

Revision history for this message
wes hayutin (weshayutin) wrote :
Changed in tripleo:
status: Fix Released → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.opendev.org/713532

Changed in tripleo:
assignee: Arx Cruz (arxcruz) → Steve Baker (steve-stevebaker)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

Fix proposed to branch: master
Review: https://review.opendev.org/713542

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

Reviewed: https://review.opendev.org/713542
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=1b5274793b92383255df18b41ee49045458b7522
Submitter: Zuul
Branch: master

commit 1b5274793b92383255df18b41ee49045458b7522
Author: Steve Baker <email address hidden>
Date: Wed Mar 18 10:15:16 2020 +1300

    Adjust molecule requirements

    This change uses the same pytest/molecule requirements spec as
    tripleo-quickstart and breaks out the requirements into their own
    file.

    [1] https://review.opendev.org/#/c/713532/
    Closes-Bug: #1867035

    Change-Id: I728183f608eb7ab9571d66cc8c515fe52f4dafc0

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/713532
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=076c67e8796a06b18e05f3da9e962fd9518d1602
Submitter: Zuul
Branch: master

commit 076c67e8796a06b18e05f3da9e962fd9518d1602
Author: Steve Baker <email address hidden>
Date: Wed Mar 18 09:43:18 2020 +1300

    Adjust molecule requirements

    openstack-tox-molecule is currently broken with dependency issues
    between pytest-html and molecule.

    This change uses the same pytest/molecule requirements spec as
    tripleo-ansible[1] and breaks out the requirements into their own
    file.

    [1] https://opendev.org/openstack/tripleo-ansible/src/branch/master/molecule-requirements.txt
    Closes-Bug: #1867035

    Change-Id: I89f969808877c389af3d1fb977530735984b9bbf

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.