Skip to content

Instantly share code, notes, and snippets.

@ideepika
Created October 27, 2021 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ideepika/51526acbcff739de1ec6a031287e3b80 to your computer and use it in GitHub Desktop.
Save ideepika/51526acbcff739de1ec6a031287e3b80 to your computer and use it in GitHub Desktop.
ideepika@senta04:~/ceph/src/test$ sudo ./run-ceph-backport-tests.sh
Python 3.8.10 (default, Jun  2 2021, 10:49:15)
[GCC 9.4.0]
Collecting pip>=6.1
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |████████████████████████████████| 1.7 MB 5.3 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-21.3.1
^CTraceback (most recent call last):
  File "/tmp/tmp.TKQIRo9zFb/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 9, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module>
    from pip._internal.cli.parser import ConfigOptionParser
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
    from pip._internal.configuration import Configuration, ConfigurationError
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/configuration.py", line 26, in <module>
    from pip._internal.utils.logging import getLogger
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/utils/logging.py", line 210, in <module>
    class BetterRotatingFileHandler(logging.handlers.RotatingFileHandler):
  File "/tmp/tmp.TKQIRo9zFb/lib/python3.8/site-packages/pip/_internal/utils/logging.py", line 211, in BetterRotatingFileHandler
    def _open(self) -> IO[Any]:
  File "/usr/lib/python3.8/typing.py", line 258, in inner
    return cached(*args, **kwds)
  File "/usr/lib/python3.8/typing.py", line 880, in __class_getitem__
    if not isinstance(params, tuple):
KeyboardInterrupt
+ for f in prepare_environment ${@:-teardown setup}
+ prepare_environment
+ : 0.0.0.0
+ for f in prepare_environment ${@:-teardown setup}
+ teardown
+ podman stop gitea
Error: no container with name or ID gitea found: no such container
+ true
+ podman rm -f gitea
Error: Failed to evict container: "": Failed to find container "gitea" in state: no container with name or ID gitea found: no such container
+ true
++ id -u
+ test 0 '!=' 0
+ : 127.0.0.1
+ for f in ${@:-teardown setup}
+ teardown
+ for i in redmine postgresql-redmine
+ podman stop redmine
Error: no container with name or ID redmine found: no such container
+ true
+ podman rm redmine
Error: no container with name or ID redmine found: no such container
+ true
+ for i in redmine postgresql-redmine
+ podman stop postgresql-redmine
Error: no container with name or ID postgresql-redmine found: no such container
+ true
+ podman rm postgresql-redmine
Error: no container with name or ID postgresql-redmine found: no such container
+ true
+ podman volume rm --force redmine-volume
Error: no volume with name "redmine-volume" found: no such volume

ideepika@senta04:~/ceph/src/test$ ./run-ceph-backport-tests.sh
Python 3.8.10 (default, Jun  2 2021, 10:49:15)
[GCC 9.4.0]
Collecting pip>=6.1
  Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-21.3.1
Collecting tox>=2.9.1
  Using cached tox-3.24.4-py2.py3-none-any.whl (85 kB)
Collecting packaging>=14
  Using cached packaging-21.0-py3-none-any.whl (40 kB)
Collecting toml>=0.9.4
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting six>=1.14.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0
  Using cached virtualenv-20.9.0-py2.py3-none-any.whl (5.6 MB)
Collecting py>=1.4.17
  Using cached py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting filelock>=3.0.0
  Using cached filelock-3.3.1-py3-none-any.whl (9.7 kB)
Collecting pluggy>=0.12.0
  Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting pyparsing>=2.0.2
  Using cached pyparsing-3.0.1-py3-none-any.whl (96 kB)
Collecting platformdirs<3,>=2
  Using cached platformdirs-2.4.0-py3-none-any.whl (14 kB)
Collecting distlib<1,>=0.3.1
  Using cached distlib-0.3.3-py2.py3-none-any.whl (496 kB)
Collecting backports.entry-points-selectable>=1.0.4
  Using cached backports.entry_points_selectable-1.1.0-py2.py3-none-any.whl (6.2 kB)
Installing collected packages: six, pyparsing, platformdirs, filelock, distlib, backports.entry-points-selectable, virtualenv, toml, py, pluggy, packaging, tox
Successfully installed backports.entry-points-selectable-1.1.0 distlib-0.3.3 filelock-3.3.1 packaging-21.0 platformdirs-2.4.0 pluggy-1.0.0 py-1.10.0 pyparsing-3.0.1 six-1.16.0 toml-0.10.2 tox-3.24.4 virtualenv-20.9.0
Collecting poetry
  Using cached poetry-1.1.11-py2.py3-none-any.whl (175 kB)
Collecting requests-toolbelt<0.10.0,>=0.9.1
  Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Collecting cleo<0.9.0,>=0.8.1
  Using cached cleo-0.8.1-py2.py3-none-any.whl (21 kB)
Collecting packaging<21.0,>=20.4
  Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting keyring<22.0.0,>=21.2.0
  Using cached keyring-21.8.0-py3-none-any.whl (32 kB)
Collecting pexpect<5.0.0,>=4.7.0
  Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting pkginfo<2.0,>=1.4
  Using cached pkginfo-1.7.1-py2.py3-none-any.whl (25 kB)
Collecting tomlkit<1.0.0,>=0.7.0
  Using cached tomlkit-0.7.2-py2.py3-none-any.whl (32 kB)
Collecting shellingham<2.0,>=1.1
  Using cached shellingham-1.4.0-py2.py3-none-any.whl (9.4 kB)
Collecting crashtest<0.4.0,>=0.3.0
  Using cached crashtest-0.3.1-py3-none-any.whl (7.0 kB)
Collecting html5lib<2.0,>=1.0
  Using cached html5lib-1.1-py2.py3-none-any.whl (112 kB)
Requirement already satisfied: virtualenv<21.0.0,>=20.0.26 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from poetry) (20.9.0)
Collecting cachecontrol[filecache]<0.13.0,>=0.12.4
  Using cached CacheControl-0.12.6-py2.py3-none-any.whl (19 kB)
Collecting clikit<0.7.0,>=0.6.2
  Using cached clikit-0.6.2-py2.py3-none-any.whl (91 kB)
Collecting poetry-core<1.1.0,>=1.0.7
  Using cached poetry_core-1.0.7-py2.py3-none-any.whl (424 kB)
Collecting requests<3.0,>=2.18
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting cachy<0.4.0,>=0.3.0
  Using cached cachy-0.3.0-py2.py3-none-any.whl (20 kB)
Collecting msgpack>=0.5.2
  Using cached msgpack-1.0.2-cp38-cp38-manylinux1_x86_64.whl (302 kB)
Collecting lockfile>=0.9
  Using cached lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Collecting pastel<0.3.0,>=0.2.0
  Using cached pastel-0.2.1-py2.py3-none-any.whl (6.0 kB)
Collecting pylev<2.0,>=1.3
  Using cached pylev-1.4.0-py2.py3-none-any.whl (6.1 kB)
Collecting webencodings
  Using cached webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: six>=1.9 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from html5lib<2.0,>=1.0->poetry) (1.16.0)
Collecting jeepney>=0.4.2
  Using cached jeepney-0.7.1-py3-none-any.whl (54 kB)
Collecting SecretStorage>=3.2
  Using cached SecretStorage-3.3.1-py3-none-any.whl (15 kB)
Requirement already satisfied: pyparsing>=2.0.2 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from packaging<21.0,>=20.4->poetry) (3.0.1)
Collecting ptyprocess>=0.5
  Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting charset-normalizer~=2.0.0
  Using cached charset_normalizer-2.0.7-py3-none-any.whl (38 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Requirement already satisfied: platformdirs<3,>=2 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from virtualenv<21.0.0,>=20.0.26->poetry) (2.4.0)
