<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 8:45 PM, Burr Sutter <span dir="ltr"><<a href="mailto:bsutter@redhat.com" target="_blank">bsutter@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I had to deliver the demo, so skipped profiles last week...<div><br></div><div>now back to attempting to use profiles again. </div><div><br></div><div>My "standard demo setup" should look something like the following:</div><div><div>export MINISHIFT_ENABLE_EXPERIMENT=y</div><div>./minishift --profile one addons enable admin-user</div><div>./minishift --profile one addons enable anyuid</div><div>./minishift start --profile one --cpus 2 --memory 3G --vm-driver virtualbox --service-catalog --iso-url=centos</div></div><div><br></div><div>but "unknown flag: --service-catalog", any ideas?</div></div></blockquote><div><br><br></div><div>Hi Burr,<br><br></div><div>You have exported the wrong string for experimental features. The correct string is "$ export MINISHIFT_ENABLE_EXPERIMENTAL=y" . Please refer [1] for details. <br><br>[1] <a href="https://docs.openshift.org/latest/minishift/using/managing-minishift.html#experimental-features">https://docs.openshift.org/latest/minishift/using/managing-minishift.html#experimental-features</a><br><br></div><div>Thanks,<br></div><div>Lala<br></div><div><br><br><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 dir="ltr"><div><div class="gmail-h5"><div><br></div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 4, 2017 at 11:32 AM, Lalatendu Mohanty <span dir="ltr"><<a href="mailto:lmohanty@redhat.com" target="_blank">lmohanty@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-m_7992314055171949745gmail-">On Wed, Oct 4, 2017 at 12:00 AM, Burr Sutter <span dir="ltr"><<a href="mailto:bsutter@redhat.com" target="_blank">bsutter@redhat.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-m_7992314055171949745gmail-"><span class="gmail-m_7992314055171949745gmail-m_4288713700534385486gmail-">On Tue, Oct 3, 2017 at 7:11 PM, Hardy Ferentschik <span dir="ltr"><<a href="mailto:hferents@redhat.com" target="_blank">hferents@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<span><br>
On Tue, 03-Oct-2017 16:35, Burr Sutter wrote:<br>
> But profile “bar” does not exist until start is called<br>
<br>
</span>The global '--profile bar' option will implicitly create the profile<br>
when used with the config an addon command. If you want to configure a given profile<br>
prior to start you will need to use these commands with this option.<br>
<br>
How in your example do you expect minishift to now to what profile to associate the<br>
config changes? How would Minishift know that you want to configure a profile bar?<br>
<br>
As mentioned on the issue comment, maybe a different behaviour for 'minishift profile set bar'<br>
makes sense. Atm you get an error message if the profile does not exist. One cold argue<br>
it should create an empty profile. Whether there should be an explicit 'minishift profile create bar'<br>
is debatable. Either way, your examples would still be wrong and would need<br>
to be preceded with a minishift profile [set|create].<br></blockquote><div><br></div></span></span><div>so our docs are horrible.</div></div></div></div></blockquote><div><br></div><div>It was the first iteration of the docs which got merged with the code.  I agree that I could have written a better doc, but at that point getting the code ready was in my mind. <br></div><span class="gmail-m_7992314055171949745gmail-"><div> <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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>and the usability is counter intuitive :-)</div></div></div></div></blockquote><div><br></div></span><div>Lets discuss that. The current implementation is backward compatible and we have tried to keep the usability similar to the previous Minishift. <br></div><div><br></div><div>As part of the feature we have introduced one global flag "--profile" and "profile set", "profile list", "profile delete" commands. <br></div><div><br></div><div>As a single line suggestion I would suggest that you should just use "--profile <profile name>" to the commands you have been using with previous Minishift releases and  you should be good to go. <br></div><div><br></div><div>For example: how do you start a minishift instance. <br></div><div><br></div><div>$ minishift config set memory 4GB</div><div>$ minishift config set CPU 2</div><div>$ minishift start</div><div><br></div><div>Now with profile you need to just add --profile to the above commands and it would work as expected i.e. <br></div><div><br></div><div><div>$ minishift --profile xyz config set memory 4GB</div><div>$ minishift --profile xyz config set CPU 2</div><div>$ minishift --profile xyz start</div><div><br></div><div>There are few things not implemented yet e.g.  a global cache for profiles and few other things as these are planned as followup tasks. So you can expect it to improve gradually.  <br></div><div><br></div><div>The most important thing for us was to maintain the isolation between instances. I understand that users might want to have global settings also which we can discuss and implement in future if required. <br></div><div><br></div><div>But what we have in the first iteration of profiles is a result of our intention where we wanted to be 100% backward compatible and for the same reason we have kept few features as follow up tasks. <br></div><div><br></div><div>Thanks for your feedback till now and I would encourage you to let us know if you think things are bad for you. We will take action items to fix stuff as we go for sure. <br></div><div><br></div><div>-Lala<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_7992314055171949745gmail-"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-m_7992314055171949745gmail-m_4288713700534385486gmail-"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-m_7992314055171949745gmail-m_4288713700534385486gmail-m_4216197915467643826HOEnZb"><font color="#888888"><br>
--Hardy<br>
</font></span><div class="gmail-m_7992314055171949745gmail-m_4288713700534385486gmail-m_4216197915467643826HOEnZb"><div class="gmail-m_7992314055171949745gmail-m_4288713700534385486gmail-m_4216197915467643826h5"><br>
<br>
><br>
> I think there should be a<br>
> Minishift profile create that matches delete<br>
> Then all other commands work inside of that profile context.<br>
><br>
><br>
> On Tue, Oct 3, 2017 at 9:21 AM Hardy Ferentschik <<a href="mailto:hferents@redhat.com" target="_blank">hferents@redhat.com</a>><br>
> wrote:<br>
><br>
> > On Tue, 03-Oct-2017 14:28, Burr Sutter wrote:<br>
> > > any thoughts how the workaround for addons + profiles?<br>
> ><br>
> > See the comments on the issue you created. You are using the commands<br>
> > wrong. You<br>
> > issue 'config set' and 'addon enable' commands against the currently<br>
> > active profile, but then<br>
> > you start a new profile. If you want to set the config and add-ons prior<br>
> > to starting the profile<br>
> > you need to do something like:<br>
> ><br>
> > $ minishift --profile bar addon enable anyuid<br>
> ><br>
> > resp<br>
> ><br>
> > $ minishift --profile test config set memory 6144<br>
> ><br>
> > --Hardy<br>
> ><br>
> ><br>
</div></div></blockquote></span></div><br></div></div>
<br></span><span class="gmail-m_7992314055171949745gmail-">______________________________<wbr>_________________<br>
Container-tools mailing list<br>
<a href="mailto:Container-tools@redhat.com" target="_blank">Container-tools@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/container-tools" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/container-tools</a><br>
<br></span></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>