auth token middleware is an upgrade bottleneck

Bug #1043479 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Dolph Mathews

Bug Description

Steps to reproduce:

1) Install devstack stable/essex
2) Kill all services
3) Upgrade keystone to master and start
4) Upgrade glance to master and attempt to start

The exception you see from the last step will look like this:

2012-08-29 18:27:04 TRACE glance File "/opt/stack/keystone/keystone/middleware/auth_token.py", line 123, in <module>
2012-08-29 18:27:04 TRACE glance if 'config_file' in cfg.CONF:
2012-08-29 18:27:04 TRACE glance AttributeError: 'module' object has no attribute 'CONF'

What's happening is the auth_token middleware is looking for openstack.common.cfg in nova's directory and barfing on it as CONF didn't exist in the essex codebase: https://github.com/openstack/nova/blob/stable/essex/nova/openstack/common/cfg.py

This makes the auth_token middleware a bottleneck to upgrading a system as you must upgrade all the code first before you can turn on a keystone-enabled folsom service.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12147

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/12147
Committed: http://github.com/openstack/keystone/commit/2759c2239862ebe9bf7b6656936c65753e5c2cfc
Submitter: Jenkins
Branch: master

commit 2759c2239862ebe9bf7b6656936c65753e5c2cfc
Author: Dolph Mathews <email address hidden>
Date: Wed Aug 29 13:55:40 2012 -0500

    Check for expected cfg impl (bug 1043479)

    Change-Id: Id2ac85d4ac61713c0ca8e2c10e68cbdeeadff4cb

Changed in keystone:
status: In Progress → Fix Committed
Joseph Heck (heckj)
Changed in keystone:
milestone: none → folsom-rc1
importance: Undecided → High
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-rc1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.