Bug 1387446

Summary: Horizon Dashboard is not possible create images
Product: [Community] RDO Reporter: Bruno Azoulay <info>
Component: openstack-horizonAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED WORKSFORME QA Contact: wes hayutin <whayutin>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: chris.brown, info, rdopiera
Target Milestone: ---   
Target Release: trunk   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-22 15:24:28 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:
Attachments:
Description Flags
Result none

Description Bruno Azoulay 2016-10-20 23:34:01 UTC
Created attachment 1212649 [details]
Result

Impossible download image to horizon Dashboard i click images and i have thaïs message :


The current Horizon settings indicate no valid image creation methods are available. Providing an image location and/or uploading from the local file system must be allowed to support image creation.


Version-Release number of selected component (if applicable): openstack newton


How reproducible:


Steps to Reproduce:
1. click admin 
2. Click images 
3. And click create images

Actual result :


The current Horizon settings indicate no valid image creation methods are available. Providing an image location and/or uploading from the local file system must be allowed to support image creation.


Expected results:


Additional info:

Comment 1 Radomir Dopieralski 2016-10-21 08:49:47 UTC
What are your horizon settings?

Comment 2 Radomir Dopieralski 2016-10-21 08:53:26 UTC
In particular, I'm interested in the values of the following two settings in /etc/openstack_dashboard/local_settings:

# Set to 'legacy' or 'direct' to allow users to upload images to glance via
# Horizon server. When enabled, a file form field will appear on the create
# image form. If set to 'off', there will be no file form field on the create
# image form. See documentation for deployment considerations.
#HORIZON_IMAGES_UPLOAD_MODE = 'legacy'

# Allow a location to be set when creating or updating Glance images.
# If using Glance V2, this value should be False unless the Glance
# configuration and policies allow setting locations.
#IMAGES_ALLOW_LOCATION = False

Comment 3 Bruno Azoulay 2016-10-21 09:09:04 UTC
In openstack newton rdo "/etc/openstack_dashboard/local_settings" this =>

===>
# Set to 'legacy' or 'direct' to allow users to upload images to glance via
# Horizon server. When enabled, a file form field will appear on the create
# image form. If set to 'off', there will be no file form field on the create
# image form. See documentation for deployment considerations.
#HORIZON_IMAGES_UPLOAD_MODE = 'legacy'

# Allow a location to be set when creating or updating Glance images.
# If using Glance V2, this value should be False unless the Glance
# configuration and policies allow setting locations.
#IMAGES_ALLOW_LOCATION = False

===> not exist. Do you have a solution??

Comment 4 Bruno Azoulay 2016-10-21 09:10:34 UTC
(In reply to Radomir Dopieralski from comment #2)
> In particular, I'm interested in the values of the following two settings in
> /etc/openstack_dashboard/local_settings:
> 
> # Set to 'legacy' or 'direct' to allow users to upload images to glance via
> # Horizon server. When enabled, a file form field will appear on the create
> # image form. If set to 'off', there will be no file form field on the create
> # image form. See documentation for deployment considerations.
> #HORIZON_IMAGES_UPLOAD_MODE = 'legacy'
> 
> # Allow a location to be set when creating or updating Glance images.
> # If using Glance V2, this value should be False unless the Glance
> # configuration and policies allow setting locations.
> #IMAGES_ALLOW_LOCATION = False

=======================================================================================

====> In "/etc/openstack_dashboard/local_settings" not exist. Do you have a solution??

Comment 5 Radomir Dopieralski 2016-10-21 09:15:44 UTC
I'm sorry, it was supposed to be /etc/openstack-dashboard/local_settings

Comment 6 Bruno Azoulay 2016-10-21 09:26:41 UTC
(In reply to Radomir Dopieralski from comment #5)
> I'm sorry, it was supposed to be /etc/openstack-dashboard/local_settings

why it changes the parameter like this. Normally it is the user to have the option to activate it or not.

Comment 8 Radomir Dopieralski 2016-10-21 09:43:39 UTC
(In reply to Bruno Azoulay from comment #6)
> (In reply to Radomir Dopieralski from comment #5)
> > I'm sorry, it was supposed to be /etc/openstack-dashboard/local_settings
> 
> why it changes the parameter like this. Normally it is the user to have the
> option to activate it or not.

I don't quite understand your question. Can you please rephrase?

Comment 9 Bruno Azoulay 2016-10-21 10:01:50 UTC
i have solution <3.   

in /etc/openstack-dashboard/local_settings. search =>"EST_API_REQUIRED_SETTINGS".
and add => 'OPENSTACK_HYPERVISOR_FEATURES', 'LAUNCH_INSTANCE_DEFAULTS', 'OPENSTACK_IMAGE_FORMATS'.

Result : 

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

Restart http and memcached => 'service httpd restart && service memcached restart'

Comment 10 Christopher Brown 2017-06-22 15:24:28 UTC
Works for me, closing.