[Launch Instance] New items are visible under both allocated and available in transfer tables

Bug #1531334 reported by Errol Pais
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Errol Pais

Bug Description

Description:
The transfer table is a component that is preloaded with data to identify what's available and what's allocated. This results in two disjoint sets. The bug appears when we programatically try to create and allocate an item to an already preloaded transfer table. Although the table adds the new item to the allocated set, it adds it to the available set as well.

Steps to reproduce:
* Navigate to Project-->Compute-->Instances
* Click on the angular Launch Instance button to open up the Launch Instance Modal
* Go to key pair section
* Make sure there are no key pairs allocated in the transfer table.
* Create a key pair by clicking on the create key pair button and completing the create key pair flow.

When you return back to the transfer table that lists the key pairs, you can see that the newly created key pair is visible under both the available section as well as the allocated.

Attached Screenshot

Revision history for this message
Errol Pais (epais) wrote :
description: updated
Itxaka Serrano (itxaka)
Changed in horizon:
status: New → Confirmed
assignee: nobody → Itxaka Serrano (itxakaserrano)
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/264080

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Itxaka Serrano Garcia (<email address hidden>) on branch: master
Review: https://review.openstack.org/264080
Reason: Fix of the root issue in https://review.openstack.org/#/c/252205/3

Changed in horizon:
assignee: Itxaka Serrano (itxakaserrano) → Errol Pais (epais)
Changed in horizon:
importance: Undecided → Medium
milestone: none → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/252205
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=52fc193d0cbf8d9208b1151b6a302001a44cb582
Submitter: Jenkins
Branch: master

commit 52fc193d0cbf8d9208b1151b6a302001a44cb582
Author: Rajat Vig <email address hidden>
Date: Tue Dec 1 22:18:56 2015 -0800

    Transfer table should update allocatedIds on allocated change

    Transfer table does a one time allocation
    for allocatedIds and does not watch changes to
    allocated. As a result, when the allocated
    list is fetched at a later point, the allocatedIds
    are not updated resulting in a broken view.

    Partially-Implements: blueprint ng-flavors
    Closes-Bug: #1531334

    Change-Id: I807c682b69081f90fc3d74675e8ca149bb855521

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

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

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.