Requirement already satisfied: backports.entry-points-selectable>=1.0.4 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from virtualenv<21.0.0,>=20.0.26->poetry) (1.1.0)
Requirement already satisfied: filelock<4,>=3.2 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from virtualenv<21.0.0,>=20.0.26->poetry) (3.3.1)
Requirement already satisfied: distlib<1,>=0.3.1 in /tmp/tmp.NeFzlIBwDJ/lib/python3.8/site-packages (from virtualenv<21.0.0,>=20.0.26->poetry) (0.3.3)
Collecting cryptography>=2.0
  Using cached cryptography-35.0.0-cp36-abi3-manylinux_2_24_x86_64.whl (3.5 MB)
Collecting cffi>=1.12
  Using cached cffi-1.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Installing collected packages: pycparser, urllib3, idna, charset-normalizer, cffi, certifi, requests, pylev, pastel, msgpack, jeepney, cryptography, crashtest, webencodings, SecretStorage, ptyprocess, lockfile, clikit, cachecontrol, tomlkit, shellingham, requests-toolbelt, poetry-core, pkginfo, pexpect, packaging, keyring, html5lib, cleo, cachy, poetry
  Attempting uninstall: packaging
    Found existing installation: packaging 21.0
    Uninstalling packaging-21.0:
      Successfully uninstalled packaging-21.0
Successfully installed SecretStorage-3.3.1 cachecontrol-0.12.6 cachy-0.3.0 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.7 cleo-0.8.1 clikit-0.6.2 crashtest-0.3.1 cryptography-35.0.0 html5lib-1.1 idna-3.3 jeepney-0.7.1 keyring-21.8.0 lockfile-0.12.2 msgpack-1.0.2 packaging-20.9 pastel-0.2.1 pexpect-4.8.0 pkginfo-1.7.1 poetry-1.1.11 poetry-core-1.0.7 ptyprocess-0.7.0 pycparser-2.20 pylev-1.4.0 requests-2.26.0 requests-toolbelt-0.9.1 shellingham-1.4.0 tomlkit-0.7.2 urllib3-1.26.7 webencodings-0.5.1
Installing dependencies from lock file

Package operations: 27 installs, 10 updates, 0 removals

  • Updating certifi (2021.10.8 -> 2021.5.30)
  • Updating charset-normalizer (2.0.7 -> 2.0.4)
  • Updating distlib (0.3.3 -> 0.3.2)
  • Updating filelock (3.3.1 -> 3.0.12)
  • Updating idna (3.3 -> 3.2)
  • Updating platformdirs (2.4.0 -> 2.3.0)
  • Updating pyparsing (3.0.1 -> 2.4.7)
  • Installing smmap (4.0.0)
  • Updating urllib3 (1.26.7 -> 1.26.6)
  • Installing attrs (21.2.0)
  • Installing cfgv (3.3.1)
  • Installing click (8.0.1)
  • Installing gitdb (4.0.7)
  • Installing identify (2.2.13)
  • Installing iniconfig (1.1.1)
  • Installing mypy-extensions (0.4.3)
  • Installing nodeenv (1.6.0)
  • Installing orderedmultidict (1.0.1)
  • Updating packaging (20.9 -> 21.0)
  • Installing pathspec (0.9.0)
  • Installing pyyaml (5.4.1)
  • Installing regex (2021.8.28)
  • Installing rfc3986 (1.5.0)
  • Installing tomli (1.2.1)
  • Installing typing-extensions (3.10.0.2)
  • Updating virtualenv (20.9.0 -> 20.7.2)
  • Installing black (21.8b0)
  • Installing fedeproxy (0.0.4)
  • Installing furl (2.1.2)
  • Installing gitpython (3.1.20)
  • Installing isort (5.9.3)
  • Installing jschon (0.7.2)
  • Installing ndjson (0.3.1)
  • Installing pre-commit (2.15.0)
  • Installing pytest (6.2.5)
  • Installing python-redmine (2.3.0)
  • Installing sh (1.14.2)
