Mock Version: 1.4.21 Mock Version: 1.4.21 Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-oslo-policy.spec'], chrootPath='/var/lib/mock/dlrn-centos-train-x86_64-5/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1005gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vunk0egl:/etc/resolv.conf']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vunk0egl:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '76be98b3f34f417ea1f560ed7256a612', '-D', '/var/lib/mock/dlrn-centos-train-x86_64-5/root', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.vunk0egl:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-oslo-policy.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': 'en_US.UTF-8'} and shell False DEBUG: Unsharing. Flags: 1073741824 DEBUG: Unsharing. Flags: 134217728 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.src.rpm Child return code was: 0 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-oslo-policy.spec'], chrootPath='/var/lib/mock/dlrn-centos-train-x86_64-5/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1005gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pmibg8wg:/etc/resolv.conf']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pmibg8wg:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '3ac14b85160247a2b8e82ded6ff0cadd', '-D', '/var/lib/mock/dlrn-centos-train-x86_64-5/root', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pmibg8wg:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-oslo-policy.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': 'en_US.UTF-8'} and shell False DEBUG: Unsharing. Flags: 1073741824 DEBUG: Unsharing. Flags: 134217728 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-oslo-policy.spec'], chrootPath='/var/lib/mock/dlrn-centos-train-x86_64-5/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': 'en_US.UTF-8'}shell=Falselogger=timeout=0uid=1005gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pmibg8wg:/etc/resolv.conf']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pmibg8wg:/etc/resolv.conf'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '54c5624d51034beabd33e92bf6140ff7', '-D', '/var/lib/mock/dlrn-centos-train-x86_64-5/root', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.pmibg8wg:/etc/resolv.conf', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=en_US.UTF-8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-oslo-policy.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': 'en_US.UTF-8'} and shell False DEBUG: Unsharing. Flags: 1073741824 DEBUG: Unsharing. Flags: 134217728 Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kSyLmR + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf oslo.policy-2.3.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/oslo.policy-2.3.4-0.20200713062415.5904564.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd oslo.policy-2.3.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git add . + /usr/bin/git commit -q -a --author 'rpm-build ' -m 'python-oslo-policy-2.3.4 base' + rm -f requirements.txt test-requirements.txt + sed -i '/^\"PO-Revision-Date: \\n\"/d' oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.po + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZYLg2n + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/oslo_policy creating build/lib/oslo_policy/tests copying oslo_policy/tests/__init__.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/base.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_checks.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_external.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_fixtures.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_generator.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_opts.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_parser.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_policy.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_shell.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_sphinxext.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/test_sphinxpolicygen.py -> build/lib/oslo_policy/tests copying oslo_policy/tests/token_fixture.py -> build/lib/oslo_policy/tests copying oslo_policy/__init__.py -> build/lib/oslo_policy copying oslo_policy/_cache_handler.py -> build/lib/oslo_policy copying oslo_policy/_checks.py -> build/lib/oslo_policy copying oslo_policy/_external.py -> build/lib/oslo_policy copying oslo_policy/_i18n.py -> build/lib/oslo_policy copying oslo_policy/_parser.py -> build/lib/oslo_policy copying oslo_policy/fixture.py -> build/lib/oslo_policy copying oslo_policy/generator.py -> build/lib/oslo_policy copying oslo_policy/opts.py -> build/lib/oslo_policy copying oslo_policy/policy.py -> build/lib/oslo_policy copying oslo_policy/shell.py -> build/lib/oslo_policy copying oslo_policy/sphinxext.py -> build/lib/oslo_policy copying oslo_policy/sphinxpolicygen.py -> build/lib/oslo_policy copying oslo_policy/version.py -> build/lib/oslo_policy running egg_info deleting oslo.policy.egg-info/requires.txt writing oslo.policy.egg-info/PKG-INFO writing top-level names to oslo.policy.egg-info/top_level.txt writing dependency_links to oslo.policy.egg-info/dependency_links.txt writing entry points to oslo.policy.egg-info/entry_points.txt writing pbr to oslo.policy.egg-info/pbr.json [pbr] Processing SOURCES.txt [pbr] In git context, generating filelist from git warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file 'oslo.policy.egg-info/SOURCES.txt' creating build/lib/oslo_policy/locale creating build/lib/oslo_policy/locale/en_GB creating build/lib/oslo_policy/locale/en_GB/LC_MESSAGES copying oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.po -> build/lib/oslo_policy/locale/en_GB/LC_MESSAGES + sleep 1 + sphinx-build-2 -b html doc/source doc/build/html Running Sphinx v1.8.4 connecting events for openstackdocstheme [openstackdocstheme] connecting html-page-context event handler making output directory... Creating file /builddir/build/BUILD/oslo.policy-2.3.4/doc/source/reference/api/oslo_policy.rst. Creating file /builddir/build/BUILD/oslo.policy-2.3.4/doc/source/reference/api/oslo_policy.tests.rst. Creating file /builddir/build/BUILD/oslo.policy-2.3.4/doc/source/reference/api/modules.rst. Using openstackdocstheme Sphinx theme from /usr/lib/python2.7/site-packages/openstackdocstheme/theme No /builddir/build/BUILD/oslo.policy-2.3.4/.gitreview found building [mo]: targets for 0 po files that are out of date building [html]: targets for 14 source files that are out of date updating environment: 17 added, 0 changed, 0 removed reading sources... [ 5%] admin/index reading sources... [ 11%] admin/policy-json-file reading sources... [ 17%] admin/policy-yaml-file reading sources... [ 23%] cli/index reading sources... [ 29%] configuration/index reading sources... [ 35%] contributor/index reading sources... [ 41%] index reading sources... [ 47%] install/index reading sources... [ 52%] reference/api/modules reading sources... [ 58%] reference/api/oslo_policy reading sources... [ 64%] reference/api/oslo_policy.tests reading sources... [ 70%] reference/index reading sources... [ 76%] user/history reading sources... [ 82%] user/index reading sources... [ 88%] user/plugins reading sources... [ 94%] user/sphinxpolicygen reading sources... [100%] user/usage looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 5%] admin/index [openstackdocstheme] giturl 'https://git.openstack.org/cgit/openstack/oslo.policy/tree/doc/source' [openstackdocstheme] bug_project (from user) 'oslo.policy' [openstackdocstheme] series 'latest' [openstackdocstheme] display_badge False (no stable branches) [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/admin/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/admin/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'admin/index' writing output... [ 11%] admin/policy-json-file [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/admin/policy-json-file.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/admin/policy-json-file.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'admin/policy-json-file' writing output... [ 17%] admin/policy-yaml-file [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/admin/policy-yaml-file.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/admin/policy-yaml-file.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'admin/policy-yaml-file' writing output... [ 23%] cli/index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/cli/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/cli/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'cli/index' writing output... [ 29%] configuration/index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/configuration/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/configuration/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'configuration/index' writing output... [ 35%] contributor/index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/contributor/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/contributor/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'contributor/index' writing output... [ 41%] index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'index' writing output... [ 47%] install/index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/install/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/install/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'install/index' writing output... [ 52%] reference/api/modules [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/reference/api/modules.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/reference/api/modules.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'reference/api/modules' writing output... [ 58%] reference/api/oslo_policy [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/reference/api/oslo_policy.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/reference/api/oslo_policy.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'reference/api/oslo_policy' writing output... [ 64%] reference/api/oslo_policy.tests [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/reference/api/oslo_policy.tests.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/reference/api/oslo_policy.tests.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'reference/api/oslo_policy.tests' writing output... [ 70%] reference/index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/reference/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/reference/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'reference/index' writing output... [ 76%] user/history [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/user/history.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/user/history.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'user/history' writing output... [ 82%] user/index [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/user/index.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/user/index.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'user/index' writing output... [ 88%] user/plugins [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/user/plugins.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/user/plugins.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'user/plugins' writing output... [ 94%] user/sphinxpolicygen [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/user/sphinxpolicygen.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/user/sphinxpolicygen.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'user/sphinxpolicygen' writing output... [100%] user/usage [openstackdocstheme] other_versions [] fatal: unknown date format format:%Y-%m-%d %H:%M:%S [openstackdocstheme] Could not get modification time of doc/source/user/usage.rst: Command '['git', 'log', '-n1', '--format=%ad', '--date=format:%Y-%m-%d %H:%M:%S', '--', u'doc/source/user/usage.rst']' returned non-zero exit status 128 [openstackdocstheme] could not determine last_updated for u'user/usage' generating indices... genindex[openstackdocstheme] other_versions [] [openstackdocstheme] could not determine last_updated for 'genindex' py-modindex[openstackdocstheme] other_versions [] [openstackdocstheme] could not determine last_updated for 'py-modindex' writing additional pages... search[openstackdocstheme] other_versions [] [openstackdocstheme] could not determine last_updated for 'search' copying static files... done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded. The HTML pages are in doc/build/html. + rm -rf doc/build/html/.doctrees doc/build/html/.buildinfo + python2 setup.py compile_catalog -d build/lib/oslo_policy/locale running compile_catalog compiling catalog build/lib/oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.po to build/lib/oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.mo + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.cHGh3h + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 + cd oslo.policy-2.3.4 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 running install [pbr] Writing ChangeLog [pbr] Generating ChangeLog [pbr] ChangeLog complete (0.0s) [pbr] Generating AUTHORS [pbr] AUTHORS complete (0.0s) running install_lib creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale/en_GB creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale/en_GB/LC_MESSAGES copying build/lib/oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.mo -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale/en_GB/LC_MESSAGES copying build/lib/oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.po -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale/en_GB/LC_MESSAGES copying build/lib/oslo_policy/version.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/sphinxpolicygen.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/sphinxext.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/shell.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/policy.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/opts.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/generator.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/fixture.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/_parser.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/_i18n.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/_external.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/_checks.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/_cache_handler.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy copying build/lib/oslo_policy/__init__.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy creating /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/token_fixture.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_sphinxpolicygen.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_sphinxext.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_shell.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_policy.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_parser.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_opts.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_generator.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_fixtures.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_external.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/test_checks.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/base.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests copying build/lib/oslo_policy/tests/__init__.py -> /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/version.py to version.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/sphinxpolicygen.py to sphinxpolicygen.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/sphinxext.py to sphinxext.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/shell.py to shell.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/policy.py to policy.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/opts.py to opts.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/generator.py to generator.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/fixture.py to fixture.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/_parser.py to _parser.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/_i18n.py to _i18n.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/_external.py to _external.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/_checks.py to _checks.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/_cache_handler.py to _cache_handler.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/token_fixture.py to token_fixture.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_sphinxpolicygen.py to test_sphinxpolicygen.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_sphinxext.py to test_sphinxext.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_shell.py to test_shell.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_policy.py to test_policy.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_parser.py to test_parser.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_opts.py to test_opts.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_generator.py to test_generator.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_fixtures.py to test_fixtures.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_external.py to test_external.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/test_checks.py to test_checks.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/base.py to base.pyc byte-compiling /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/tests/__init__.py to __init__.pyc writing byte-compilation script '/tmp/tmpaFRoAR.py' /usr/bin/python2 -O /tmp/tmpaFRoAR.py removing /tmp/tmpaFRoAR.py running install_egg_info running egg_info writing oslo.policy.egg-info/PKG-INFO writing top-level names to oslo.policy.egg-info/top_level.txt writing dependency_links to oslo.policy.egg-info/dependency_links.txt writing entry points to oslo.policy.egg-info/entry_points.txt writing pbr to oslo.policy.egg-info/pbr.json [pbr] Processing SOURCES.txt [pbr] In git context, generating filelist from git warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.gitreview' warning: no previously-included files matching '*.pyc' found anywhere in distribution writing manifest file 'oslo.policy.egg-info/SOURCES.txt' Copying oslo.policy.egg-info to /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo.policy-2.3.4-py2.7.egg-info running install_scripts /usr/lib/python2.7/site-packages/pbr/packaging.py:410: EasyInstallDeprecationWarning: Use get_header header = easy_install.get_script_header("", executable, is_wininst) Installing oslopolicy-policy-upgrade script to /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin Installing oslopolicy-list-redundant script to /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin Installing oslopolicy-checker script to /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin Installing oslopolicy-sample-generator script to /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin Installing oslopolicy-policy-generator script to /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin ~/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin ~/build/BUILD/oslo.policy-2.3.4 + pushd /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64//usr/bin + for item in checker list-redundant policy-generator sample-generator + ln -s oslopolicy-checker /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin/oslopolicy-checker-2 + for item in checker list-redundant policy-generator sample-generator + ln -s oslopolicy-list-redundant /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin/oslopolicy-list-redundant-2 + for item in checker list-redundant policy-generator sample-generator + ln -s oslopolicy-policy-generator /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin/oslopolicy-policy-generator-2 + for item in checker list-redundant policy-generator sample-generator + ln -s oslopolicy-sample-generator /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/bin/oslopolicy-sample-generator-2 ~/build/BUILD/oslo.policy-2.3.4 + popd + install -d -m 755 /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share + rm -f /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale/en_GB/LC_MESSAGES/oslo_policy.po + rm -f '/builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale/*pot' + mv /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7/site-packages/oslo_policy/locale /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/locale + /usr/lib/rpm/find-lang.sh /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 oslo_policy --all-name + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/oslo.policy-2.3.4 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.DMHoBf + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + export OS_TEST_PATH=./oslo_policy/tests + OS_TEST_PATH=./oslo_policy/tests + PYTHON=python2 + stestr-2 --test-path ./oslo_policy/tests run {3} oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator [0.000857s] ... ok {3} oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch [0.001804s] ... ok {3} oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup [0.001073s] ... ok {3} oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected [0.001090s] ... ok {3} oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches [0.001092s] ... ok {3} oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false [0.000312s] ... ok {3} oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true [0.000325s] ... ok {3} oslo_policy.tests.test_checks.NotCheckTestCase.test_init [0.000277s] ... ok {3} oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule [0.000291s] ... ok {3} oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true [0.001060s] ... ok {3} oslo_policy.tests.test_checks.TrueCheckTestCase.test_call [0.000280s] ... ok {3} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept [0.003278s] ... ok {3} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs [0.003133s] ... ok {3} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false [0.001585s] ... ok {2} oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check [0.000948s] ... ok {2} oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true [0.000408s] ... ok {2} oslo_policy.tests.test_checks.AndCheckTestCase.test_init [0.000278s] ... ok {2} oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check [0.000455s] ... ok {2} oslo_policy.tests.test_checks.FalseCheckTestCase.test_str [0.000311s] ... ok {2} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept [0.002467s] ... ok {2} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept [0.001115s] ... ok {3} oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules [0.006720s] ... ok {2} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch [0.006643s] ... ok {2} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted [0.001135s] ... ok {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check [0.000331s] ... ok {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false [0.000327s] ... ok ERROR [oslo_policy._parser] No handler for matches of kind no {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true [0.000322s] ... ok {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_init [0.000334s] ... ok {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule [0.000346s] ... ok {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule [0.000336s] ... ok {2} oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case [0.001105s] ... ok {1} oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true [0.000782s] ... ok {1} oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule [0.000366s] ... ok {1} oslo_policy.tests.test_checks.CheckTestCase.test_init [0.000333s] ... ok {1} oslo_policy.tests.test_checks.CheckTestCase.test_str [0.000276s] ... ok {1} oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept [0.001788s] ... ok {1} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch [0.001316s] ... ok {1} oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup [0.001107s] ... ok {1} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted [0.001058s] ... ok {1} oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target [0.001024s] ... ok {1} oslo_policy.tests.test_checks.NotCheckTestCase.test_str [0.000288s] ... ok {1} oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check [0.000307s] ... ok {1} oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept [0.001025s] ... ok {3} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names [0.002327s] ... ok {3} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content [0.001674s] ... ok {3} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout [0.001580s] ... ok {3} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml [0.003574s] ... ok {3} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_json_stdout [0.007872s] ... ok {3} oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler [0.000457s] ... ok {3} oslo_policy.tests.test_parser.ParseCheckTestCase.test_true [0.000287s] ... ok {3} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi [0.000362s] ... ok {3} oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list [0.000713s] ... ok {3} oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta [0.000399s] ... ok {3} oslo_policy.tests.test_parser.ParseStateTestCase.test_init [0.000285s] ... ok oslo_policy/policy.py:684: UserWarning: Policy "foo:bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {3} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two [0.000667s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D [0.000346s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 [0.000713s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 [0.000418s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C [0.000309s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty [0.000307s] ... ok {3} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule [0.001193s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string [0.001992s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden [0.001998s] ... ok {1} oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject [0.001027s] ... ok {1} oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false [0.001048s] ... ok {1} oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing [0.001021s] ... ok {1} oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target [0.002967s] ... ok {1} oslo_policy.tests.test_external.HttpCheckTestCase.test_reject [0.002168s] ... ok {1} oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument [0.002310s] ... ok {1} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json [0.002528s] ... ok {1} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify [0.002210s] ... ok ERROR [oslo_policy._parser] Failed to understand rule foobar Traceback (most recent call last): File "oslo_policy/_parser.py", line 212, in _parse_check kind, match = rule.split(':', 1) ValueError: need more than 1 value to unpack {1} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject [0.002430s] ... ok {2} oslo_policy.tests.test_external.HttpCheckTestCase.test_accept [0.004919s] ... ok {2} oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target [0.002184s] ... ok {2} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert [0.002737s] ... ok {2} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target [0.002428s] ... ok {2} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true [0.001387s] ... ok {2} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false [0.002174s] ... ok {1} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting [0.002135s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_check_str_suppress_does_not_log_warning [0.001800s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_for_removal_suppress_does_not_log_warning [0.002866s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_name_suppress_does_not_log_warning [0.001824s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since [0.001446s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object [0.001130s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_both_new_and_old_policy [0.002093s] ... ok {1} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_paragraph_formatting [0.001707s] ... ok {1} oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error [0.000848s] ... ok {1} oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error [0.000238s] ... ok {1} oslo_policy.tests.test_generator.GetEnforcerTestCase.test_get_enforcer [0.001925s] ... ok {1} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_json_file [0.002677s] ... ok {1} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_yaml_file [0.003264s] ... ok {1} oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule [0.000581s] ... ok {1} oslo_policy.tests.test_parser.ParseCheckTestCase.test_check [0.000343s] ... ok {1} oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default [0.000385s] ... ok {2} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true [0.001262s] ... ok {2} oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json [0.002345s] ... ok {2} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_with_same_name [0.003022s] ... ok {2} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_literal_block_formatting [0.001620s] ... ok ERROR [oslo_policy._parser] Failed to understand rule test rule Traceback (most recent call last): File "oslo_policy/_parser.py", line 340, in _parse_text_rule return state.result File "oslo_policy/_parser.py", line 141, in result raise ValueError('Could not parse rule') ValueError: Could not parse rule {2} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal [0.002238s] ... ok {2} oslo_policy.tests.test_generator.GetEnforcerTestCase.test_get_enforcer_missing [0.001789s] ... ok {2} oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules [0.005722s] ... ok {2} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_yaml_stdout [0.002932s] ... ok {2} oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file [0.002733s] ... ok {2} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare [0.000362s] ... ok {2} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi [0.000367s] ... ok {2} oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr [0.000324s] ... ok {2} oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr [0.000319s] ... ok {2} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short [0.000438s] ... ok {1} oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string [0.000652s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr [0.000395s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr [0.000416s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr [0.000289s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 [0.000423s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 [0.000415s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi [0.000623s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations [0.001205s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 [0.000395s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 [0.000736s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 [0.000410s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 [0.000357s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D [0.001275s] ... ok {2} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules [0.001528s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one [0.000646s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_result [0.000288s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_shift [0.000608s] ... ok {1} oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check [0.000298s] ... ok {1} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 [0.001056s] ... ok {1} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 [0.000383s] ... ok oslo_policy/policy.py:684: UserWarning: Policy "old_rule":"role:bang" was deprecated in N in favor of "new_rule":"role:bang". Reason: "old_rule" is a bad name. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {1} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 [0.000344s] ... ok {1} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D [0.000580s] ... ok {1} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail [0.000591s] ... ok {1} oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize [0.000325s] ... ok {1} oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public [0.001329s] ... ok {1} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit [0.001834s] ... ok {1} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default [0.001430s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since [0.001162s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_deprecated_policy_with_new_rule [0.002036s] ... ok {2} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception [0.006950s] ... ok {2} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning [0.001629s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations [0.001073s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method [0.016011s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path [0.001929s] ... ok {3} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true [0.006851s] ... ok {3} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations [0.001920s] ... ok WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. WARNING [oslo_policy.policy] Policies [u'baz', u'foo', u'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies [u'baz', u'foo', u'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. {2} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_deprecated_policy_with_new_name [0.005010s] ... ok {2} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only [0.001276s] ... ok {2} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false [0.001962s] ... ok {2} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises [0.001650s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list [0.003923s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list [0.001153s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false [0.001123s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered [0.002127s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_raises_invalid_scope_with_project_scope_type [0.001953s] ... ok {2} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule [0.002250s] ... ok {3} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises [0.002398s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_clear [0.001288s] ... ok WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined. {3} oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered [0.001865s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects [0.001780s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects [0.001726s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite [0.002177s] ... ok {2} oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory [0.001803s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered [0.001186s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered [0.001731s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context [0.001718s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes [0.002679s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds [0.001256s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name [0.001531s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered [0.002876s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules [0.001476s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_raises_invalid_scope_with_domain_scope_type [0.001876s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule [0.001343s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file [0.001198s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc [0.001347s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg [0.001868s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects [0.002857s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules [0.001643s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules [0.001109s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file [0.001269s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_after_file_update [0.002227s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated [0.002152s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered [0.001895s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered [0.001465s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check [0.001602s] ... ok {1} oslo_policy.tests.test_policy.RegisterCheckTestCase.test_register_check [0.001102s] ... ok {1} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails [0.001123s] ... ok {1} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious [0.001096s] ... ok {1} oslo_policy.tests.test_policy.RulesTestCase.test_missing_default [0.000374s] ... ok {1} oslo_policy.tests.test_policy.RulesTestCase.test_str [0.000329s] ... ok {1} oslo_policy.tests.test_policy.RulesTestCase.test_with_default [0.000328s] ... ok {1} oslo_policy.tests.test_shell.CheckerTestCase.test_all_nonadmin [0.002133s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same [0.001752s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered [0.002441s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload [0.002702s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises [0.001561s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false [0.001899s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered [0.001972s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed [0.002363s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force [0.002738s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory [0.001753s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered [0.001877s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice [0.002911s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system [0.001424s] ... ok {3} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types [0.001171s] ... ok {3} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types [0.001116s] ... ok {3} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious [0.001142s] ... ok {3} oslo_policy.tests.test_policy.RulesTestCase.test_init [0.000313s] ... ok {3} oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data [0.000492s] ... ok {3} oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc [0.003845s] ... ok {3} oslo_policy.tests.test_policy.RulesTestCase.test_retrieval [0.000325s] ... ok {3} oslo_policy.tests.test_shell.CheckerTestCase.test_flatten_from_dict [0.001688s] ... ok {3} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_with_custom_target [0.003122s] ... ok {3} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description [0.000544s] ... ok {3} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations [0.000363s] ... ok {3} oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file [0.001369s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered [0.002174s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear [0.002244s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type [0.001179s] ... ok {2} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check [0.001123s] ... ok {2} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name [0.001973s] ... ok {2} oslo_policy.tests.test_policy.RulesTestCase.test_load_json [0.000414s] ... ok {2} oslo_policy.tests.test_policy.RulesTestCase.test_no_default [0.000425s] ... ok {2} oslo_policy.tests.test_policy.RulesTestCase.test_str_true [0.000337s] ... ok {2} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters [0.004723s] ... ok {2} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types [0.000592s] ... ok {1} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_sorted [0.002361s] ... ok {1} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_with_scope [0.002380s] ... ok {1} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal [0.000475s] ... ok {1} oslo_policy.tests.test_sphinxext.IndentTest.test_indent [0.000374s] ... ok {0} oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false [0.000890s] ... ok {0} oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule [0.000377s] ... ok {0} oslo_policy.tests.test_checks.AndCheckTestCase.test_str [0.000293s] ... ok {0} oslo_policy.tests.test_checks.FalseCheckTestCase.test_call [0.000342s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches [0.001962s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches [0.001151s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted [0.001095s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred [0.001087s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted [0.001074s] ... ok {0} oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule [0.000325s] ... ok {0} oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true [0.000315s] ... ok {0} oslo_policy.tests.test_checks.OrCheckTestCase.test_str [0.000307s] ... ok {0} oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value [0.001042s] ... ok {0} oslo_policy.tests.test_checks.TrueCheckTestCase.test_str [0.000305s] ... ok {0} oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json [0.003118s] ... ok {0} oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument [0.002175s] ... ok {0} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target [0.002348s] ... ok {0} oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content [0.001562s] ... ok {0} oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout [0.001568s] ... ok {0} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_invalid_formatting [0.002032s] ... ok {0} oslo_policy.tests.test_parser.ParseCheckTestCase.test_false [0.000349s] ... ok {0} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty [0.000292s] ... ok {0} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele [0.000309s] ... ok {0} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele [0.000309s] ... ok {0} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele [0.000273s] ... ok {0} oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer [0.000332s] ... ok {0} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none [0.000430s] ... ok {0} oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty [0.000433s] ... ok {0} oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced [0.000332s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C [0.000348s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D [0.000333s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C [0.000306s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D [0.000417s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D [0.000340s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 [0.000696s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 [0.000388s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C [0.000328s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D [0.000364s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D [0.000328s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts [0.000920s] ... ok {0} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file [0.001710s] ... ok {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name [0.002024s] ... ok {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason [0.001128s] ... ok oslo_policy/policy.py:684: UserWarning: Policy "foo:bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) oslo_policy/policy.py:721: UserWarning: Policy "foo:bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_deprecated_policy_with_old_name [0.002254s] ... ok {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty [0.001125s] ... ok {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts [0.001100s] ... ok WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies [u'foo', u'bar'] are part of a cyclical reference. {0} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules [0.001598s] ... ok {0} oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules [0.001207s] ... ok {0} oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered [0.001285s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite [0.002015s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_raises_invalid_scope_with_system_scope_type [0.001987s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_understands_domain_scope [0.001564s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_understands_project_scope [0.001546s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_understands_system_scope [0.001592s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory [0.001852s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered [0.002151s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice [0.002136s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_file [0.001375s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories [0.002069s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory [0.001628s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force [0.002065s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check [0.001206s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique [0.001098s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass [0.001097s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class [0.001087s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass [0.001079s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed [0.001049s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str [0.001065s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_from_dict [0.000320s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_init_basic [0.000279s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated [0.003380s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml [0.001129s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc [0.000749s] ... ok {0} oslo_policy.tests.test_shell.CheckerTestCase.test_flatten_from_file [0.001461s] ... ok {0} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_with_owner [0.002102s] ... ok {0} oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files [0.001278s] ... ok {0} oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base [0.001128s] ... ok ====== Totals ====== Ran: 305 tests in 0.0000 sec. - Passed: 305 - Skipped: 0 - Expected Fail: 0 - Unexpected Success: 0 - Failed: 0 Sum of execute time for each test: 0.4479 sec. ============== Worker Balance ============== - Worker 0 (77 tests) => 0:00:00.094981 - Worker 1 (76 tests) => 0:00:00.107116 - Worker 2 (76 tests) => 0:00:00.134570 - Worker 3 (76 tests) => 0:00:00.150232 + exit 0 Processing files: python2-oslo-policy-2.3.4-0.20200713062415.5904564.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.udLJAj + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + DOCDIR=/builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/doc/python2-oslo-policy-2.3.4 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/doc/python2-oslo-policy-2.3.4 + cp -pr README.rst /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/doc/python2-oslo-policy-2.3.4 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.B8rhBn + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + LICENSEDIR=/builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python2-oslo-policy-2.3.4 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python2-oslo-policy-2.3.4 + cp -pr LICENSE /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python2-oslo-policy-2.3.4 + exit 0 Provides: python-oslo-policy = 2.3.4-0.20200713062415.5904564.el7 python2-oslo-policy = 2.3.4-0.20200713062415.5904564.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python2 python(abi) = 2.7 Obsoletes: python-oslo-policy < 2.3.4-0.20200713062415.5904564.el7 Processing files: python-oslo-policy-doc-2.3.4-0.20200713062415.5904564.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Qvp3tt + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + DOCDIR=/builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/doc/python-oslo-policy-doc-2.3.4 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/doc/python-oslo-policy-doc-2.3.4 + cp -pr doc/build/html /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/doc/python-oslo-policy-doc-2.3.4 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.tFgoqz + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + LICENSEDIR=/builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python-oslo-policy-doc-2.3.4 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python-oslo-policy-doc-2.3.4 + cp -pr LICENSE /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python-oslo-policy-doc-2.3.4 + exit 0 Provides: python-oslo-policy-doc = 2.3.4-0.20200713062415.5904564.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: python2-oslo-policy-tests-2.3.4-0.20200713062415.5904564.el7.noarch Provides: python-oslo-policy = 2.3.4-0.20200713062415.5904564.el7 python2-oslo-policy-tests = 2.3.4-0.20200713062415.5904564.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 2.7 Obsoletes: python-oslo-policy < 2.3.4-0.20200713062415.5904564.el7 Processing files: python-oslo-policy-lang-2.3.4-0.20200713062415.5904564.el7.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.SDIiMI + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + LICENSEDIR=/builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python-oslo-policy-lang-2.3.4 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python-oslo-policy-lang-2.3.4 + cp -pr LICENSE /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64/usr/share/licenses/python-oslo-policy-lang-2.3.4 + exit 0 Provides: python-oslo-policy-lang = 2.3.4-0.20200713062415.5904564.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 Wrote: /builddir/build/RPMS/python2-oslo-policy-2.3.4-0.20200713062415.5904564.el7.noarch.rpm Wrote: /builddir/build/RPMS/python-oslo-policy-doc-2.3.4-0.20200713062415.5904564.el7.noarch.rpm Wrote: /builddir/build/RPMS/python2-oslo-policy-tests-2.3.4-0.20200713062415.5904564.el7.noarch.rpm Wrote: /builddir/build/RPMS/python-oslo-policy-lang-2.3.4-0.20200713062415.5904564.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.b9PLly + umask 022 + cd /builddir/build/BUILD + cd oslo.policy-2.3.4 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-oslo-policy-2.3.4-0.20200713062415.5904564.el7.x86_64 + exit 0 Child return code was: 0