Create Image, fields are not persisted

Bug #1325787 reported by Cindy Lu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Zhenguo Niu
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

== How to Reproduce: ==

1. Admin > Images
2. Click on 'Create Image'
3. Enter name, *description*, image location, format and *architecture*
    For image location, put in a link, I went here: https://github.com/rackerjoe/oz-image-build and used the first one in the list: RedHat 5 Update 6 (http://c250663.r63.cf1.rackcdn.com/rhel56_x86_64.qcow2)
4. Press Create Image
5. Once the upload is complete, click on the image name to view details.
6. You will notice that *description* and *architecture* is missing from the UI
7. Go back to table. press on 'Edit' for that entry.
     Likewise, You will see that *description* and *architecture* are empty.

Here, if you you can put something into *description* and press save, it will work and show up in the detail view. However, *architecture* is readonly and unable to update.

Revision history for this message
Vijendra Soni (vijendra-soni-g) wrote :

Hi,

I have tried to reproduced the bug as per the guidelines mentioned in the bug. Following steps I have followed:

1. Admin > Images
2. Click on 'Create Image'
3. Downloaded the image from URL : http://c250663.r63.cf1.rackcdn.com/rhel56_x86_64.qcow2 in desktop.(Creating image directly from the image URL is quite slow and consistently showing image status as queued, so I have downloaded image in desktop first and then given the image file).
4. Enter name, *description*, image file, format ,*architecture* and other fields.
5. Press Create Image
6. Once the upload is complete and image status is active, click on the image name to view details.
7. Description and architecture fileds are there with proper comments mentioned in respective field. They are not missing from the UI.
8. Go back to table. press on 'Edit' for that entry. Description and architecture fields are not empty and having the desired values as mentioned while creating the image.

Since this bug is not getting reproduced, I am marking it to invalid.

Thanks,
Vijendra Soni

Changed in horizon:
status: New → Invalid
Revision history for this message
Cindy Lu (clu-m) wrote :

Hi Vijendra,

I tried your steps (upload from local desktop) and it works as expected. :)

However, I tried it using the location url, and description and architecture still don't show up. I've made a short video to show that the fields are filled out in the form, but not saved (fast forward to 2.54 to see the results).

I use this image http://uec-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img.

Thanks.

Changed in horizon:
status: Invalid → New
Revision history for this message
Cindy Lu (clu-m) wrote :
Changed in horizon:
status: New → Confirmed
assignee: nobody → Zhenguo Niu (niu-zglinux)
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/97692

Changed in horizon:
status: Confirmed → In Progress
Julie Pichon (jpichon)
Changed in horizon:
importance: Undecided → Medium
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/98008

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/icehouse)

Change abandoned by Zhenguo Niu (<email address hidden>) on branch: stable/icehouse
Review: https://review.openstack.org/98008
Reason: there is already another patch in review: https://review.openstack.org/#/c/97868/

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

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

commit af0e253d8d15fe8b03964c81b629580f622971c6
Author: Zhenguo Niu <email address hidden>
Date: Wed Jun 4 14:13:11 2014 +0800

    Do not delete properties when create image from URL

    Set purge_props=False to ensure we do not delete properties that
    we have set on the image.

    Change-Id: I4d8a9b8b20ef946e86389c59e79e874f078e1db3
    Closes-Bug: #1325787

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → juno-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/icehouse)

Reviewed: https://review.openstack.org/97868
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=b527f225e41ddf3f377ae478e9df15973da0758f
Submitter: Jenkins
Branch: stable/icehouse

commit b527f225e41ddf3f377ae478e9df15973da0758f
Author: Nicolas Simonds <email address hidden>
Date: Thu May 22 18:27:42 2014 -0700

    Image uploads should always happen in the background

    Sufficiently large image uploads into Glance from Horizon can cause
    timeout errors, since the image upload needs to complete before the
    view can render, and such activities can cause browser timeouts.
    Since the webserver already has the file, and close-to-open semantics
    should prevent cleanups from losing any data, just send it in a
    background thread, the same way as if you told Horizon to fetch it
    from a remote location.

    Change-Id: Ia056367032e0d08edf6f36a8e9f900fddba85fdf
    Closes-Bug: 1322399
    Closes-Bug: 1325787

tags: added: in-stable-icehouse
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/101392

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/havana)

Change abandoned by Alan Pevec (<email address hidden>) on branch: stable/havana
Review: https://review.openstack.org/101392
Reason: Final Havana release 2013.2.4 has been cut and stable/havana is going to be removed in a week.

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