Processing Bar is Shown even after the action is complete

Bug #1482094 reported by Sourabh Jaiswal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Sayali Lunkad

Bug Description

Glance service:-

- Deactivate an image using curl command from the api.
- The same image is shown as the status as deactivated in the curl command status.
- Go to Horizon Dashboard, The same image is shown as deactivated but there is one processing bar in front of the Deactivated column which shows the action is in progress and is not completed.
- As for informational purpose this is wrong once deactivated tag is there it should not show the processing bar.

Revision history for this message
Alexis Rivera (gardlt) wrote :

@sourabh could you please post the curl command that you executed to test this.

Changed in horizon:
assignee: nobody → German (gr720e)
Revision history for this message
Sourabh Jaiswal (sourabh-jaiswal) wrote :

Hi,

the command:-

curl -s -X POST http://10.201.3.204:9292/v2/images/eb416d35-0b13-41a6-a3d6-459009514115/actions/deactivate \
-H \
"X-Auth-Token:7067cc850e2b49aba5e65365ecf52ec0" \
| python -m json.tool

the same changes the status of the image i can confirm the same using curl request to show the status.
but on horizon it shows the processing bar, which actually interprets that the processing is ongoing.

Revision history for this message
Alexis Rivera (gardlt) wrote :

curl -sv -X POST http://10.0.2.15:9292/v2/images/23c1ed7c-ae7f-48ae-861a-3b0f489738ee/actions/deactivate?status -H "X-Auth-Token:68e33053c0654c0980f0d5f9cf18cc84"

I am trying to run the curl command, but i think that i am meeting the requirements to deactivate, what is the python -m json.model doing?

Revision history for this message
Alexis Rivera (gardlt) wrote :

This is happening on kilo or/and juno?

Revision history for this message
Sourabh Jaiswal (sourabh-jaiswal) wrote :

This is happening in kilo.

And I agree with you that deactivation is happening but the issue is, On horizon it's showing the processing bar.
Which actually states that the action is still in progress.

Revision history for this message
Sayali Lunkad (sayalilunkad) wrote :

I am also facing the same problem. Is anyone actively working on this problem?

Changed in horizon:
status: New → Confirmed
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/231035

Changed in horizon:
assignee: German Rivera (gr720e) → Sayali Lunkad (sayalilunkad)
status: Confirmed → In Progress
Revision history for this message
Sayali Lunkad (sayalilunkad) wrote :

Find attached image showing the patch fixes the problem.

Revision history for this message
Sayali Lunkad (sayalilunkad) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/231035
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=02ee3e41d4d7955cfb12b6e2deec3008c59e4bfb
Submitter: Jenkins
Branch: master

commit 02ee3e41d4d7955cfb12b6e2deec3008c59e4bfb
Author: sayalilunkad <email address hidden>
Date: Mon Oct 5 16:57:47 2015 +0200

    Adds deactivated status for glance image

    This patch adds the status deactivated for
    images that have been deactivated in glance
    thus also fixes the issue with progress bar
    after image is deactivated.

    Change-Id: I24c9fecb3cf67e1a2a56a0443e272a34a3585a74
    Closes-bug: #1482094

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

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

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

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/238423

Changed in horizon:
importance: Undecided → Medium
milestone: none → mitaka-1
Changed in horizon:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/kilo)

Change abandoned by David Lyle (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/238423
Reason: This review is > 4 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.

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

Reviewed: https://review.openstack.org/238422
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=c5cf7eccf9bf349685605c9b9e0eafe43d5dc1cb
Submitter: Jenkins
Branch: stable/liberty

commit c5cf7eccf9bf349685605c9b9e0eafe43d5dc1cb
Author: sayalilunkad <email address hidden>
Date: Mon Oct 5 16:57:47 2015 +0200

    Adds deactivated status for glance image

    This patch adds the status deactivated for
    images that have been deactivated in glance
    thus also fixes the issue with progress bar
    after image is deactivated.

    Change-Id: I24c9fecb3cf67e1a2a56a0443e272a34a3585a74
    Closes-bug: #1482094
    (cherry picked from commit 02ee3e41d4d7955cfb12b6e2deec3008c59e4bfb)

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 8.0.2

This issue was fixed in the openstack/horizon 8.0.2 release.

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.