KeyError cause "module list --all" command failed

Bug #1661814 reported by Rui Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Rui Chen

Bug Description

"module list --all" command failed in my devstack, the output like this:

stack@ubuntu1604 /opt/stack/python-openstackclient (master) $ openstack
(openstack) module list --all
'_constant_time'
(openstack)

I check my python sys.modules, "_constant_time.lib" and "_openssl.lib" exist, the current logic use the prefix of module name like: "_constant_time" and "_openssl" to get module from sys.modules directory, that cause KeyError to make the command fail, because only "_constant_time.lib" exist, but "_constant_time".

Rui Chen (kiwik-chenrui)
Changed in python-openstackclient:
assignee: nobody → Rui Chen (kiwik-chenrui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: New → In Progress
Changed in python-openstackclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/429246
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=3afd2b7ff25af7e7998e9c8f4adac8a58a079675
Submitter: Jenkins
Branch: master

commit 3afd2b7ff25af7e7998e9c8f4adac8a58a079675
Author: Rui Chen <email address hidden>
Date: Sat Feb 4 17:01:21 2017 +0800

    Fix "module list --all" failed

    KeyError cause the command "module list --all" failed,
    fix it, and do refactor to filter private modules and
    reduce the loop times, add related unit tests and
    functional tests.

    Change-Id: Icd77739502e05b5f763a04a92547497bf82d5d63
    Closes-Bug: #1661814

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.9.0

This issue was fixed in the openstack/python-openstackclient 3.9.0 release.

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.