Bug 1404267

Summary: User cannot upload an image from "HTTP URL" on Horizon
Product: Red Hat OpenStack Reporter: Ido Ovadia <iovadia>
Component: puppet-horizonAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WONTFIX QA Contact: nlevinki <nlevinki>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: aschultz, emacchi, jjoyce, jschluet, slinaber, tvignaud
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-16 12:04:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.