AttributeError: 'NoneType' object has no attribute 'version_tuple
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Unassigned |
Bug Description
On CS9 pipeline, Container Build and Image build jobs are failing with following errors:
```
TASK [oooci-build-images : Create temp venv w/ virtualenv command]
2021-12-02 10:32:01.437898 | primary | ERROR
2021-12-02 10:32:01.438246 | primary | {
2021-12-02 10:32:01.438304 | primary | "msg": "stdout: AttributeError: 'NoneType' object has no attribute 'version_tuple'\n"
2021-12-02 10:32:01.438348 | primary | }
```
OR
```
2021-12-02 09:17:04.738180 | LOOP [build-containers : Install deps from upper-constraints]
2021-12-02 09:17:06.197455 | primary | ERROR: Item: tripleo-common
2021-12-02 09:17:06.197824 | primary | {
2021-12-02 09:17:06.197887 | primary | "ansible_loop_var": "item",
2021-12-02 09:17:06.197953 | primary | "item": "tripleo-common",
2021-12-02 09:17:06.198004 | primary | "msg": "stdout: AttributeError: 'NoneType' object has no attribute 'version_tuple'\n"
2021-12-02 09:17:06.198071 | primary | }
2021-12-02 09:17:06.198157 | primary | ok: All items complete
2021-12-02 09:17:06.198207 |
2021-12-02 09:17:07.300107 | primary | ERROR: Item: python-
2021-12-02 09:17:07.300578 | primary | {
2021-12-02 09:17:07.300664 | primary | "ansible_loop_var": "item",
2021-12-02 09:17:07.300702 | primary | "item": "python-
2021-12-02 09:17:07.300731 | primary | "msg": "stdout: AttributeError: 'NoneType' object has no attribute 'version_tuple'\n"
2021-12-02 09:17:07.300759 | primary | }
2021-12-02 09:17:08.270688 | primary | ERROR: Item: tripleo-ansible
2021-12-02 09:17:08.270891 | primary | {
2021-12-02 09:17:08.270930 | primary | "ansible_loop_var": "item",
2021-12-02 09:17:08.270959 | primary | "item": "tripleo-ansible",
2021-12-02 09:17:08.270986 | primary | "msg": "stdout: AttributeError: 'NoneType' object has no attribute 'version_tuple'\n"
2021-12-02 09:17:08.271025 | primary | }
```
By Looking at both the failed tasks:
```
virtualenv_command: "{{ 'virtualenv' if ansible_
```
```
virtualenv_python: "{{ virtualenv_
```
In both cases, virtualenv-3 might be available.
Better we can switch to python -m venv as a virtualenv command to avoid this issue.
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- ci/+/820172
Review: https:/