black....................................................................Passed
isort....................................................................Passed
+ for f in prepare_environment ${@:-teardown setup}
+ prepare_environment
+ : 0.0.0.0
+ for f in prepare_environment ${@:-teardown setup}
+ teardown
+ podman stop gitea
109286d6e13614f134a9824f167eac210fcb16afef869a114bd5f574e1ed9898
+ podman rm -f gitea
109286d6e13614f134a9824f167eac210fcb16afef869a114bd5f574e1ed9898
+ for f in prepare_environment ${@:-teardown setup}
+ setup
+ setup_gitea
+ podman run --name gitea -p 8781:3000 -p 2721:22 -e GITEA__security__INSTALL_LOCK=true -e GITEA__server__DOMAIN=0.0.0.0 -e GITEA__server__SSH_DOMAIN=0.0.0.0 -e GITEA__server__ROOT_URL=http://0.0.0.0:8781/ -e GITEA__service__DEFAULT_KEEP_EMAIL_PRIVATE=true -d gitea/gitea:1.15.2
8d48ddd4ecb6b2be13baa9a53343de3252883793f0037d178ebe354d79d11d02
+ sleep 5
+ wait_for podman exec gitea gitea admin user create --access-token --admin --username root --password Wrobyak4 --email admin@example.com
+ success=false
+ for delay in 1 1 5 5 15 15 15 30 30 30 30
+ podman exec gitea gitea admin user create --access-token --admin --username root --password Wrobyak4 --email admin@example.com
+ tee tests/setup-gitea.out
Access token was successfully created... bba77352eed925ff47b0154dbc96b5bc22b31999
New user 'root' has been successfully created!
+ success=true
+ break
+ true
++ id -u
+ test 1212 '!=' 0
+ SUDO=sudo
+ : 127.0.0.1
+ for f in ${@:-teardown setup}
+ teardown
+ for i in redmine postgresql-redmine
+ podman stop redmine
Error: no container with name or ID redmine found: no such container
+ true
+ podman rm redmine
Error: no container with name or ID redmine found: no such container
+ true
+ for i in redmine postgresql-redmine
+ podman stop postgresql-redmine
Error: no container with name or ID postgresql-redmine found: no such container
+ true
+ podman rm postgresql-redmine
Error: no container with name or ID postgresql-redmine found: no such container
+ true
+ podman volume rm --force redmine-volume
Error: no volume with name "redmine-volume" found: no such volume
+ for f in prepare_environment ${@:-teardown setup}
+ prepare_environment
+ : 0.0.0.0
+ for f in prepare_environment ${@:-teardown setup}
+ teardown
+ podman stop gitea
8d48ddd4ecb6b2be13baa9a53343de3252883793f0037d178ebe354d79d11d02
+ podman rm -f gitea
8d48ddd4ecb6b2be13baa9a53343de3252883793f0037d178ebe354d79d11d02
++ id -u
+ test 1212 '!=' 0
+ SUDO=sudo
+ : 127.0.0.1
+ for f in ${@:-teardown setup}
+ teardown
+ for i in redmine postgresql-redmine
+ podman stop redmine
Error: no container with name or ID redmine found: no such container
+ true
+ podman rm redmine
Error: no container with name or ID redmine found: no such container
+ true
+ for i in redmine postgresql-redmine
+ podman stop postgresql-redmine
Error: no container with name or ID postgresql-redmine found: no such container
+ true
+ podman rm postgresql-redmine
Error: no container with name or ID postgresql-redmine found: no such container
+ true
+ podman volume rm --force redmine-volume
Error: no volume with name "redmine-volume" found: no such volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment