Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1653777
Summary: | python3-molecule missing dependencies | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicolas Hicher <nhicher> |
Component: | python-molecule | Assignee: | Brett Lentz <blentz> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 31 | CC: | bcotton, blentz, djuran, drew.northup, mikedep333, nerijus, nhicher |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-molecule-3.0.2-6.fc32 python-molecule-3.0.2-6.fc31 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-04 04:55:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nicolas Hicher
2018-11-27 15:50:37 UTC
It works if I install pip-3 pytest but with deprecation warnings: [root@fedora-29 dummy]# pip-3 install pytest WARNING: Running pip install with root privileges is generally not a good idea. Try `pip-3 install --user` instead. Collecting pytest Using cached https://files.pythonhosted.org/packages/81/27/d4302e4e00497448081120f65029696070806bc8e649b83f644de006d710/pytest-4.0 .1-py2.py3-none-any.whl Requirement already satisfied: pluggy>=0.7 in /usr/local/lib/python3.7/site-packages (from pytest) (0.8.0) Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3.7/site-packages (from pytest) (17.4.0) Requirement already satisfied: more-itertools>=4.0.0 in /usr/lib/python3.7/site-packages (from pytest) (4.1.0) Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.7/site-packages (from pytest) (1.11.0) Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from pytest) (40.4.3) Requirement already satisfied: atomicwrites>=1.0 in /usr/lib/python3.7/site-packages (from pytest) (1.1.5) Requirement already satisfied: py>=1.5.0 in /usr/lib/python3.7/site-packages (from pytest) (1.5.4) molecule 2.19 requires python-gilt==1.2.1, which is not installed. molecule 2.19 has requirement colorama==0.3.9, but you'll have colorama 0.4.0 which is incompatible. molecule 2.19 has requirement pbr==4.1.0, but you'll have pbr 4.1.1 which is incompatible. molecule 2.19 has requirement psutil==5.4.6, but you'll have psutil 5.4.3 which is incompatible. molecule 2.19 has requirement PyYAML==3.13, but you'll have pyyaml 4.2b4 which is incompatible. molecule 2.19 has requirement testinfra==1.16.0, but you'll have testinfra 1.17.0 which is incompatible. molecule 2.19 has requirement tree-format==0.1.2, but you'll have tree-format 0.1.0 which is incompatible. molecule 2.19 has requirement yamllint==1.11.1, but you'll have yamllint 1.12.1 which is incompatible. Installing collected packages: pytest Successfully installed pytest-4.0.1 [root@fedora-29 dummy]# pip-3 install --user pytest WARNING: Running pip install with root privileges is generally not a good idea. Try `pip-3 install --user` instead. Requirement already satisfied: pytest in /usr/local/lib/python3.7/site-packages (4.0.1) Requirement already satisfied: six>=1.10.0 in /usr/lib/python3.7/site-packages (from pytest) (1.11.0) Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from pytest) (40.4.3) Requirement already satisfied: pluggy>=0.7 in /usr/local/lib/python3.7/site-packages (from pytest) (0.8.0) Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3.7/site-packages (from pytest) (17.4.0) Requirement already satisfied: py>=1.5.0 in /usr/lib/python3.7/site-packages (from pytest) (1.5.4) Requirement already satisfied: atomicwrites>=1.0 in /usr/lib/python3.7/site-packages (from pytest) (1.1.5) Requirement already satisfied: more-itertools>=4.0.0 in /usr/lib/python3.7/site-packages (from pytest) (4.1.0) [root@fedora-29 dummy]# molecule test --> Executing Testinfra tests found in /root/dummy/molecule/default/tests/... [36/5708] ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-4.0.1, py-1.5.4, pluggy-0.8.0 rootdir: /root/dummy/molecule/default, inifile: plugins: testinfra-1.17.0, xdist-1.22.5, forked-0.2, cov-2.5.1 collected 1 item tests/test_default.py . [100%] =============================== warnings summary =============================== /usr/lib/python3.7/site-packages/jinja2/utils.py:485 /usr/lib/python3.7/site-packages/jinja2/utils.py:485: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping /usr/lib64/python3.7/site-packages/markupsafe/__init__.py:13 /usr/lib64/python3.7/site-packages/markupsafe/__init__.py:13: DeprecationWarning: Using or importing the ABCs from 'collection s' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping /usr/lib64/python3.7/site-packages/yaml/constructor.py:126 /usr/lib64/python3.7/site-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if not isinstance(key, collections.Hashable): /usr/lib/python3.7/site-packages/ansible/utils/unsafe_proxy.py:56 /usr/lib/python3.7/site-packages/ansible/utils/unsafe_proxy.py:56: DeprecationWarning: Using or importing the ABCs from 'colle ctions' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping, MutableSequence, Set /usr/lib/python3.7/site-packages/ansible/utils/unsafe_proxy.py:56: DeprecationWarning: Using or importing the ABCs from 'colle ctions' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping, MutableSequence, Set /usr/lib/python3.7/site-packages/ansible/utils/plugin_docs.py:23 /usr/lib/python3.7/site-packages/ansible/utils/plugin_docs.py:23: DeprecationWarning: Using or importing the ABCs from 'collec tions' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping, MutableSet, MutableSequence /usr/lib/python3.7/site-packages/ansible/utils/listify.py:22 /usr/lib/python3.7/site-packages/ansible/utils/listify.py:22: DeprecationWarning: Using or importing the ABCs from 'collection s' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable tests/test_default.py::test_hosts_file[ansible://instance] /usr/lib/python3.7/site-packages/socks.py:58: DeprecationWarning: Using or importing the ABCs from 'collections' instead of fr om 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Callable /usr/lib64/python3.7/site-packages/ruamel/yaml/comments.py:14: DeprecationWarning: Using or importing the ABCs from 'collectio ns' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableSet, Sized, Set -- Docs: https://docs.pytest.org/en/latest/warnings.html ===================== 1 passed, 9 warnings in 6.14 seconds ===================== Verifier completed successfully. --> Scenario: 'default' --> Action: 'destroy' The python-docker package isn't a strict dependency, as molecule supports multiple ways of operating. e.g. Running your molecule tests on AWS would require boto and would not require python-docker. I can add some weak deps (Recommends) for the various drivers that molecule supports. That should help make the user experience a little nicer if you just want to take all of the defaults. But, it'll bloat out the install footprint and inevitably include support for many more options than just docker. e.g. Few people will require installing the libraries to run on AWS, GCE, Azure, OpenStack, LXD, Vagrant, and Docker. The py.test issue is not a molecule issue. It's an issue for the testinfra package to resolve. Please open a bug against that package for this part of the issue. Hello Brett, I agree that's python-docker is not a strict dependency, however, it's the default driver for molecule. But I agree, a weak deps should do the job. I will create a bug report for testinfra, thanks for your review. I created a bug report on python-testinfra: https://bugzilla.redhat.com/show_bug.cgi?id=1654418 I found what is the issue, python3-molecule depends on python3-testinfra, and python3-testinfra depends on python3-pytest. python3-python contains only: /usr/bin/py.test-3 And molecule/verifier/testinfra.py contains: self._testinfra_command = sh.Command('py.test').bake(... If I replace py.test by py.test-3 everything is ok. I will close the testinfra bug, thanks. I tried to install python2-pytest, but molecule failed with: ============================= test session starts ============================== platform linux2 -- Python 2.7.15, pytest-3.6.4, py-1.5.4, pluggy-0.6.0 rootdir: /root/dummy/molecule/default, inifile: plugins: testinfra-1.17.0, xdist-1.22.5, forked-0.2, cov-2.5.1 collected 0 items / 1 errors ==================================== ERRORS ==================================== ____________________ ERROR collecting tests/test_default.py ____________________ tests/test_default.py:3: in <module> import testinfra.utils.ansible_runner /usr/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:226: in load_module py.builtin.exec_(co, mod.__dict__) /usr/lib/python2.7/site-packages/testinfra/utils/ansible_runner.py:28: in <module> "You must install ansible package to use the ansible backend") E RuntimeError: You must install ansible package to use the ansible backend !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!! =========================== 1 error in 0.14 seconds ============================ FEDORA-2019-95a631828d has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-95a631828d This message is a reminder that Fedora 29 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '29'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 29 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This bug also applies to Fedora 30 and most likely also Fedora 31. Please fix. Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. FEDORA-2020-d83a251120 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-d83a251120 The missing dependency python-click-help-colors is in testing in bodhi right now, per this package request: https://bugzilla.redhat.com/show_bug.cgi?id=1821158 https://bodhi.fedoraproject.org/updates/?packages=python-click-help-colors @Michael DePaulo Did you mean to annotate a different ticket? With respect to F31 [1] there are three package build errors left that don't seem to have anything to do with python-click-help-colors. The molecule packages that are for F32 & F33 look good in bodhi. Am I missing something? https://taskotron.fedoraproject.org/artifacts/all/b50040e2-570c-11ea-abcc-525400364adf/tests.yml/python-molecule-3.0.2-3.fc31.log FEDORA-2020-da7af6e03f has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-da7af6e03f FEDORA-2020-0c221024ae has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-0c221024ae FEDORA-2020-fd94e0d12d has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-fd94e0d12d FEDORA-2020-0c221024ae has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-0c221024ae` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-0c221024ae See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-fd94e0d12d has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-fd94e0d12d` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-fd94e0d12d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-da7af6e03f has been pushed to the Fedora 30 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-da7af6e03f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-da7af6e03f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-fd94e0d12d has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-0c221024ae has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report. |