root@oslop-xq:~# apt update && apt install python3-oslo.policy python-oslo.policy python3-oslotest python-oslotest
Setting up python-oslo.policy (1.33.1-0ubuntu3~cloud0) ...
Setting up python3-oslo.policy (1.33.1-0ubuntu3~cloud0) ...
root@oslop-xq:/usr/lib/python2.7/dist-packages/oslo_policy# dpkg -l | grep oslo.policy
ii python-oslo.policy 1.33.1-0ubuntu3~cloud0 all RBAC policy enforcement library for OpenStack - Python 2.x
ii python3-oslo.policy 1.33.1-0ubuntu3~cloud0 all RBAC policy enforcement library for OpenStack - Python 3.x
root@oslop-xq:~# cd /usr/lib/python3/dist-packages/oslo_policy/
root@oslop-xq:/usr/lib/python3/dist-packages/oslo_policy# PYTHONPATH=`realpath tests` ; python3 -m unittest tests.test_policy.EnforcerTest.test_load_directory_after_file_update
WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined.
.
----------------------------------------------------------------------
Ran 1 test in 0.086s
OK
root@oslop-xq:/usr/lib/python3/dist-packages/oslo_policy# cd /usr/lib/python2.7/dist-packages/oslo_policy
root@oslop-xq:/usr/lib/python2.7/dist-packages/oslo_policy#
root@oslop-xq:/usr/lib/python2.7/dist-packages/oslo_policy# PYTHONPATH=`realpath tests` ; python -m unittest tests.test_policy.EnforcerTest.test_load_directory_after_file_update
WARNING [oslo_policy.policy] Policies [u'foo'] reference a rule that is not defined.
.
----------------------------------------------------------------------
Ran 1 test in 0.079s
Verified xenial/queens (the updated packages got uploaded compared to the check in comment #45):
lxc launch ubuntu:xenial oslop-xq
Creating oslop-xq
Starting oslop-xq
lxc exec oslop-bq bash
root@oslop-xq:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
root@oslop-xq:~# apt update cloud-keyring
root@oslop-xq:~# apt install ubuntu-
root@oslop-xq:~# sudo add-apt-repository cloud-archive: queens- proposed
root@oslop-xq:~# cat /etc/apt/ sources. list.d/ cloudarchive- queens- proposed. list ubuntu- cloud.archive. canonical. com/ubuntu xenial- proposed/ queens main ubuntu- cloud.archive. canonical. com/ubuntu xenial- proposed/ queens main
deb http://
# deb-src http://
root@oslop-xq:~# apt update && apt install python3-oslo.policy python-oslo.policy python3-oslotest python-oslotest 0ubuntu3~ cloud0) ... 0ubuntu3~ cloud0) ...
Setting up python-oslo.policy (1.33.1-
Setting up python3-oslo.policy (1.33.1-
root@oslop- xq:/usr/ lib/python2. 7/dist- packages/ oslo_policy# dpkg -l | grep oslo.policy 0ubuntu3~ cloud0 all RBAC policy enforcement library for OpenStack - Python 2.x 0ubuntu3~ cloud0 all RBAC policy enforcement library for OpenStack - Python 3.x
ii python-oslo.policy 1.33.1-
ii python3-oslo.policy 1.33.1-
root@oslop-xq:~# cd /usr/lib/ python3/ dist-packages/ oslo_policy/
root@oslop- xq:/usr/ lib/python3/ dist-packages/ oslo_policy# PYTHONPATH= `realpath tests` ; python3 -m unittest tests.test_ policy. EnforcerTest. test_load_ directory_ after_file_ update policy] Policies ['foo'] reference a rule that is not defined. ------- ------- ------- ------- ------- ------- ------- ------- -------
WARNING [oslo_policy.
.
-------
Ran 1 test in 0.086s
OK
root@oslop- xq:/usr/ lib/python3/ dist-packages/ oslo_policy# cd /usr/lib/ python2. 7/dist- packages/ oslo_policy xq:/usr/ lib/python2. 7/dist- packages/ oslo_policy#
root@oslop-
root@oslop- xq:/usr/ lib/python2. 7/dist- packages/ oslo_policy# PYTHONPATH= `realpath tests` ; python -m unittest tests.test_ policy. EnforcerTest. test_load_ directory_ after_file_ update policy] Policies [u'foo'] reference a rule that is not defined. ------- ------- ------- ------- ------- ------- ------- ------- -------
WARNING [oslo_policy.
.
-------
Ran 1 test in 0.079s
OK