test_commands_dict_populated occasionally fails due to AttributeError

Bug #1709652 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
High
Akihiro Motoki
Revision history for this message
Akihiro Motoki (amotoki) wrote :

The reliable way to reproduce this with 100% is to run neutronclient.tests.unit.test_shell.ShellTest.test_commands_dict_populated only, so the cause looks like that neutronclient.shell.COMMANDS is not defined explicitly until NeutronShell class is instantiated.

Changed in python-neutronclient:
assignee: nobody → Akihiro Motoki (amotoki)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

the latest stable/pike commit (commit f9bac295420cbaacdb081786f96647840f8f3742) hits this.

tags: added: pike-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)

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

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

Reviewed: https://review.openstack.org/492175
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=4c3fbe2639664c25d3c06522f9c85713e65bb893
Submitter: Jenkins
Branch: master

commit 4c3fbe2639664c25d3c06522f9c85713e65bb893
Author: Akihiro Motoki <email address hidden>
Date: Wed Aug 9 15:23:54 2017 +0000

    Define shell.COMMANDS explicitly to avoid random UT failure

    Mocking non-existing attribute causes UT faillure.
    As a result, neutronclient UT fails depending on
    executing order of tests.

    Change-Id: Id047527fba9e908938f7157781fb0e36e76011c7
    Closes-Bug: #1709652

Changed in python-neutronclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/493332

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-neutronclient (stable/pike)

Reviewed: https://review.openstack.org/493332
Committed: https://git.openstack.org/cgit/openstack/python-neutronclient/commit/?id=a0893c32c7929fa5b3fb7c3b08820baeed3023b3
Submitter: Jenkins
Branch: stable/pike

commit a0893c32c7929fa5b3fb7c3b08820baeed3023b3
Author: Akihiro Motoki <email address hidden>
Date: Wed Aug 9 15:23:54 2017 +0000

    Define shell.COMMANDS explicitly to avoid random UT failure

    Mocking non-existing attribute causes UT failure.
    As a result, neutronclient UT fails depending on
    executing order of tests.

    Change-Id: Id047527fba9e908938f7157781fb0e36e76011c7
    Closes-Bug: #1709652
    (cherry picked from commit 4c3fbe2639664c25d3c06522f9c85713e65bb893)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-neutronclient 6.6.0

This issue was fixed in the openstack/python-neutronclient 6.6.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-neutronclient 6.5.1

This issue was fixed in the openstack/python-neutronclient 6.5.1 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.