[SRU] Fix AttributeErrors in sahara-dashboard

Bug #1756189 reported by Corey Bryant
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Invalid
Undecided
Unassigned
Pike
Fix Released
High
Unassigned
sahara-dashboard (Ubuntu)
Invalid
Undecided
Unassigned
Artful
Fix Released
High
Unassigned

Bug Description

[Impact]

When running tests during build of sahara-dashboard for Artful, AttributeErrors such as the following cause test failures:

"AttributeError: 'module' object has no attribute 'floating_ip_pools_list'".

Unfortunately 7.0.0 is the correct version for pike (artful) but it was released too late so we have 6.0.0 in artful, so an error like this occurred since dependencies are at 7.0.0 level with 6.0.0 in the archive.

There is a patch upstream that fixes this by updating the imports and code based on code movement in openstack-dashboard.

[Test Case]

Building sahara-dashboard package should be successful. Without this patch it fails while running tests.

[Regression Potential]
Low. This patch is cherry-picked and unchanged from upstream.

[Discussion]

description: updated
Changed in sahara-dashboard (Ubuntu):
status: New → Invalid
Changed in sahara-dashboard (Ubuntu Artful):
status: New → Triaged
importance: Undecided → High
Changed in cloud-archive:
status: New → Invalid
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Corey, or anyone else affected,

Accepted sahara-dashboard into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/sahara-dashboard/6.0.0-0ubuntu1.2 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 on 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!

tags: added: artful
Changed in sahara-dashboard (Ubuntu Artful):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hello Corey, or anyone else affected,

Accepted sahara-dashboard into pike-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:pike-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-pike-needed to verification-pike-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-pike-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-pike-needed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Artful verification has completed successfully using artful-proposed with the following package:
python-sahara-dashboard: 6.0.0-0ubuntu1.2

Installation of the package was successful and the package now builds and runs tests successfully.

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

The verification of the Stable Release Update for sahara-dashboard 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
Corey Bryant (corey.bryant) wrote :

This bug was fixed in the package sahara-dashboard - 6.0.0-0ubuntu1.2~cloud0
---------------

 sahara-dashboard (6.0.0-0ubuntu1.2~cloud0) xenial-pike; urgency=medium
 .
   * New update for the Ubuntu Cloud Archive.
 .
 sahara-dashboard (6.0.0-0ubuntu1.2) artful; urgency=medium
 .
   * d/gbp.conf: Create stable/pike branch.
   * d/python-sahara-dashboard.postinst: Align with openstack-dashboard
     and use chown horizon instead of www-data (LP: #1755027).
   * d/p/fix-neutron-related-openstack_dashboard-imports.patch: Cherry-picked
     patch from upstream to fix AttributeError's such as "AttributeError:
     'module' object has no attribute 'floating_ip_pools_list'" (LP: #1756189).

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

Pike verification has completed successfully using pike-proposed with the following package:
python-sahara-dashboard: 6.0.0-0ubuntu1.2~cloud0

Installation of the package was successful and the package now builds and runs tests successfully.

tags: added: verification-pike-done
removed: verification-pike-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sahara-dashboard - 6.0.0-0ubuntu1.2

---------------
sahara-dashboard (6.0.0-0ubuntu1.2) artful; urgency=medium

  * d/gbp.conf: Create stable/pike branch.
  * d/python-sahara-dashboard.postinst: Align with openstack-dashboard
    and use chown horizon instead of www-data (LP: #1755027).
  * d/p/fix-neutron-related-openstack_dashboard-imports.patch: Cherry-picked
    patch from upstream to fix AttributeError's such as "AttributeError:
    'module' object has no attribute 'floating_ip_pools_list'" (LP: #1756189).

 -- Corey Bryant <email address hidden> Wed, 14 Mar 2018 21:20:49 -0400

Changed in sahara-dashboard (Ubuntu Artful):
status: Fix Committed → Fix Released
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.