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
root@oslop-xq:~# apt install ubuntu-cloud-keyring

root@oslop-xq:~# sudo add-apt-repository cloud-archive:queens-proposed

root@oslop-xq:~# cat /etc/apt/sources.list.d/cloudarchive-queens-proposed.list
deb http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-proposed/queens main
# deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu 
xenial-proposed/queens main

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

OK


** Tags removed: verification-needed verification-queens-needed
** Tags added: verification-done verification-queens-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1880959

Title:
  Rules from the policy directory files are not reapplied after changes
  to the primary policy file

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1880959/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to