Duplicate Networks in Networking Tab

Bug #1170193 reported by Derek Morton
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Tomas Sedovic
Grizzly
Fix Released
Medium
Julie Pichon

Bug Description

After importing an SSH key through the "Launch Instance" interface the available networks listed on the "Networking" tab are duplicated, with only one set actually functioning (clicking on the non-functional ones just causes them to move around in the list if you have more than one network).

This is occurring in the Ubuntu Grizzly packages on 13.04 and also in Devstack when pulling from the master branch.

Steps to reproduce:

1) Launch instance creator UI from within Horizon
2) Import a keypair on the "Access & Security" tab
3) Switch to "Networking" tab and see duplicate networks under available networks

root@controller:~# dpkg -s openstack-dashboard
Package: openstack-dashboard
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 5159
Maintainer: Chuck Short <email address hidden>
Architecture: all
Source: horizon
Version: 1:2013.1-0ubuntu2

root@controller:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04
Codename: raring

Tags: quantum
Revision history for this message
Derek Morton (derek-morton) wrote :
Revision history for this message
Julie Pichon (jpichon) wrote :

Strange. I can reproduce on latest devstack.

Changed in horizon:
status: New → Confirmed
tags: added: quantum
Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → Medium
Tomas Sedovic (tsedovic)
Changed in horizon:
assignee: nobody → Tomas Sedovic (tomas-8c8)
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/28032

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

Reviewed: https://review.openstack.org/28032
Committed: http://github.com/openstack/horizon/commit/0512a12d07900430e8b399dcc27cade77d390491
Submitter: Jenkins
Branch: master

commit 0512a12d07900430e8b399dcc27cade77d390491
Author: Tomas Sedovic <email address hidden>
Date: Thu May 2 11:56:59 2013 +0200

    Don't duplicate networks list on keypair import

    In the Launch Instance modal, if the user clicks on the button to import
    a keypair, the networks listed in the Networking tab get duplicated.

    The import keypair button calls `workflow_init` which in turn calls
    `generate_networklist_html` which appended the networks to the list, not
    clearing it beforehand.

    This makes sure both Selected Networks and Available Networks lists are
    emptied before the networks are added.

    Fixes bug 1170193

    Change-Id: Icb750caa08673068c509af6c8df1ad57a2a30d93
    Signed-off-by: Tomas Sedovic <email address hidden>

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → havana-1
status: Fix Committed → Fix Released
Julie Pichon (jpichon)
tags: added: grizzly-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/39489

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

Reviewed: https://review.openstack.org/39489
Committed: http://github.com/openstack/horizon/commit/af83ed8bd487f8cc921ef6372d0a1c3bdaab63e3
Submitter: Jenkins
Branch: stable/grizzly

commit af83ed8bd487f8cc921ef6372d0a1c3bdaab63e3
Author: Tomas Sedovic <email address hidden>
Date: Thu May 2 11:56:59 2013 +0200

    Don't duplicate networks list on keypair import

    In the Launch Instance modal, if the user clicks on the button to import
    a keypair, the networks listed in the Networking tab get duplicated.

    The import keypair button calls `workflow_init` which in turn calls
    `generate_networklist_html` which appended the networks to the list, not
    clearing it beforehand.

    This makes sure both Selected Networks and Available Networks lists are
    emptied before the networks are added.

    Fixes bug 1170193

    Change-Id: Icb750caa08673068c509af6c8df1ad57a2a30d93
    Signed-off-by: Tomas Sedovic <email address hidden>
    (cherry picked from commit 0512a12d07900430e8b399dcc27cade77d390491)

Thierry Carrez (ttx)
Changed in horizon:
milestone: havana-1 → 2013.2
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
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.