Bug 1404267 - User cannot upload an image from "HTTP URL" on Horizon
Summary: User cannot upload an image from "HTTP URL" on Horizon
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-horizon
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-13 13:58 UTC by Ido Ovadia
Modified: 2016-12-16 12:04 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-16 12:04:30 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ido Ovadia 2016-12-13 13:58:03 UTC
Description of problem:
=======================
User cannot create an image from "HTTP URL" on Horizon

Version-Release number of selected component:
=============================================
puppet-horizon-9.4.1-1.el7ost.noarch
python-django-horizon-10.0.1-4.el7ost.noarch

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Deploy undercloud and overcloud 
2. Login to Horizon
3. Browse: Project --> Compute --> Images
4. Click Create Image

Actual results:
===============
Only image creation from "File" is available

Expected results:
==================
Image creation from both "File" and "URL" should be available

Additional info:
================

on /etc/openstack-dashboard/local_settings there is:

REST_API_REQUIRED_SETTINGS = ['OPENSTACK_HYPERVISOR_FEATURES',
                              'LAUNCH_INSTANCE_DEFAULTS',
                              'OPENSTACK_IMAGE_FORMATS']

Comment 1 Alex Schultz 2016-12-13 22:17:28 UTC
Is the request to allow an image upload via HTTP over horizon?

It should be noted that glance v2 does not support image upload via URL anymore and as glance v1 is deprecated as of Newton, it might not be advised to configure this.  

There does appear to be a horizon configuration[1] around this but I am unclear how the interaction works around glance v1/v2.  The setting was added in a change[2] that seem to describe issues around functionality changes between v1/v2 where things not supported might be disabled.  The docs are unclear around this option as they reference v2 but say it should be set to false for glance v2 unless some other configuration/policy exists.


[1] http://docs.openstack.org/developer/horizon/topics/settings.html#images-allow-location
[2] https://review.openstack.org/#/c/320039/

Comment 2 Emilien Macchi 2016-12-13 23:09:41 UTC
I should also mention that we are removing Glance Registry and Glance API v1 in Ocata, for some reasons, related to container deployment. Which means this feature can't be supported.

Comment 4 Emilien Macchi 2016-12-16 12:04:30 UTC
Quoting Flavio Percoco, glance-core:

"The real reason this shouldn't be done is that glance's v1 is deprecated and
Glance V2 should be used instead. The latter doesn't have support for copy-from.
This may/may not be added in the future but till then, we shouldn't be promoting
this feature nor adding support for it anywhere."

This feature can't be supported as it's not in our roadmap. I'm closing this bugzilla.


Note You need to log in before you can comment on or make changes to this bug.