Image stuck "Queued" forever when creating image with invalid location URL

Bug #1438975 reported by Frode Nordahl
This bug report is a duplicate of:  Bug #1467787: Validate create image url field. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Committed
Undecided
Frode Nordahl

Bug Description

If you attempt to create a new image with Image Location and a unsupported URL scheme the image will get stuck as "Queued" forever.

I'm proposing a patch that improves error handling for image create operations.

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/169594

Changed in horizon:
assignee: nobody → Frode Nordahl (fnordahl)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Reviewed: https://review.openstack.org/169594
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=4590f5fbdeb7fbcc0fe84b1708e08a79996f2038
Submitter: Jenkins
Branch: master

commit 4590f5fbdeb7fbcc0fe84b1708e08a79996f2038
Author: Frode Nordahl <email address hidden>
Date: Thu Apr 2 10:37:28 2015 +0200

    Create image directly in 'copy_from' and 'location' case

    The Glance API will return immediately with a response. We need this
    response to give a errror message back to the user in case of invalid
    URL.

    Any download operation will be executed in the background by the
    Glance API server and there is no need for executing this step in a
    separate thread.

    Keep current logic for updating image with posted data in a background thread
    One can argue that this too is uneccessary, but I can see that it may save
    time for large images or when bandwidth between Horizon and Glance is limited.

    Change-Id: I2ec9f714f9cfd6ca2271750133d6fcac29b94f35
    Partial-Bug: 1438975

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/169595
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=68fe2a256eb83681f8a59fa3ca189d1c0ce25c45
Submitter: Jenkins
Branch: master

commit 68fe2a256eb83681f8a59fa3ca189d1c0ce25c45
Author: Frode Nordahl <email address hidden>
Date: Wed Apr 1 04:24:44 2015 +0200

    Add error message for unsupported URL scheme

    Change-Id: I58f3af8331e1afd50ef2be27c4ba530498720022
    Closes-Bug: 1438975

Changed in horizon:
status: In Progress → Fix Committed
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.