[Horizon] Failing to configure the Instance Launch dialog

Bernd Bausch berndbausch at gmail.com
Tue May 26 10:49:02 UTC 2020


Thanks Radomir. Actually, the documentation [1] makes this clear.

However, my changes are ignored. The Create New Volume switch is still 
there. I feel tricked. Time to analyze the source :/

[1] https://docs.openstack.org/horizon/latest/configuration/settings.html

On 5/26/2020 7:28 PM, Radomir Dopieralski wrote:
> You shouldn't be editing defaults.py, just put your settings in 
> local_settings.py as normal.
> Looking at the code, the only two options that are currently used in 
> LAUNCH_INSTANCE_DEFAULTS are "config_drive" and "enable_scheduler_hints".
>
> On Tue, May 26, 2020 at 4:49 AM Bernd Bausch <berndbausch at gmail.com 
> <mailto:berndbausch at gmail.com>> wrote:
>
>     On an Ussuri Devstack, I would like to launch instances with
>     ephemeral storage from Horizon and remove the volume storage
>     switch from the instance launch dialog.
>
>     Prior to Train, the dialog was configured with the
>     LAUNCH_INSTANCE_DEFAULTS dictionary in /local_settings.py/. This
>     is my dictionary; I set /create_volume /to /False /and
>     /hide_create_volume /to /True/:
>
>     LAUNCH_INSTANCE_DEFAULTS = {
>         'config_drive': False,
>         'create_volume': False,
>         'hide_create_volume': True,
>         'disable_image': False,
>         'disable_instance_snapshot': False,
>         'disable_volume': False,
>         'disable_volume_snapshot': False,
>         'enable_scheduler_hints': True,
>     }
>
>     Starting with Train, the dictionary is in
>     /.../openstack_dashboard/defaults.py/, but the changes I made
>     there have no effect. Adding the dictionary to /local_settings.py/
>     has no effect either.
>
>     To test whether /defaults.py/ is used at all, I added a
>     syntactically incorrect line, and indeed, the syntax error is
>     logged in /horizon_error.log/.
>
>     I wonder what I am doing wrong. I am convinced it worked like this
>     on Stein. Any ideas?
>
>     Bernd Bausch
>
>
>
>
> -- 
> Radomir Dopieralski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200526/ea5dd5fa/attachment.html>


More information about the openstack-discuss mailing list