tripleo-ansible openstack-tox-linters fails with NoInterpreter

Bug #2001602 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Rabi Mishra

Bug Description

Only noticed on master.

https://zuul.openstack.org/builds?job_name=openstack-tox-linters+&project=openstack%2Ftripleo-ansible&branch=master&skip=0

https://f184770542e682cfbbec-28f77b89aa54c32c160da5837ea58509.ssl.cf5.rackcdn.com/868052/3/check/openstack-tox-linters/6a6fedd/job-output.txt

2023-01-04 06:32:40.462638 | ubuntu-jammy | Traceback (most recent call last):
2023-01-04 06:32:40.462652 | ubuntu-jammy | File "/home/zuul/.local/tox/bin/tox", line 8, in <module>
2023-01-04 06:32:40.462732 | ubuntu-jammy | sys.exit(run())
2023-01-04 06:32:40.462742 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/run.py", line 19, in run
2023-01-04 06:32:40.462785 | ubuntu-jammy | result = main(sys.argv[1:] if args is None else args)
2023-01-04 06:32:40.462795 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/run.py", line 45, in main
2023-01-04 06:32:40.462829 | ubuntu-jammy | result = handler(state)
2023-01-04 06:32:40.462841 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/cmd/legacy.py", line 111, in legacy
2023-01-04 06:32:40.462891 | ubuntu-jammy | return run_sequential(state)
2023-01-04 06:32:40.462903 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/cmd/run/sequential.py", line 22, in run_sequential
2023-01-04 06:32:40.462940 | ubuntu-jammy | return execute(state, max_workers=1, has_spinner=False, live=True)
2023-01-04 06:32:40.462952 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/cmd/run/common.py", line 213, in execute
2023-01-04 06:32:40.463005 | ubuntu-jammy | state.envs.ensure_only_run_env_is_active()
2023-01-04 06:32:40.463019 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/env_select.py", line 365, in ensure_only_run_env_is_active
2023-01-04 06:32:40.463099 | ubuntu-jammy | envs, active = self._defined_envs, self._env_name_to_active()
2023-01-04 06:32:40.463111 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/env_select.py", line 225, in _defined_envs
2023-01-04 06:32:40.463169 | ubuntu-jammy | raise failed[next(iter(failed_to_create))]
2023-01-04 06:32:40.463179 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/env_select.py", line 202, in _defined_envs
2023-01-04 06:32:40.463229 | ubuntu-jammy | run_env.package_env = self._build_pkg_env(pkg_name_type, name, env_name_to_active)
2023-01-04 06:32:40.463238 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/session/env_select.py", line 270, in _build_pkg_env
2023-01-04 06:32:40.463304 | ubuntu-jammy | name_type = next(child_package_envs)
2023-01-04 06:32:40.463329 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/tox_env/python/virtual_env/package/pyproject.py", line 141, in register_run_env
2023-01-04 06:32:40.463364 | ubuntu-jammy | yield from super().register_run_env(run_env)
2023-01-04 06:32:40.463375 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/tox_env/python/package.py", line 110, in register_run_env
2023-01-04 06:32:40.463418 | ubuntu-jammy | pkg_env = run_env.conf["wheel_build_env"]
2023-01-04 06:32:40.463430 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/config/sets.py", line 114, in __getitem__
2023-01-04 06:32:40.463471 | ubuntu-jammy | return self.load(item)
2023-01-04 06:32:40.463489 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/config/sets.py", line 125, in load
2023-01-04 06:32:40.463522 | ubuntu-jammy | return config_definition.__call__(self._conf, self.loaders, ConfigLoadArgs(chain, self.name, self.env_name))
2023-01-04 06:32:40.463535 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/config/of_type.py", line 110, in __call__
2023-01-04 06:32:40.463566 | ubuntu-jammy | value = self.default(conf, args.env_name) if callable(self.default) else self.default
2023-01-04 06:32:40.463576 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/tox_env/python/package.py", line 90, in default_wheel_tag
2023-01-04 06:32:40.463626 | ubuntu-jammy | run_py = cast(Python, run_env).base_python
2023-01-04 06:32:40.463636 | ubuntu-jammy | File "/home/zuul/.local/tox/lib/python3.10/site-packages/tox/tox_env/python/api.py", line 240, in base_python
2023-01-04 06:32:40.463740 | ubuntu-jammy | raise NoInterpreter(base_pythons)
2023-01-04 06:32:40.463754 | ubuntu-jammy | tox.tox_env.python.api.NoInterpreter: could not find python interpreter matching any of the specs py38
2023-01-04 06:32:40.827293 | ubuntu-jammy | ERROR
2023-01-04 06:32:40.827722 | ubuntu-jammy | {
2023-01-04 06:32:40.827820 | ubuntu-jammy | "delta": "0:00:00.528777",
2023-01-04 06:32:40.827904 | ubuntu-jammy | "end": "2023-01-04 06:32:40.500416",
2023-01-04 06:32:40.827982 | ubuntu-jammy | "msg": "non-zero return code",
2023-01-04 06:32:40.828061 | ubuntu-jammy | "rc": 1,
2023-01-04 06:32:40.828140 | ubuntu-jammy | "start": "2023-01-04 06:32:39.971639"

Revision history for this message
Rabi Mishra (rabi) wrote :
tags: added: ci promotion-blocker
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
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/+/869429
Committed: https://opendev.org/openstack/tripleo-ansible/commit/b88008dd64049de8a3ae7e38ee76d563134af2ef
Submitter: "Zuul (22348)"
Branch: master

commit b88008dd64049de8a3ae7e38ee76d563134af2ef
Author: rabi <email address hidden>
Date: Tue Jan 3 09:34:32 2023 +0530

    Fix issues with tox 4.2.4

    tox now hard fails if there is mismatch in spec
    attributes[1]. This works around the issue
    temporarily. We probably have to drop py38 jobs
    and specify basepython for py39 target in the
    future.

    Removes ansible-galaxy --timeout for py* jobs to
    workaround. We may hit the timeout with py* jobs.

    [1] https://github.com/tox-dev/tox/pull/2824/

    Closes-Bug: #2001602
    Closes-Bug: #2002035
    Change-Id: Iad2455193885205236e03c1219352102bb931de8

Changed in tripleo:
status: In Progress → Fix Released
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.