Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/resalloc.spec'], chrootPath='/var/lib/mock/f40-build-2080387-49712/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/resalloc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1699228800 Wrote: /builddir/build/SRPMS/resalloc-5.1-1.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/resalloc.spec'], chrootPath='/var/lib/mock/f40-build-2080387-49712/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/resalloc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1699228800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8NG3ls + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf resalloc-5.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/resalloc-5.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd resalloc-5.1 + rm -rf /builddir/build/BUILD/resalloc-5.1-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/resalloc-5.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Rmuq8W + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd resalloc-5.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py running build_manpages generating man/resalloc.1 generating man/resalloc-maint.1 creating build creating build/lib creating build/lib/resalloc copying resalloc/client.py -> build/lib/resalloc copying resalloc/__init__.py -> build/lib/resalloc copying resalloc/helpers.py -> build/lib/resalloc creating build/lib/resallocwebui copying resallocwebui/app.py -> build/lib/resallocwebui copying resallocwebui/__init__.py -> build/lib/resallocwebui creating build/lib/resalloc_agent_spawner copying resalloc_agent_spawner/worker.py -> build/lib/resalloc_agent_spawner copying resalloc_agent_spawner/dispatcher.py -> build/lib/resalloc_agent_spawner copying resalloc_agent_spawner/__init__.py -> build/lib/resalloc_agent_spawner copying resalloc_agent_spawner/helpers.py -> build/lib/resalloc_agent_spawner creating build/lib/resallocserver copying resallocserver/main.py -> build/lib/resallocserver copying resallocserver/logic.py -> build/lib/resallocserver copying resallocserver/maint.py -> build/lib/resallocserver copying resallocserver/config.py -> build/lib/resallocserver copying resallocserver/priority_queue.py -> build/lib/resallocserver copying resallocserver/models.py -> build/lib/resallocserver copying resallocserver/app.py -> build/lib/resallocserver copying resallocserver/__init__.py -> build/lib/resallocserver copying resallocserver/manager.py -> build/lib/resallocserver copying resallocserver/helpers.py -> build/lib/resallocserver copying resallocserver/api.py -> build/lib/resallocserver copying resallocserver/log.py -> build/lib/resallocserver creating build/lib/resallocserver/alembic copying resallocserver/alembic/__init__.py -> build/lib/resallocserver/alembic copying resallocserver/alembic/env.py -> build/lib/resallocserver/alembic creating build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/eac9fc01d0d1_allow_resource_reuse.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/0e370f3171e5_add_priority_for_resources_tags.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/78237445aff8_index_not_closed_tickets.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/5759bc82a992_initial_revision.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/cdf29a997efc_resource_pool_id.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/__init__.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/210774551cd3_performance_indexes.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic/versions/a53d2303943a_add_cleaning_unknown_resources_column.py -> build/lib/resallocserver/alembic/versions copying resallocserver/alembic.ini -> build/lib/resallocserver running build_scripts creating build/scripts-3.12 copying and adjusting bin/resalloc -> build/scripts-3.12 copying and adjusting bin/resalloc-server -> build/scripts-3.12 copying and adjusting bin/resalloc-maint -> build/scripts-3.12 copying bin/resalloc-check-vm-ip -> build/scripts-3.12 changing mode of build/scripts-3.12/resalloc from 644 to 755 changing mode of build/scripts-3.12/resalloc-server from 644 to 755 changing mode of build/scripts-3.12/resalloc-maint from 644 to 755 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.nEyESF + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch ++ dirname /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd resalloc-5.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch --prefix /usr running install /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc copying build/lib/resalloc/client.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc copying build/lib/resalloc/__init__.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc copying build/lib/resalloc/helpers.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocwebui copying build/lib/resallocwebui/app.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocwebui copying build/lib/resallocwebui/__init__.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocwebui creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner copying build/lib/resalloc_agent_spawner/worker.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner copying build/lib/resalloc_agent_spawner/dispatcher.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner copying build/lib/resalloc_agent_spawner/__init__.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner copying build/lib/resalloc_agent_spawner/helpers.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/main.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/logic.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/maint.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/config.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/priority_queue.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/alembic.ini -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/models.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/app.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/__init__.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/manager.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic copying build/lib/resallocserver/alembic/__init__.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic copying build/lib/resallocserver/alembic/env.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/eac9fc01d0d1_allow_resource_reuse.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/0e370f3171e5_add_priority_for_resources_tags.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/78237445aff8_index_not_closed_tickets.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/5759bc82a992_initial_revision.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/cdf29a997efc_resource_pool_id.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/__init__.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/210774551cd3_performance_indexes.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/alembic/versions/a53d2303943a_add_cleaning_unknown_resources_column.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions copying build/lib/resallocserver/helpers.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/api.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver copying build/lib/resallocserver/log.py -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc/client.py to client.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc/helpers.py to helpers.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocwebui/app.py to app.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocwebui/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner/worker.py to worker.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner/dispatcher.py to dispatcher.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc_agent_spawner/helpers.py to helpers.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/main.py to main.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/logic.py to logic.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/maint.py to maint.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/config.py to config.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/priority_queue.py to priority_queue.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/models.py to models.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/app.py to app.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/manager.py to manager.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/env.py to env.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/eac9fc01d0d1_allow_resource_reuse.py to eac9fc01d0d1_allow_resource_reuse.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/0e370f3171e5_add_priority_for_resources_tags.py to 0e370f3171e5_add_priority_for_resources_tags.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/78237445aff8_index_not_closed_tickets.py to 78237445aff8_index_not_closed_tickets.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/5759bc82a992_initial_revision.py to 5759bc82a992_initial_revision.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/cdf29a997efc_resource_pool_id.py to cdf29a997efc_resource_pool_id.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/210774551cd3_performance_indexes.py to 210774551cd3_performance_indexes.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/alembic/versions/a53d2303943a_add_cleaning_unknown_resources_column.py to a53d2303943a_add_cleaning_unknown_resources_column.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/helpers.py to helpers.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/api.py to api.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resallocserver/log.py to log.cpython-312.pyc writing byte-compilation script '/tmp/tmpg52lri3x.py' /usr/bin/python3 /tmp/tmpg52lri3x.py removing /tmp/tmpg52lri3x.py running install_data creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/resallocserver copying config/pools.yaml -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/resallocserver copying config/server.yaml -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/resallocserver creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/resalloc-agent-spawner copying config/agent-spawner/config.yaml -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/resalloc-agent-spawner running install_egg_info running egg_info writing resalloc.egg-info/PKG-INFO writing dependency_links to resalloc.egg-info/dependency_links.txt writing entry points to resalloc.egg-info/entry_points.txt writing requirements to resalloc.egg-info/requires.txt writing top-level names to resalloc.egg-info/top_level.txt reading manifest file 'resalloc.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.py' under directory 'build_manpages/build_manpages' adding license file 'COPYING' writing manifest file 'resalloc.egg-info/SOURCES.txt' Copying resalloc.egg-info to /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12/site-packages/resalloc-5.1-py3.12.egg-info running install_scripts creating /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin copying build/scripts-3.12/resalloc -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin copying build/scripts-3.12/resalloc-check-vm-ip -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin copying build/scripts-3.12/resalloc-server -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin copying build/scripts-3.12/resalloc-maint -> /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin/resalloc to 755 changing mode of /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin/resalloc-check-vm-ip to 755 changing mode of /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin/resalloc-server to 755 changing mode of /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin/resalloc-maint to 755 Installing resalloc-agent-spawner script to /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin Installing resalloc-agent-worker script to /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin installing man/resalloc.1 installing man/resalloc-maint.1 + rm -rfv /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/bin/__pycache__ + install -d -m 755 /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/share/resallocwebui + cp -r resallocwebui/templates /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/share/resallocwebui/ + cp -r resallocwebui/static /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/share/resallocwebui/ + install -d -m 755 /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/var/www/ + install -p -m 755 resallocwebui/cgi-resalloc /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/var/www/cgi-resalloc + mkdir -p /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/var/log/resallocserver + install -p -m 644 /builddir/build/SOURCES/resalloc.service /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/systemd/system + install -p -m 644 /builddir/build/SOURCES/resalloc-agent-spawner.service /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/systemd/system + install -d -m 700 /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/var/lib/resallocserver + install -d -m 700 /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/logrotate.d + install -p -m 644 /builddir/build/SOURCES/logrotate /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/logrotate.d/resalloc-server + install -p -m 644 man/resalloc-server.1 /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/share/man/man1 + install -d -m 755 /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch//usr/libexec + install -p -m 755 /builddir/build/SOURCES/merge-hook-logs /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch//usr/libexec/resalloc-merge-hook-logs + install -d /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/cron.hourly + install -p -m 755 /builddir/build/SOURCES/cron.hourly /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/etc/cron.hourly/resalloc + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 5.1-1.fc40 --unique-debug-suffix -5.1-1.fc40.noarch --unique-debug-src-base resalloc-5.1-1.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/resalloc-5.1 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /etc/cron.hourly/resalloc from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/libexec/resalloc-merge-hook-logs from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/bin/resalloc-check-vm-ip from /bin/sh to #!/usr/bin/sh + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/resalloc-5.1-1.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.as5EYr + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd resalloc-5.1 + make check TEST_PYTHONS=python3 make unittests make[1]: Entering directory '/builddir/build/BUILD/resalloc-5.1' status=true ; \ for python in python3; do \ PYTHON=$python ./unittests.sh -vv || status=false ; \ done ;\ $status * sourcedir: /builddir/build/BUILD/resalloc-5.1 * testdir: /builddir/build/BUILD/resalloc-5.1/tests * PYTHON: python3 * PYTHONPATH: /builddir/build/BUILD/resalloc-5.1 ============================= test session starts ============================== platform linux -- Python 3.12.0, pytest-7.3.2, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/resalloc-5.1 plugins: cov-4.0.0 collecting ... collected 8 items tests/test_cli.py::test_errno_reconnect PASSED [ 12%] tests/test_command.py::TestRunCommand::test_trim PASSED [ 25%] tests/test_manager.py::test_normalize_tags PASSED [ 37%] tests/test_manager.py::TestManager::test_resource_tag_priority[passengers0-car3] PASSED [ 50%] tests/test_manager.py::TestManager::test_resource_tag_priority[passengers1-car2] PASSED [ 62%] tests/test_manager.py::TestManager::test_resource_tag_priority[passengers2-car1] PASSED [ 75%] tests/test_manager.py::TestManager::test_resource_tag_priority[passengers3-car3] PASSED [ 87%] tests/test_manager.py::TestManager::test_resource_tag_priority[passengers4-car2] PASSED [100%] =============================== warnings summary =============================== resallocserver/models.py:26 /builddir/build/BUILD/resalloc-5.1/resallocserver/models.py:26: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) Base = declarative_base() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.12.0-final-0 ----------- Name Stmts Miss Cover Missing --------------------------------------------------------------------------------------------------------------------- resalloc/__init__.py 1 0 100% resalloc/client.py 65 19 71% 13-14, 50-52, 74-75, 86-91, 99, 103, 120, 124, 127, 131 resalloc/helpers.py 64 15 77% 39, 81, 92, 97, 99, 104-118 resalloc_agent_spawner/__init__.py 0 0 100% resalloc_agent_spawner/dispatcher.py 146 146 0% 5-282 resalloc_agent_spawner/helpers.py 50 50 0% 5-109 resalloc_agent_spawner/worker.py 29 29 0% 5-64 resallocserver/__init__.py 0 0 100% resallocserver/alembic/__init__.py 0 0 100% resallocserver/alembic/env.py 31 9 71% 12-14, 28, 53-60, 82 resallocserver/alembic/versions/0e370f3171e5_add_priority_for_resources_tags.py 12 2 83% 25-26 resallocserver/alembic/versions/5759bc82a992_initial_revision.py 18 5 72% 60-64 resallocserver/alembic/versions/78237445aff8_index_not_closed_tickets.py 12 2 83% 30-31 resallocserver/alembic/versions/210774551cd3_performance_indexes.py 30 11 63% 42-55 resallocserver/alembic/versions/__init__.py 0 0 100% resallocserver/alembic/versions/a53d2303943a_add_cleaning_unknown_resources_column.py 14 2 86% 35-36 resallocserver/alembic/versions/cdf29a997efc_resource_pool_id.py 8 1 88% 27 resallocserver/alembic/versions/eac9fc01d0d1_allow_resource_reuse.py 45 16 64% 43, 46-51, 56-66 resallocserver/api.py 67 48 28% 37, 40, 43-58, 62-80, 85-101, 105-110 resallocserver/app.py 39 4 90% 37, 70-72 resallocserver/config.py 10 0 100% resallocserver/helpers.py 0 0 100% resallocserver/log.py 19 1 95% 24 resallocserver/logic.py 75 30 60% 34, 44-47, 58, 84, 88, 95-103, 106-121, 124, 136, 142, 146-153, 167, 172 resallocserver/main.py 78 37 53% 36-39, 64-66, 69-78, 91-99, 102, 117-118, 124-147 resallocserver/maint.py 88 88 0% 18-147 resallocserver/manager.py 615 437 29% 49, 63-65, 71, 96-97, 120, 135, 151-174, 187-188, 193-200, 204, 207, 210-216, 221, 224-230, 233-262, 267, 271-296, 301, 304-346, 355, 359-372, 387-397, 400-402, 407-456, 459-461, 491-493, 498-501, 506-509, 516-524, 534-543, 547-552, 557-575, 579-601, 604-634, 637-651, 654-683, 686-712, 716-740, 771-797, 801-844, 848-852, 860-862, 875, 900-901, 907, 911, 924, 930-933, 939, 943, 954-1061, 1066-1083, 1087-1100 resallocserver/models.py 81 10 88% 35, 65, 106-108, 111-116, 120 resallocserver/priority_queue.py 33 6 82% 30, 45, 51-52, 70, 77 resallocwebui/__init__.py 11 11 0% 1-17 resallocwebui/app.py 39 39 0% 1-64 setup.py 12 12 0% 18-38 tests/__init__.py 56 5 91% 20-21, 74-78 tests/test_cli.py 19 0 100% tests/test_command.py 36 0 100% tests/test_manager.py 32 0 100% --------------------------------------------------------------------------------------------------------------------- TOTAL 1835 1035 44% ======================== 8 passed, 1 warning in 51.84s ========================= make[1]: Leaving directory '/builddir/build/BUILD/resalloc-5.1' make shelltests make[1]: Entering directory '/builddir/build/BUILD/resalloc-5.1' cd shelltests ; \ status=true ; \ for python in python3; do \ for database in sqlite postgresql; do \ PYTHON=$python DATABASE=$database \ ./testrunner basic.sh check.sh ondemand.sh reuse.sh ; \ test $? -eq 0 || status=false ; \ done ; \ done ; \ $status ===> running test 'tests/basic.sh' (python3+sqlite) ~ I'm in /tmp/resalloc-tests-basic.sh-wFX8DKM * Wait for 5 preallocated machines * check that after some time still only 5 are available * take all the resources which should be available * take some more tickets, to reach the maximum * take one more, which should wait * release one ticket and check that the waiting ticket now succeeds * close all the tickets now and check that again 5 is up * wait till all the log files are in place * check that log files contain both stderr and stdout * check that terminate log contains RESALLOC_RESOURCE_DATA var * test force-delete of two resources * check that multiple checks are logged into single log file * check that RESALLOC_ID_IN_POOL has sane numbers ~ cleanup ---> [ OK ] ===> running test 'tests/check.sh' (python3+sqlite) ~ I'm in /tmp/resalloc-tests-check.sh-ZYNpQiJ * Wait for 5 preallocated machines * wait till the first set of VMs is deleted by watcher ~ cleanup ---> [ OK ] ===> running test 'tests/ondemand.sh' (python3+sqlite) ~ I'm in /tmp/resalloc-tests-ondemand.sh-aeoPW4j * Wait for 3 resources, 2x 'basic', 1x 'ondemand' * Wait for 3 resources, 2x 'basic', 1x 'ondemand' (nothing changed) * Wait for ticket 8 being resolved (in ondemand2) * Wait for ticket 9 being resolved (in ondemand1) * Wait for 5 resources, two more on-demand machines * Wait for ticket 10 being resolved (on demand, but not prioritized) * Wait for ticket 11 being resolved (the last one allocated) * Wait for ticket 14 being resolved (taking a waiting on demand task) * Wait for ticket 12 being resolved (taking non-on-demand task) * Wait for ticket 13 being resolved (taking also task for basic pool) * Wait for ticket 6 being resolved (additional ondemand resource taking old basic ticket) * Wait for ticket 7 being resolved (take ticket by basic pool again) * Wait for ticket 17 being resolved (fresh new basic resource #1) * Wait for ticket 16 being resolved (fresh new basic resource #2) ~ cleanup ---> [ OK ] ===> running test 'tests/reuse.sh' (python3+sqlite) ~ I'm in /tmp/resalloc-tests-reuse.sh-KjD3Y0v * Wait for 6 preallocated machines * check that after some time still only 6 are available * 1. case: take -> return -> re-take * 2. case: take all -> take one more -> release one FAIL: exists ===== 1 - reuse_00000001_20231220_004035 pool=reuse tags=A status=UP releases=2 ticket=NULL 2 - reuse_count_00000002_20231220_004036 pool=reuse_count tags=B status=UP releases=0 ticket=NULL 3 - reuse_time_00000003_20231220_004036 pool=reuse_time tags=C status=UP releases=0 ticket=NULL 4 - reuse_00000004_20231220_004037 pool=reuse tags=A status=UP releases=1 ticket=8 5 - reuse_time_00000005_20231220_004038 pool=reuse_time tags=C status=UP releases=0 ticket=NULL 6 - reuse_00000006_20231220_004038 pool=reuse tags=A status=UP releases=0 ticket=4 7 - reuse_00000007_20231220_004110 pool=reuse tags=A status=UP releases=0 ticket=5 8 - reuse_00000008_20231220_004134 pool=reuse tags=A status=UP releases=0 ticket=6 ===== 4 - state=OPEN tags=A resource=reuse_00000006_20231220_004038 5 - state=OPEN tags=A resource=reuse_00000007_20231220_004110 6 - state=OPEN tags=A resource=reuse_00000008_20231220_004134 7 - state=OPEN tags=A 8 - state=OPEN tags=A resource=reuse_00000004_20231220_004037 ===== INFO 2023-12-20 00:40:32,588 PID:62166:72057592001683488(MainThread) Initializing database INFO 2023-12-20 00:40:34,684 PID:62166:72057591951135104(Watcher) Watcher loop INFO 2023-12-20 00:40:34,688 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:40:35,258 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=0 up=0 ready=0 taken=0 start=0 term=0 released=0 free=0 releasing=0 DEBUG 2023-12-20 00:40:35,777 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=1 up=0 ready=0 taken=0 start=1 term=0 released=0 free=0 releasing=0 INFO 2023-12-20 00:40:35,849 PID:62166:72057591942742400(Allocator-1) Allocating reuse_00000001_20231220_004035 (#0 in pool 'reuse') TID=72057591942742400 DEBUG 2023-12-20 00:40:35,860 PID:62166:72057591942742400(Allocator-1) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after DEBUG 2023-12-20 00:40:36,009 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=0 up=0 ready=0 taken=0 start=0 term=0 released=0 free=0 releasing=0 INFO 2023-12-20 00:40:36,163 PID:62166:72057591942742400(Allocator-1) Allocating reuse_00000001_20231220_004035 finished => UP DEBUG 2023-12-20 00:40:36,351 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=0 ready=0 taken=0 start=1 term=0 released=0 free=0 releasing=0 INFO 2023-12-20 00:40:36,354 PID:62166:72057591934349696(Allocator-2) Allocating reuse_count_00000002_20231220_004036 (#0 in pool 'reuse_count') TID=72057591934349696 DEBUG 2023-12-20 00:40:36,368 PID:62166:72057591934349696(Allocator-2) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after DEBUG 2023-12-20 00:40:36,585 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=0 up=0 ready=0 taken=0 start=0 term=0 released=0 free=0 releasing=0 INFO 2023-12-20 00:40:36,737 PID:62166:72057591934349696(Allocator-2) Allocating reuse_count_00000002_20231220_004036 finished => UP DEBUG 2023-12-20 00:40:36,827 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=1 up=0 ready=0 taken=0 start=1 term=0 released=0 free=0 releasing=0 INFO 2023-12-20 00:40:36,882 PID:62166:72057591942742400(Allocator-3) Allocating reuse_time_00000003_20231220_004036 (#0 in pool 'reuse_time') TID=72057591942742400 DEBUG 2023-12-20 00:40:36,884 PID:62166:72057591942742400(Allocator-3) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after INFO 2023-12-20 00:40:37,051 PID:62166:72057592001683488(Manager) Manager's loop. INFO 2023-12-20 00:40:37,231 PID:62166:72057591942742400(Allocator-3) Allocating reuse_time_00000003_20231220_004036 finished => UP DEBUG 2023-12-20 00:40:37,376 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:40:37,521 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=2 up=1 ready=1 taken=0 start=1 term=0 released=0 free=1 releasing=0 INFO 2023-12-20 00:40:37,553 PID:62166:72057591942742400(Allocator-4) Allocating reuse_00000004_20231220_004037 (#1 in pool 'reuse') TID=72057591942742400 DEBUG 2023-12-20 00:40:37,561 PID:62166:72057591942742400(Allocator-4) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after DEBUG 2023-12-20 00:40:37,821 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:40:37,913 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 INFO 2023-12-20 00:40:37,990 PID:62166:72057591942742400(Allocator-4) Allocating reuse_00000004_20231220_004037 finished => UP DEBUG 2023-12-20 00:40:38,335 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=1 ready=1 taken=0 start=1 term=0 released=0 free=1 releasing=0 INFO 2023-12-20 00:40:38,395 PID:62166:72057591934349696(Allocator-5) Allocating reuse_time_00000005_20231220_004038 (#1 in pool 'reuse_time') TID=72057591934349696 DEBUG 2023-12-20 00:40:38,399 PID:62166:72057591934349696(Allocator-5) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after INFO 2023-12-20 00:40:38,507 PID:62166:72057592001683488(Manager) Manager's loop. INFO 2023-12-20 00:40:38,723 PID:62166:72057591934349696(Allocator-5) Allocating reuse_time_00000005_20231220_004038 finished => UP DEBUG 2023-12-20 00:40:38,890 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 DEBUG 2023-12-20 00:40:39,050 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=3 up=2 ready=2 taken=0 start=1 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:40:39,076 PID:62166:72057591934349696(Allocator-6) Allocating reuse_00000006_20231220_004038 (#2 in pool 'reuse') TID=72057591934349696 DEBUG 2023-12-20 00:40:39,079 PID:62166:72057591934349696(Allocator-6) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after DEBUG 2023-12-20 00:40:39,246 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:40:39,334 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:40:39,380 PID:62166:72057591934349696(Allocator-6) Allocating reuse_00000006_20231220_004038 finished => UP INFO 2023-12-20 00:40:39,419 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:40:39,685 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=3 up=3 ready=3 taken=0 start=0 term=0 released=0 free=3 releasing=0 DEBUG 2023-12-20 00:40:39,763 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:40:39,837 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:40:39,874 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:40:40,092 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=3 up=3 ready=3 taken=0 start=0 term=0 released=0 free=3 releasing=0 DEBUG 2023-12-20 00:40:40,171 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:40:40,248 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:40:44,991 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:40:45,215 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:45,480 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:45,726 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:45,986 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:46,234 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:46,527 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:40:56,773 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:40:56,948 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:57,200 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:57,458 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:57,714 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:57,964 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:40:58,224 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:41:00,289 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:00,584 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=3 up=3 ready=3 taken=0 start=0 term=0 released=0 free=3 releasing=0 DEBUG 2023-12-20 00:41:00,663 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:00,742 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:03,288 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:03,542 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=3 up=3 ready=3 taken=0 start=0 term=0 released=0 free=3 releasing=0 DEBUG 2023-12-20 00:41:03,619 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:03,696 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:03,895 PID:62166:72057592001683488(Manager) Assigning reuse_00000001_20231220_004035 to 1 INFO 2023-12-20 00:41:08,490 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:41:08,641 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:41:08,896 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:08,950 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:09,285 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:09,605 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:41:09,631 PID:62166:72057591934349696(Releaser-1) Releasing reuse_00000001_20231220_004035 DEBUG 2023-12-20 00:41:09,698 PID:62166:72057591934349696(Releaser-1) running: echo >&2 stderr; echo stdout; echo $RESALLOC_RESOURCE_DATA | base64 --decode DEBUG 2023-12-20 00:41:09,980 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:10,183 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=3 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=1 INFO 2023-12-20 00:41:10,205 PID:62166:72057591934349696(Releaser-1) Releasing reuse_00000001_20231220_004035 finished DEBUG 2023-12-20 00:41:10,265 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:10,574 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=3 ready=3 taken=0 start=1 term=0 released=1 free=2 releasing=0 INFO 2023-12-20 00:41:10,587 PID:62166:72057591934349696(Allocator-7) Allocating reuse_00000007_20231220_004110 (#3 in pool 'reuse') TID=72057591934349696 DEBUG 2023-12-20 00:41:10,594 PID:62166:72057591934349696(Allocator-7) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after DEBUG 2023-12-20 00:41:10,858 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 INFO 2023-12-20 00:41:10,887 PID:62166:72057591934349696(Allocator-7) Allocating reuse_00000007_20231220_004110 finished => UP DEBUG 2023-12-20 00:41:11,019 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:11,064 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:11,717 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=4 ready=4 taken=0 start=0 term=0 released=1 free=3 releasing=0 DEBUG 2023-12-20 00:41:11,807 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:11,880 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:14,082 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:14,340 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=4 ready=4 taken=0 start=0 term=0 released=1 free=3 releasing=0 DEBUG 2023-12-20 00:41:14,412 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:14,485 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:14,643 PID:62166:72057592001683488(Manager) Assigning reuse_00000001_20231220_004035 to 2 INFO 2023-12-20 00:41:20,538 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:41:20,765 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:21,077 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:21,323 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:21,662 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:21,908 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:22,160 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:22,422 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:41:27,864 PID:62166:72057592001683488(Manager) Manager's loop. INFO 2023-12-20 00:41:28,114 PID:62166:72057591934349696(Releaser-1) Releasing reuse_00000001_20231220_004035 DEBUG 2023-12-20 00:41:28,116 PID:62166:72057591934349696(Releaser-1) running: echo >&2 stderr; echo stdout; echo $RESALLOC_RESOURCE_DATA | base64 --decode DEBUG 2023-12-20 00:41:28,382 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=3 ready=3 taken=0 start=0 term=0 released=0 free=3 releasing=1 INFO 2023-12-20 00:41:28,515 PID:62166:72057591934349696(Releaser-1) Releasing reuse_00000001_20231220_004035 finished DEBUG 2023-12-20 00:41:28,532 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:28,607 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:28,648 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:28,930 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=4 ready=4 taken=0 start=0 term=0 released=1 free=3 releasing=0 DEBUG 2023-12-20 00:41:29,013 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:29,092 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:30,860 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:31,081 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=4 ready=4 taken=0 start=0 term=0 released=1 free=3 releasing=0 DEBUG 2023-12-20 00:41:31,152 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:31,227 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:31,370 PID:62166:72057592001683488(Manager) Assigning reuse_00000004_20231220_004037 to 3 INFO 2023-12-20 00:41:32,678 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:41:32,824 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:33,102 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:33,360 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:33,669 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:41:33,801 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:34,019 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:34,283 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:34,552 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=4 up=4 ready=3 taken=1 start=0 term=0 released=1 free=2 releasing=0 DEBUG 2023-12-20 00:41:34,573 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:34,909 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=4 ready=3 taken=1 start=1 term=0 released=1 free=2 releasing=0 INFO 2023-12-20 00:41:34,921 PID:62166:72057591934349696(Allocator-8) Allocating reuse_00000008_20231220_004134 (#4 in pool 'reuse') TID=72057591934349696 DEBUG 2023-12-20 00:41:34,926 PID:62166:72057591934349696(Allocator-8) running: echo >&2 before; env | grep ^RESALLOC_; echo >&2 after DEBUG 2023-12-20 00:41:35,123 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 INFO 2023-12-20 00:41:35,215 PID:62166:72057591934349696(Allocator-8) Allocating reuse_00000008_20231220_004134 finished => UP DEBUG 2023-12-20 00:41:35,243 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:35,490 PID:62166:72057592001683488(Manager) Assigning reuse_00000006_20231220_004038 to 4 INFO 2023-12-20 00:41:35,542 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:35,792 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=5 ready=3 taken=2 start=0 term=0 released=1 free=2 releasing=0 DEBUG 2023-12-20 00:41:35,866 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:35,940 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:36,543 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:36,782 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=5 ready=3 taken=2 start=0 term=0 released=1 free=2 releasing=0 DEBUG 2023-12-20 00:41:36,858 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:36,937 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:37,075 PID:62166:72057592001683488(Manager) Assigning reuse_00000007_20231220_004110 to 5 INFO 2023-12-20 00:41:39,091 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:39,341 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=5 ready=2 taken=3 start=0 term=0 released=1 free=1 releasing=0 DEBUG 2023-12-20 00:41:39,418 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:39,495 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:39,619 PID:62166:72057592001683488(Manager) Assigning reuse_00000008_20231220_004134 to 6 INFO 2023-12-20 00:41:41,791 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:42,047 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=5 ready=1 taken=4 start=0 term=0 released=1 free=0 releasing=0 DEBUG 2023-12-20 00:41:42,123 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:42,198 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 DEBUG 2023-12-20 00:41:42,314 PID:62166:72057592001683488(Manager) 4 resources UP but unusable for INFO 2023-12-20 00:41:44,426 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:44,694 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=5 ready=1 taken=4 start=0 term=0 released=1 free=0 releasing=0 DEBUG 2023-12-20 00:41:44,772 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:44,849 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 INFO 2023-12-20 00:41:44,884 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:41:45,104 PID:62166:72057592001683488(Manager) 4 resources UP but unusable for DEBUG 2023-12-20 00:41:45,165 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:45,330 PID:62166:72057592001683488(Manager) 4 resources UP but unusable for DEBUG 2023-12-20 00:41:45,432 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:45,674 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:45,921 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:46,291 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:46,547 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:46,809 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:47,081 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout INFO 2023-12-20 00:41:50,070 PID:62166:72057592001683488(Manager) Manager's loop. INFO 2023-12-20 00:41:50,320 PID:62166:72057591942742400(Releaser-4) Releasing reuse_00000004_20231220_004037 DEBUG 2023-12-20 00:41:50,323 PID:62166:72057591942742400(Releaser-4) running: echo >&2 stderr; echo stdout; echo $RESALLOC_RESOURCE_DATA | base64 --decode DEBUG 2023-12-20 00:41:50,598 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=4 ready=1 taken=3 start=0 term=0 released=1 free=0 releasing=1 INFO 2023-12-20 00:41:50,662 PID:62166:72057591942742400(Releaser-4) Releasing reuse_00000004_20231220_004037 finished DEBUG 2023-12-20 00:41:50,714 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:50,787 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 DEBUG 2023-12-20 00:41:50,920 PID:62166:72057592001683488(Manager) 5 resources UP but unusable for INFO 2023-12-20 00:41:51,000 PID:62166:72057592001683488(Manager) Assigning reuse_00000004_20231220_004037 to 8 INFO 2023-12-20 00:41:51,050 PID:62166:72057592001683488(Manager) Manager's loop. DEBUG 2023-12-20 00:41:51,348 PID:62166:72057592001683488(Manager) => POOL('reuse'): on=5 up=5 ready=1 taken=4 start=0 term=0 released=1 free=0 releasing=0 DEBUG 2023-12-20 00:41:51,419 PID:62166:72057592001683488(Manager) => POOL('reuse_count'): on=1 up=1 ready=1 taken=0 start=0 term=0 released=0 free=1 releasing=0 DEBUG 2023-12-20 00:41:51,490 PID:62166:72057592001683488(Manager) => POOL('reuse_time'): on=2 up=2 ready=2 taken=0 start=0 term=0 released=0 free=2 releasing=0 DEBUG 2023-12-20 00:41:51,599 PID:62166:72057592001683488(Manager) 4 resources UP but unusable for INFO 2023-12-20 00:41:57,400 PID:62166:72057591951135104(Watcher) Watcher loop DEBUG 2023-12-20 00:41:57,547 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:57,783 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:58,048 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:58,282 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:58,538 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:58,777 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:59,017 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout DEBUG 2023-12-20 00:41:59,248 PID:62166:72057591951135104(Watcher) running: echo >&2 stderr; echo stdout ===== 00:40:23.783248664: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint resource-list 00:40:31.705276247: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint resource-list 00:40:40.192007454: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint resource-list --up 00:40:52.037745446: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint resource-list --up 00:41:00.637532259: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=sb 00:41:03.483418179: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket-wait 1 00:41:06.235615466: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket-close 1 00:41:11.179538052: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=sb 00:41:14.332191901: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket-wait 2 00:41:16.975058815: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint resource-list 00:41:25.486213539: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket-close 2 00:41:28.178777495: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=first-sb 00:41:31.134285991: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=second-sb 00:41:34.032964480: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=second-sb 00:41:36.758925533: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=second-sb 00:41:39.321453132: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=second-sb 00:41:42.003034890: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket --tag A --sandbox=first-sb 00:41:44.679524803: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket-wait 8 00:41:47.710730772: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc --connection http://localhost:55550 ticket-close 3 00:41:51.355963504: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint resource-list 00:41:59.283247734: /builddir/build/BUILD/resalloc-5.1/test-tooling/resalloc-maint ticket-list ===== ~ cleanup ---> [ FAIL ] ===> running test 'tests/basic.sh' (python3+postgresql) ~ I'm in /tmp/resalloc-tests-basic.sh-bpKXP6G * preparing PostgreSQL server * Wait for 5 preallocated machines * check that after some time still only 5 are available * take all the resources which should be available * take some more tickets, to reach the maximum * take one more, which should wait * release one ticket and check that the waiting ticket now succeeds * close all the tickets now and check that again 5 is up * wait till all the log files are in place * check that log files contain both stderr and stdout * check that terminate log contains RESALLOC_RESOURCE_DATA var * test force-delete of two resources * check that multiple checks are logged into single log file * check that RESALLOC_ID_IN_POOL has sane numbers ~ cleanup ---> [ OK ] ===> running test 'tests/check.sh' (python3+postgresql) ~ I'm in /tmp/resalloc-tests-check.sh-1zY0oVC * preparing PostgreSQL server * Wait for 5 preallocated machines * wait till the first set of VMs is deleted by watcher ~ cleanup ---> [ OK ] ===> running test 'tests/ondemand.sh' (python3+postgresql) ~ I'm in /tmp/resalloc-tests-ondemand.sh-UmwcSIm * preparing PostgreSQL server * Wait for 3 resources, 2x 'basic', 1x 'ondemand' * Wait for 3 resources, 2x 'basic', 1x 'ondemand' (nothing changed) * Wait for ticket 8 being resolved (in ondemand2) * Wait for ticket 9 being resolved (in ondemand1) * Wait for 5 resources, two more on-demand machines * Wait for ticket 10 being resolved (on demand, but not prioritized) * Wait for ticket 11 being resolved (the last one allocated) * Wait for ticket 14 being resolved (taking a waiting on demand task) * Wait for ticket 12 being resolved (taking non-on-demand task) * Wait for ticket 13 being resolved (taking also task for basic pool) * Wait for ticket 6 being resolved (additional ondemand resource taking old basic ticket) * Wait for ticket 7 being resolved (take ticket by basic pool again) * Wait for ticket 17 being resolved (fresh new basic resource #1) * Wait for ticket 16 being resolved (fresh new basic resource #2) ~ cleanup ---> [ OK ] ===> running test 'tests/reuse.sh' (python3+postgresql) ~ I'm in /tmp/resalloc-tests-reuse.sh-XYjcJJQ * preparing PostgreSQL server * Wait for 6 preallocated machines * check that after some time still only 6 are available * 1. case: take -> return -> re-take * 2. case: take all -> take one more -> release one * 3. case: count limit * 4. case: time limit 1,2c1,2 < RESALLOC_ID=3 < RESALLOC_NAME=reuse_time_00000003_20231220_010132 --- > RESALLOC_ID=5 > RESALLOC_NAME=reuse_time_00000005_20231220_010133 4c4 < RESALLOC_ID_IN_POOL=0 --- > RESALLOC_ID_IN_POOL=1 ~ cleanup ---> [ FAIL ] make[1]: *** [Makefile:17: shelltests] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/resalloc-5.1' make: *** [Makefile:38: check] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.as5EYr (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.as5EYr (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/resalloc.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/resalloc.spec