lxml is a hard dependency even if XmlBodyMiddleware is not enabled

Bug #1351016 reported by werner mendizabal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Marek Denis
Tags: xml
Revision history for this message
Lance Bragstad (lbragstad) wrote :

Looks like the XmlBodyMiddleware is planned to be removed in Kilo?

Also, I think the main problem here is due to the import chain:

https://github.com/openstack/keystone/blob/a617408a7ba441b46fc618a86501adbcaa403dd9/keystone/middleware/core.py#L20 which in turn imports https://github.com/openstack/keystone/blob/a617408a7ba441b46fc618a86501adbcaa403dd9/keystone/common/serializer.py#L23 regardless

Revision history for this message
Lance Bragstad (lbragstad) wrote :
Changed in keystone:
importance: Undecided → Low
Revision history for this message
werner mendizabal (nonameentername) wrote :

These are the config options that I changed:
http://paste.openstack.org/show/89458/

This is the error I get when starting keystone:
http://paste.openstack.org/show/89459/

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/111108

Changed in keystone:
assignee: nobody → werner mendizabal (nonameentername)
status: New → In Progress
Changed in keystone:
assignee: werner mendizabal (nonameentername) → Lance Bragstad (lbragstad)
Changed in keystone:
assignee: Lance Bragstad (lbragstad) → werner mendizabal (nonameentername)
Changed in keystone:
assignee: werner mendizabal (nonameentername) → Lance Bragstad (lbragstad)
Dolph Mathews (dolph)
summary: - When the XmlBodyMiddleware is not enabled keystone lxml
+ lxml is a hard depedency even if XmlBodyMiddleware is not enabled
summary: - lxml is a hard depedency even if XmlBodyMiddleware is not enabled
+ lxml is a hard dependency even if XmlBodyMiddleware is not enabled
tags: added: xml
Changed in keystone:
assignee: Lance Bragstad (lbragstad) → David Stanek (dstanek)
Changed in keystone:
assignee: David Stanek (dstanek) → Lance Bragstad (lbragstad)
Changed in keystone:
assignee: Lance Bragstad (lbragstad) → Marek Denis (marek-denis)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/111108
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=ed1b10f280452b73b29d417575fd6b32268a55bd
Submitter: Jenkins
Branch: master

commit ed1b10f280452b73b29d417575fd6b32268a55bd
Author: werner mendizabal <email address hidden>
Date: Thu Jul 31 17:50:57 2014 -0500

    Refactor serializer import to XmlBodyMiddleware

    Previously, the keystone/middleware/core.py module would import
    keystone/common/serializer.py regardless of the XmlBodyMiddleware class
    being used. This change modifies keystone/common/serializer.py to raise
    an error if there is an issue with using lxml at runtime.

    Change-Id: I977275d0df8666b49ddbfadd4f5606d7c2292b1f
    Closes-Bug: 1351016

Changed in keystone:
status: In Progress → Fix Committed
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/113255

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by Lance Bragstad (<email address hidden>) on branch: master
Review: https://review.openstack.org/113255
Reason: abandoning in favor of: https://review.openstack.org/#/c/112914/

Thierry Carrez (ttx)
Changed in keystone:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-3 → 2014.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.