keystone upgrade fails q->r oslo.log requirement to low

Bug #1793347 reported by Tobias Urdin on 2018-09-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Undecided
Unassigned
Ubuntu Cloud Archive
Status tracked in Rocky
Rocky
High
Unassigned
keystone (Ubuntu)
Status tracked in Cosmic
Cosmic
High
Unassigned

Bug Description

When upgrading from Keystone queens to rocky the requirements.txt for rocky says oslo.log >= 3.36.0 but versionutils.deprecated.ROCKY is not introduced until 3.37.0

Should bump requirements.txt to atleast 3.37.0

Error when running db sync:
Traceback (most recent call last):
  File "/bin/keystone-manage", line 6, in <module>
    from keystone.cmd.manage import main
  File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 19, in <module>
    from keystone.cmd import cli
  File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 29, in <module>
    from keystone.cmd import bootstrap
  File "/usr/lib/python2.7/site-packages/keystone/cmd/bootstrap.py", line 17, in <module>
    from keystone.common import driver_hints
  File "/usr/lib/python2.7/site-packages/keystone/common/driver_hints.py", line 18, in <module>
    from keystone import exception
  File "/usr/lib/python2.7/site-packages/keystone/exception.py", line 20, in <module>
    import keystone.conf
  File "/usr/lib/python2.7/site-packages/keystone/conf/__init__.py", line 27, in <module>
    from keystone.conf import default
  File "/usr/lib/python2.7/site-packages/keystone/conf/default.py", line 60, in <module>
    deprecated_since=versionutils.deprecated.ROCKY,
AttributeError: type object 'deprecated' has no attribute 'ROCKY'

Corey Bryant (corey.bryant) wrote :

Thanks very much for reporting this Tobias. I will have a fix coming for the Ubuntu package. We use apt dist-upgrade in our upgrade tests which won't uncover this.

Changed in keystone (Ubuntu Cosmic):
status: New → Triaged
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package keystone - 2:14.0.0-0ubuntu2

---------------
keystone (2:14.0.0-0ubuntu2) cosmic; urgency=medium

  * d/control: Set min python-oslo.log to rocky version (3.39.0) as
    requirements.txt min version is too low (LP: #1793347).

 -- Corey Bryant <email address hidden> Thu, 20 Sep 2018 11:15:39 +0200

Changed in keystone (Ubuntu Cosmic):
status: Triaged → Fix Released
Changed in cloud-archive:
status: Triaged → Fix Committed
Corey Bryant (corey.bryant) wrote :

This bug was fixed in the package keystone - 2:14.0.0-0ubuntu2~cloud0
---------------

 keystone (2:14.0.0-0ubuntu2~cloud0) bionic-rocky; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 keystone (2:14.0.0-0ubuntu2) cosmic; urgency=medium
 .
   * d/control: Set min python-oslo.log to rocky version (3.39.0) as
     requirements.txt min version is too low (LP: #1793347).

Changed in cloud-archive:
status: Fix Committed → Fix Released
sunguangning (sunguangning) wrote :

There are the same question in centos7.4 when use kolla-ansible to deploy openstack rocky

TASK [keystone: Initialise fernet key authentication]**********************
FAILED -(10 retries left)

Traceback (most recent call last):
  File "/bin/keystone-manage", line 6, in <module>
    from keystone.cmd.manage import main
  File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 19, in <module>
    from keystone.cmd import cli
  File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 29, in <module>
    from keystone.cmd import bootstrap
  File "/usr/lib/python2.7/site-packages/keystone/cmd/bootstrap.py", line 17, in <module>
    from keystone.common import driver_hints
  File "/usr/lib/python2.7/site-packages/keystone/common/driver_hints.py", line 18, in <module>
    from keystone import exception
  File "/usr/lib/python2.7/site-packages/keystone/exception.py", line 20, in <module>
    import keystone.conf
  File "/usr/lib/python2.7/site-packages/keystone/conf/__init__.py", line 27, in <module>
    from keystone.conf import default
  File "/usr/lib/python2.7/site-packages/keystone/conf/default.py", line 60, in <module>
    deprecated_since=versionutils.deprecated.ROCKY,
AttributeError: type object 'deprecated' has no attribute 'ROCKY'

Corey Bryant (corey.bryant) wrote :

Hi sunguangning,

I'm not sure that you'll get attention for centos7.4 and kolla-ansible here. I'd recommend opening a bug against centos for this (I'm not sure where to do that) or checking in with the kolla-ansible folks, perhaps they have a channel on freenode.

Thanks,
Corey

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers