<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Thanks Radomir. Actually, the documentation [1] makes this clear.</p>
<p>However, my changes are ignored. The Create New Volume switch is
still there. I feel tricked. Time to analyze the source :/<br>
</p>
<p>[1]
<a class="moz-txt-link-freetext" href="https://docs.openstack.org/horizon/latest/configuration/settings.html">https://docs.openstack.org/horizon/latest/configuration/settings.html</a><br>
</p>
<div class="moz-cite-prefix">On 5/26/2020 7:28 PM, Radomir
Dopieralski wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF_JR34xM62nnn-05AkMO6TDb=eR9bmyCisVwF3rFF+iaLHLKQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">You shouldn't be editing defaults.py, just put your
settings in local_settings.py as normal.
<div>Looking at the code, the only two options that are
currently used in LAUNCH_INSTANCE_DEFAULTS are "config_drive"
and "enable_scheduler_hints".</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, May 26, 2020 at 4:49
AM Bernd Bausch <<a href="mailto:berndbausch@gmail.com"
moz-do-not-send="true">berndbausch@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>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. <br>
</p>
<p>Prior to Train, the dialog was configured with the
LAUNCH_INSTANCE_DEFAULTS dictionary in <i>local_settings.py</i>.
This is my dictionary; I set <i>create_volume </i>to <i>False
</i>and <i>hide_create_volume </i>to <i>True</i>:</p>
<p><tt>LAUNCH_INSTANCE_DEFAULTS = {</tt><tt><br>
</tt><tt> 'config_drive': False,</tt><tt><br>
</tt><font color="#0000ff"><tt> 'create_volume': False,</tt><tt><br>
</tt><tt> 'hide_create_volume': True,</tt></font><tt><br>
</tt><tt> 'disable_image': False,</tt><tt><br>
</tt><tt> 'disable_instance_snapshot': False,</tt><tt><br>
</tt><tt> 'disable_volume': False,</tt><tt><br>
</tt><tt> 'disable_volume_snapshot': False,</tt><tt><br>
</tt><tt> 'enable_scheduler_hints': True,</tt><tt><br>
</tt><tt>}</tt><tt><br>
</tt></p>
<p>Starting with Train, the dictionary is in <i>.../openstack_dashboard/defaults.py</i>,
but the changes I made there have no effect. Adding the
dictionary to <i>local_settings.py</i> has no effect
either.</p>
<p>To test whether <i>defaults.py</i> is used at all, I
added a syntactically incorrect line, and indeed, the
syntax error is logged in <i>horizon_error.log</i>.</p>
<p>I wonder what I am doing wrong. I am convinced it worked
like this on Stein. Any ideas?</p>
<p>Bernd Bausch<br>
</p>
<p><br>
</p>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Radomir Dopieralski</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>