Project

General

Profile

Bug #42402

mgr/dashboard: run-backend-api-tests.sh cannot be sourced anymore using ZSH

Added by Patrick Seidensal 25 days ago. Updated 23 days ago.

Status:
Need Review
Priority:
Normal
Category:
dashboard/qa
Target version:
-
Start date:
10/21/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

run-backend-api-tests.sh cannot be sourced anymore after `set -eo pipefail` has been added at the top of the file. Removing just this line also doesn't resolve the issue completely, as the preparation of the test environment fails with errors, too, whereas calling `run-backend-api-tests.sh` simply works.

user@home /mnt/usb/ceph/src/pybind/mgr/dashboard ±wip-pna-host-devices⚡ » source run-backend-api-tests.sh
get_build_py_version:cd:3: no such file or directory: /mnt/usb/ceph/src/pybind/mgr/dashboard/../../../..//mnt/usb/ceph/src/pybind/mgr/dashboard/../../../../build
grep: CMakeCache.txt: No such file or directory
grep: CMakeCache.txt: No such file or directory
get_build_py_version:9: parse error: condition expected: =
Running virtualenv with interpreter /usr/bin/python
Already using interpreter /usr/bin/python
New python executable in /tmp/tmp.2MpiufNdnX/venv/bin/python
Installing setuptools, pip, wheel...
done.
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                              
Requirement already satisfied: setuptools>=12 in ./venv/lib/python2.7/site-packages (41.4.0)
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                              
ERROR: You must give at least one requirement to install (see "pip help install")
(eval):2: command not found: apache-libcloud==2.2.1
(eval):4: command not found: backports.ssl-match-hostname==3.5.0.1
(eval):29: command not found: python-dateutil==2.6.1
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                              
Collecting CherryPy==13.1.0
  Using cached https://files.pythonhosted.org/packages/68/21/114959674481e3bb94edf6a75dbae381387fd601f72fb6505b823a965c3b/CherryPy-13.1.0-py2.py3-none-any.whl
Collecting enum34==1.1.6
  Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting more-itertools==4.1.0
  Using cached https://files.pythonhosted.org/packages/4a/88/c28e2a2da8f3dc3a391d9c97ad949f2ea0c05198222e7e6af176e5bf9b26/more_itertools-4.1.0-py2-none-any.whl
Collecting PyJWT==1.6.4
  Using cached https://files.pythonhosted.org/packages/93/d1/3378cc8184a6524dc92993090ee8b4c03847c567e298305d6cf86987e005/PyJWT-1.6.4-py2.py3-none-any.whl
Collecting pyopenssl==17.5.0
  Using cached https://files.pythonhosted.org/packages/79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516/pyOpenSSL-17.5.0-py2.py3-none-any.whl
Collecting bcrypt==3.1.4
  Using cached https://files.pythonhosted.org/packages/2e/5a/2abeae20ce294fe6bf63da0e0b5a885c788e1360bbd124edcc0429678a59/bcrypt-3.1.4-cp27-cp27mu-manylinux1_x86_64.whl
Collecting python3-saml==1.4.1
  Using cached https://files.pythonhosted.org/packages/e5/2f/0110d805d08360a2940b7e39fc3852db5d2582d94d0878cdac43f8c32823/python3_saml-1.4.1-py2-none-any.whl
Collecting requests==2.20.0
  Using cached https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl
Collecting Routes==2.4.1
  Using cached https://files.pythonhosted.org/packages/50/50/c1c0666778c7986368896b0e0f640e41160a43cd3ffc7ff008f61f0f6cfd/Routes-2.4.1-py2.py3-none-any.whl
Collecting six==1.11.0
  Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting cheroot>=5.9.1
  Using cached https://files.pythonhosted.org/packages/bf/be/51b1517c6dbf3851d44b36ff08a6e1012464149f89f74c46b29d2f76545e/cheroot-8.2.1-py2.py3-none-any.whl
Collecting portend>=2.1.1
  Using cached https://files.pythonhosted.org/packages/0a/f5/0e5fe0bba1450034f023519aed3ca326bc42981475a93e3645ab868f351c/portend-2.5-py2.py3-none-any.whl
Collecting cryptography>=2.1.4
  Using cached https://files.pythonhosted.org/packages/c8/52/ad7f2cbe3b6e9340526dc401b38bb67c06160449446e15b0bf5f947fa168/cryptography-2.8-cp27-cp27mu-manylinux2010_x86_64.whl
Collecting cffi>=1.1
  Using cached https://files.pythonhosted.org/packages/3f/e8/e0181a24f040c1f001cc4d5bba7036b2f04ec18b4089d720ebce207e98d2/cffi-1.13.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting isodate>=0.5.0
  Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl
Processing /home/user/.cache/pip/wheels/6b/6c/75/2429cf3dba548938fce59f138503bdb0a07e5e53ab4aeeb71d/xmlsec-1.3.3-cp27-cp27mu-linux_x86_64.whl
Collecting defusedxml==0.5.0
  Using cached https://files.pythonhosted.org/packages/87/1c/17f3e3935a913dfe2a5ca85fa5ccbef366bfd82eb318b1f75dadbf0affca/defusedxml-0.5.0-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1
  Using cached https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17
  Using cached https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl
