Launch Instance from NG Images fails on first attempt

Bug #1600352 reported by Matt Borland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Matt Borland

Bug Description

Consistently, Launch Instance from the Angular Images panel fails on first attempt.

This is because magic-search relies on elements being present that aren't always initialized right away. It's OK, the lifecycle will catch up, but at first we need to exclude rendering the magic-search when it's not ready.

You can recreate this by enabling Angular Images panel:

enabled via: ./openstack_dashboard/enabled/_1051_project_ng_images_panel.py

Go to the panel, then (the first time only) with the JS console open, try to launch an instance from an image in its item actions. Notice a) how there are errors in the console and b) how there is Angular crud on many of the steps using magic-search.

Apply the fix, and see how (a) and (b) are no longer present.

Tags: angularjs
Matt Borland (palecrow)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Matt Borland (palecrow)
status: New → In Progress
Matt Borland (palecrow)
description: updated
description: updated
Matt Borland (palecrow)
tags: added: angularjs
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/339793
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=7b95e2a065df4ca3ed6b302f12ee9daa0c5948fc
Submitter: Jenkins
Branch: master

commit 7b95e2a065df4ca3ed6b302f12ee9daa0c5948fc
Author: Matt Borland <email address hidden>
Date: Fri Jul 8 13:42:20 2016 -0600

    Magic-Search isn't rendered unless config is ready

    This patch alleviates a problem where sometimes the magic-search element
    needs to be rendered, but the configuration isn't ready yet. This simply
    skips the rendering unless the primary configuration parameters are in place.

    This is evident when Launch Instance is launched via an item action, such as
    within the Image items.

    Change-Id: I10452428e2d17cd17c98c65cbf8147dc7ab14621
    Closes-Bug: 1600352

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 10.0.0.0b2

This issue was fixed in the openstack/horizon 10.0.0.0b2 development milestone.

Changed in horizon:
milestone: none → newton-2
importance: Undecided → High
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.