[SRU] NameError: global name '_LE' is not defined when running trove-guestagent

Bug #1620888 reported by Chaozhe Chen
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
High
Chaozhe Chen
Ubuntu Cloud Archive
Invalid
Undecided
Unassigned
Mitaka
Fix Released
High
Corey Bryant
openstack-trove (Ubuntu)
Invalid
Undecided
Unassigned
Xenial
Fix Released
High
Corey Bryant

Bug Description

[Description]
When we run trove-guestagent, it will throw exception as follow:

2016-09-06 12:53:49.178 8485 CRITICAL root [-] NameError: global name '_LE' is not defined
2016-09-06 12:53:49.178 8485 ERROR root Traceback (most recent call last):
2016-09-06 12:53:49.178 8485 ERROR root File "/usr/local/bin/trove-guestagent", line 10, in <module>
2016-09-06 12:53:49.178 8485 ERROR root sys.exit(main())
2016-09-06 12:53:49.178 8485 ERROR root File "/usr/local/lib/python2.7/dist-packages/trove/cmd/guest.py", line 43, in main
2016-09-06 12:53:49.178 8485 ERROR root msg = (_LE("Manager class not registered for datastore manager %s") %
2016-09-06 12:53:49.178 8485 ERROR root NameError: global name '_LE' is not defined
2016-09-06 12:53:49.178 8485 ERROR root

[Testcase]
Run trove-guestagent.

[Regression potential]
None. The fix just adds a missing import.

Changed in trove:
assignee: nobody → Chaozhe Chen (chaozhe-chen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: New → In Progress
Changed in trove:
importance: Undecided → Low
Amrith Kumar (amrith)
Changed in trove:
importance: Low → High
milestone: none → newton-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/366466
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=e428d76ace2e21d83991243ad00b4951ae05da6a
Submitter: Jenkins
Branch: master

commit e428d76ace2e21d83991243ad00b4951ae05da6a
Author: Chaozhe.Chen <email address hidden>
Date: Wed Sep 7 10:37:36 2016 +0800

    Add missing '_LE' import in trove/cmd/guest.py

    Global name '_LE' was missing in trove/cmd/guest.py. This patch
    adds this missing import.

    Change-Id: Ia0b4ecb27f0f4dcae88a56288bc5052f1afa63e8
    Closes-Bug: #1620888

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

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/368563

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/368564

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (stable/liberty)

Reviewed: https://review.openstack.org/368563
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=6af7c45ed4dd64287ba8147bbce267ae13f5c5a8
Submitter: Jenkins
Branch: stable/liberty

commit 6af7c45ed4dd64287ba8147bbce267ae13f5c5a8
Author: Chaozhe.Chen <email address hidden>
Date: Wed Sep 7 10:37:36 2016 +0800

    Add missing '_LE' import in trove/cmd/guest.py

    Global name '_LE' was missing in trove/cmd/guest.py. This patch
    adds this missing import.

    Change-Id: Ia0b4ecb27f0f4dcae88a56288bc5052f1afa63e8
    Closes-Bug: #1620888
    (cherry picked from commit e428d76ace2e21d83991243ad00b4951ae05da6a)

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (stable/mitaka)

Reviewed: https://review.openstack.org/368564
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=cb62cf635125b8e76409037b1c6c437b574516d6
Submitter: Jenkins
Branch: stable/mitaka

commit cb62cf635125b8e76409037b1c6c437b574516d6
Author: Chaozhe.Chen <email address hidden>
Date: Wed Sep 7 10:37:36 2016 +0800

    Add missing '_LE' import in trove/cmd/guest.py

    Global name '_LE' was missing in trove/cmd/guest.py. This patch
    adds this missing import.

    Change-Id: Ia0b4ecb27f0f4dcae88a56288bc5052f1afa63e8
    Closes-Bug: #1620888
    (cherry picked from commit e428d76ace2e21d83991243ad00b4951ae05da6a)

tags: added: in-stable-mitaka
Changed in cloud-archive:
status: New → Invalid
Changed in openstack-trove (Ubuntu):
status: New → Invalid
Changed in openstack-trove (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → High
description: updated
Changed in openstack-trove (Ubuntu Xenial):
assignee: nobody → Corey Bryant (corey.bryant)
summary: - NameError: global name '_LE' is not defined when running trove-
+ [SRU] NameError: global name '_LE' is not defined when running trove-
guestagent
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Chaozhe, or anyone else affected,

Accepted openstack-trove into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/openstack-trove/1:5.1.1-0ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in openstack-trove (Ubuntu Xenial):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
James Page (james-page) wrote :

Hello Chaozhe, or anyone else affected,

Accepted openstack-trove into mitaka-proposed. The package will build now and be available in the Ubuntu Cloud Archive in a few hours, and then in the -proposed repository.

Please help us by testing this new package. To enable the -proposed repository:

  sudo add-apt-repository cloud-archive:mitaka-proposed
  sudo apt-get update

Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-mitaka-needed to verification-mitaka-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-mitaka-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-mitaka-needed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/trove 5.1.2

This issue was fixed in the openstack/trove 5.1.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/trove 4.0.2

This issue was fixed in the openstack/trove 4.0.2 release.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've verified this error is fixed in xenial-proposed.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've verified this error is fixed in mitaka-proposed.

tags: added: verification-mitaka-done
removed: verification-mitaka-needed
Revision history for this message
Robie Basak (racb) wrote : Update Released

The verification of the Stable Release Update for openstack-trove has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openstack-trove - 1:5.1.1-0ubuntu2

---------------
openstack-trove (1:5.1.1-0ubuntu2) xenial; urgency=medium

  * d/p/add-missing-import.patch: Cherry-pick patch from upstream
    to add missing '_LE' import for trove-guestagent (LP: #1620888).

 -- Corey Bryant <email address hidden> Thu, 27 Oct 2016 17:42:56 +0200

Changed in openstack-trove (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
James Page (james-page) wrote :

The verification of the Stable Release Update for openstack-trove has completed successfully and the package has now been released to -updates. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
James Page (james-page) wrote :

This bug was fixed in the package openstack-trove - 1:5.1.1-0ubuntu2~cloud0
---------------

 openstack-trove (1:5.1.1-0ubuntu2~cloud0) trusty-mitaka; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 openstack-trove (1:5.1.1-0ubuntu2) xenial; urgency=medium
 .
   * d/p/add-missing-import.patch: Cherry-pick patch from upstream
     to add missing '_LE' import for trove-guestagent (LP: #1620888).

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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