"HORIZON_IMAGES_ALLOW_UPLOAD = False" does not work

Bug #1215921 reported by Jesse Pretorius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Anya Marshall

Bug Description

As described in http://docs.openstack.org/developer/horizon/topics/deployment.html#file-uploads it should be possible to set "HORIZON_IMAGES_ALLOW_UPLOAD = False" and the ability for an end-user to upload an image through Horizon should not be available.

However it does not work. I also don't see any evidence in my brief review of the templating code that would take the button/ability away on the "Images & Snapshots" page.

It would be ideal if enabling this would remove the button from the interface, forcing anyone wanting to upload images to use the command-line instead.

Changed in horizon:
status: New → Confirmed
Changed in horizon:
importance: Undecided → High
milestone: none → havana-rc1
Revision history for this message
Kieran Spear (kspear) wrote :

HORIZON_IMAGES_ALLOW_UPLOAD exists to disable local uploads, due to the possibility of filling the disk on the dashboard server, since we don't stream uploads to glance/swift yet. It removes the "Image File" field from the Create Image dialog. It was not meant to disable image creation altogether as image creation via URL doesn't have the issue that direct uploads does.

Changed in horizon:
assignee: nobody → Gabriel Hurley (gabriel-hurley)
Revision history for this message
Lawrance (jing) wrote :

hi, Gabriel :
are you still active in the bug?

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

Changed in horizon:
assignee: Gabriel Hurley (gabriel-hurley) → Lawrance (jing)
status: Confirmed → In Progress
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

My current feeling is that the fetaure behaves as originally intended, though the meaning of it is evidently confusing.

In Icehouse, as part of the ongoing RBAC work, we should be able to make these actions individually controllable so that allowing or disallowing image upload entirely can be controlled on a per-role or global basis.

Changed in horizon:
importance: High → Medium
milestone: havana-rc1 → icehouse-1
status: In Progress → Confirmed
David Lyle (david-lyle)
Changed in horizon:
milestone: icehouse-1 → icehouse-2
David Lyle (david-lyle)
Changed in horizon:
milestone: icehouse-2 → icehouse-3
Revision history for this message
David Lapsley (dlapsley) wrote :

Hi Folks: is there anything left to be done here? Doc update to avoid confusion?

Cheers, Dave.

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

@dlapsley I don't know where the RBAC work is at - perhaps this is serving as some sort of reminder in that chain of work? Otherwise a doc update would suffice IMO.

Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-3 → icehouse-rc1
Revision history for this message
Julie Pichon (jpichon) wrote :

Unassigning due to long time without activity. It sounds like the bug is about updating the documentation at http://docs.openstack.org/developer/horizon/topics/settings.html in order to make the meaning of HORIZON_IMAGES_ALLOW_UPLOAD clearer.

Changed in horizon:
assignee: Lawrance (jing) → nobody
Changed in horizon:
assignee: nobody → Anya Marshall (anya-elise-marshall)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in horizon:
status: Confirmed → In Progress
David Lyle (david-lyle)
Changed in horizon:
milestone: icehouse-rc1 → next
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote :

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

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to horizon (master)

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

commit a7bd91d7d88a8408929f0f7e580bec83fa3effdb
Author: Anya Marshall <email address hidden>
Date: Wed Mar 12 19:52:10 2014 -0400

    Update documentation to clarify Image Upload setting

    The documentation at http://docs.openstack.org/developer/horizon/topics
    /deployment.html#file-uploads states that the end user should change the
    setting "HORIZON_IMAGES_ALLOW_UPLOAD = False" to disable image uploads.

    This suggests that image uploads will be completely disabled, however it
    will still be possible to upload images via URL.

    This change adds this clarification to the documentation.

    Closes-Bug: 1215921
    Change-Id: Ie1cc51aaf459f9eb2881121b405fb16e762e265b

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: next → juno-3
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → 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.