Processing /home/user/.cache/pip/wheels/80/c7/7e/74a37083827b36f0e87d60824124409b8cc88eea0940cada72/repoze.lru-0.7-cp27-none-any.whl
Collecting jaraco.functools
  Using cached https://files.pythonhosted.org/packages/12/a4/3e7366d0f5e75dcad7be88524c8cbd0f3a9fb1db243269550981740c57fe/jaraco.functools-2.0-py2.py3-none-any.whl
Collecting backports.functools-lru-cache; python_version < "3.3" 
  Using cached https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting tempora>=1.8
  Using cached https://files.pythonhosted.org/packages/5c/12/4c97c44e5c9d111649e363353a4ca3ece9c6cc04b11cc48540f26e42d7b9/tempora-1.14.1-py2.py3-none-any.whl
Collecting ipaddress; python_version < "3" 
  Using cached https://files.pythonhosted.org/packages/c2/f8/49697181b1651d8347d24c095ce46c7346c37335ddc7d255833e7cde674d/ipaddress-1.0.23-py2.py3-none-any.whl
Processing /home/user/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511/pycparser-2.19-py2.py3-none-any.whl
Collecting lxml>=3.0
  Using cached https://files.pythonhosted.org/packages/e4/f4/65d145cd6917131826050b0479be35aaccba2847b7f80fc4afc6bec6616b/lxml-4.4.1-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pkgconfig
  Using cached https://files.pythonhosted.org/packages/b4/2c/bf434cb5a6590417e1d4468050ec317ea17fd6231c2a256df4646c11e588/pkgconfig-1.5.1-py2.py3-none-any.whl
Collecting pytz
  Using cached https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Installing collected packages: six, more-itertools, backports.functools-lru-cache, jaraco.functools, cheroot, pytz, tempora, portend, CherryPy, enum34, PyJWT, pycparser, cffi, ipaddress, cryptography, pyopenssl, bcrypt, isodate, lxml, pkgconfig, xmlsec, defusedxml, python3-saml, urllib3, idna, chardet, certifi, requests, repoze.lru, Routes
Successfully installed CherryPy-13.1.0 PyJWT-1.6.4 Routes-2.4.1 backports.functools-lru-cache-1.5 bcrypt-3.1.4 certifi-2019.9.11 cffi-1.13.0 chardet-3.0.4 cheroot-8.2.1 cryptography-2.8 defusedxml-0.5.0 enum34-1.1.6 idna-2.7 ipaddress-1.0.23 isodate-0.6.0 jaraco.functools-2.0 lxml-4.4.1 more-itertools-4.1.0 pkgconfig-1.5.1 portend-2.5 pycparser-2.19 pyopenssl-17.5.0 python3-saml-1.4.1 pytz-2019.3 repoze.lru-0.7 requests-2.20.0 six-1.11.0 tempora-1.14.1 urllib3-1.24.3 xmlsec-1.3.3
Cloning into 'teuthology'...
remote: Enumerating objects: 355, done.
remote: Counting objects: 100% (355/355), done.
remote: Compressing objects: 100% (328/328), done.
remote: Total 355 (delta 27), reused 120 (delta 13), pack-reused 0
Receiving objects: 100% (355/355), 915.41 KiB | 2.16 MiB/s, done.
Resolving deltas: 100% (27/27), done.
Running virtualenv with interpreter /usr/bin/python
Already using interpreter /usr/bin/python
New python executable in /tmp/tmp.2MpiufNdnX/coverage-venv/bin/python
Installing setuptools, pip, wheel...
done.
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
Collecting coverage==4.5.2
  Using cached https://files.pythonhosted.org/packages/af/cf/e240715a50d64b0538a08a2be1ae4060fb25791e911cbe8fd2367b5deeaa/coverage-4.5.2-cp27-cp27mu-manylinux1_x86_64.whl
Installing collected packages: coverage
Successfully installed coverage-4.5.2
run_teuthology_tests:cd:3: no such file or directory: /mnt/usb/ceph/src/pybind/mgr/dashboard/../../../..//mnt/usb/ceph/src/pybind/mgr/dashboard/../../../../build
find: ‘../src/pybind/mgr/dashboard/’: No such file or directory
ls: cannot access '/mnt/usb/ceph/src/pybind/mgr/dashboard/../../../..//mnt/usb/ceph/src/pybind/mgr/dashboard/../../../../build/../qa/tasks/mgr/dashboard/test_*': No such file or directory
python: can't open file '../qa/tasks/vstart_runner.py': [Errno 2] No such file or directory
user@home /mnt/usb/ceph/src/pybind/mgr/dashboard ±wip-pna-host-devices⚡ » 

History

#1 Updated by Patrick Seidensal 25 days ago

  • Description updated (diff)

#2 Updated by Patrick Seidensal 24 days ago

  • Status changed from New to Verified
  • Assignee set to Sebastian Wagner

The issue is related to ZSH. ZSH compatibility has been broken with a few of the most recent commits, but by using Bash the problem can be circumvented. Switching to bash from zsh by calling `bash` doesn't fix all problems, though. Just by starting the terminal with bash instead of zsh resulted in the ability to always successfully source `run-backend-api-tests.sh`.

#3 Updated by Patrick Seidensal 24 days ago

  • Subject changed from mgr/dashboard: run-backend-api-tests.sh cannot be sourced anymore to mgr/dashboard: run-backend-api-tests.sh cannot be sourced anymore using ZSH

#4 Updated by Sebastian Wagner 23 days ago

  • Status changed from Verified to Need Review
  • Pull request ID set to 31070

Also available in: Atom PDF