"sudo: python3.5: command not found" in centos-7 jobs

Bug #1855512 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

eg. https://zuul.opendev.org/t/openstack/build/155b466d3f044d879cde6ed41b32e04b/logs

2019-12-06 10:09:43.814 | + functions-common:is_suse_linux_enterprise:482 : [[ -z CentOS ]]
2019-12-06 10:09:43.817 | + functions-common:is_suse_linux_enterprise:486 : [[ CentOS =~ (^SUSE) ]]
2019-12-06 10:09:43.819 | + functions-common:GetDistro:396 : [[ CentOS =~ (Red.*Hat) ]]
2019-12-06 10:09:43.822 | + functions-common:GetDistro:396 : [[ CentOS =~ (CentOS) ]]
2019-12-06 10:09:43.825 | + functions-common:GetDistro:399 : DISTRO=rhel7
2019-12-06 10:09:43.827 | + functions-common:GetDistro:424 : typeset -xr DISTRO
2019-12-06 10:09:43.830 | + tools/install_pip.sh:main:44 : echo 'Distro: rhel7'
2019-12-06 10:09:43.830 | Distro: rhel7
2019-12-06 10:09:43.833 | + tools/install_pip.sh:main:126 : get_versions
2019-12-06 10:09:43.837 | ++ tools/install_pip.sh:get_versions:49 : which pip
2019-12-06 10:09:43.841 | + tools/install_pip.sh:get_versions:49 : PIP=/bin/pip
2019-12-06 10:09:43.844 | + tools/install_pip.sh:get_versions:50 : [[ -n /bin/pip ]]
2019-12-06 10:09:43.848 | ++ tools/install_pip.sh:get_versions:51 : /bin/pip --version
2019-12-06 10:09:43.848 | ++ tools/install_pip.sh:get_versions:51 : awk '{ print $2}'
2019-12-06 10:09:44.255 | + tools/install_pip.sh:get_versions:51 : PIP_VERSION=19.3.1
2019-12-06 10:09:44.258 | + tools/install_pip.sh:get_versions:52 : echo 'pip: 19.3.1'
2019-12-06 10:09:44.258 | pip: 19.3.1
2019-12-06 10:09:44.261 | + tools/install_pip.sh:main:135 : is_fedora
2019-12-06 10:09:44.264 | + functions-common:is_fedora:448 : [[ -z CentOS ]]
2019-12-06 10:09:44.266 | + functions-common:is_fedora:452 : '[' CentOS = Fedora ']'
2019-12-06 10:09:44.269 | + functions-common:is_fedora:452 : '[' CentOS = 'Red Hat' ']'
2019-12-06 10:09:44.272 | + functions-common:is_fedora:453 : '[' CentOS = RedHatEnterpriseServer ']'
2019-12-06 10:09:44.274 | + functions-common:is_fedora:454 : '[' CentOS = CentOS ']'
2019-12-06 10:09:44.277 | + tools/install_pip.sh:main:140 : install_get_pip
2019-12-06 10:09:44.280 | + tools/install_pip.sh:install_get_pip:62 : [[ -r /opt/stack/new/devstack/files/get-pip.py ]]
2019-12-06 10:09:44.283 | + tools/install_pip.sh:install_get_pip:63 : head -1 /opt/stack/new/devstack/files/get-pip.py
2019-12-06 10:09:44.283 | + tools/install_pip.sh:install_get_pip:63 : grep -q '#!/usr/bin/env python'
2019-12-06 10:09:44.288 | + tools/install_pip.sh:install_get_pip:79 : [[ ! -r /opt/stack/new/devstack/files/get-pip.py ]]
2019-12-06 10:09:44.291 | + tools/install_pip.sh:install_get_pip:79 : [[ -r /opt/stack/new/devstack/files/get-pip.py.downloaded ]]
2019-12-06 10:09:44.294 | + tools/install_pip.sh:install_get_pip:92 : sudo -H -E python /opt/stack/new/devstack/files/get-pip.py -c /opt/stack/new/devstack/tools/cap-pip.txt
2019-12-06 10:09:46.620 | DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
2019-12-06 10:09:46.719 | Looking in indexes: http://mirror.ord.rax.opendev.org/pypi/simple, http://mirror.ord.rax.opendev.org/wheel/centos-7.7.1908-x86_64
2019-12-06 10:09:46.897 | Collecting pip!=8,<10
2019-12-06 10:09:46.902 | Downloading http://mirror.ord.rax.opendev.org/pypifiles/packages/ac/95/a05b56bb975efa78d3557efa36acaf9cf5d2fd0ee0062060493687432e03/pip-9.0.3-py2.py3-none-any.whl (1.4MB)
2019-12-06 10:09:47.310 | Installing collected packages: pip
2019-12-06 10:09:47.310 | Found existing installation: pip 19.3.1
2019-12-06 10:09:47.475 | Uninstalling pip-19.3.1:
2019-12-06 10:09:47.524 | Successfully uninstalled pip-19.3.1
2019-12-06 10:09:48.671 | Successfully installed pip-9.0.3
2019-12-06 10:09:48.814 | + tools/install_pip.sh:install_get_pip:93 : python3_enabled
2019-12-06 10:09:48.818 | + inc/python:python3_enabled:532 : [[ True == \T\r\u\e ]]
2019-12-06 10:09:48.820 | + inc/python:python3_enabled:533 : return 0
2019-12-06 10:09:48.823 | + tools/install_pip.sh:install_get_pip:94 : sudo -H -E python3.5 /opt/stack/new/devstack/files/get-pip.py -c /opt/stack/new/devstack/tools/cap-pip.txt
2019-12-06 10:09:48.846 | sudo: python3.5: command not found
2019-12-06 10:09:48.851 | ++ ./stack.sh:main:796 : err_trap
2019-12-06 10:09:48.854 | ++ ./stack.sh:err_trap:574 : local r=1
2019-12-06 10:09:48.857 | stack.sh failed: full log in /opt/stack/new/devstacklog.txt.2019-12-06-100857
2019-12-06 10:09:48.859 | Error on exit
2019-12-06 10:09:48.900 | World dumping... see /opt/stack/new/screen-logs/worlddump-2019-12-06-100948.txt for details

Tags: gate-failure
tags: added: gate-failure
Changed in networking-midonet:
importance: Undecided → Critical
assignee: nobody → YAMAMOTO Takashi (yamamoto)
Changed in networking-midonet:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.opendev.org/697648
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=52b7d13449383b83326537824f25f323e38075b2
Submitter: Zuul
Branch: master

commit 52b7d13449383b83326537824f25f323e38075b2
Author: YAMAMOTO Takashi <email address hidden>
Date: Fri Dec 6 20:38:55 2019 +0900

    Specify USE_PYTHON3=False explicitly

    Currently our devstack jobs are with python2 because
    they all are on centos-7, where python3 is not ready.
    They recently started failing with "python3.5 not found" for
    some reasons. (I haven't investigated why.)
    Specify USE_PYTHON3=False as a workaround.

    Closes-Bug: #1855512
    Change-Id: I71c6a20f32650bc58953d237da9aa80bef4d1f60

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 10.0.0.0b1

This issue was fixed in the openstack/networking-midonet 10.0.0.0b1 development milestone.

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.