<div dir="ltr"><div>No.</div><div><br></div><div>A refresh needs to restart the LXD API server (lxd daemon), the "lxc exec" session is done through websockets served by that API server.</div><div><br></div><div>In theory we could have LXD detect existing exec sessions and hold the restart, but that's not a great option either as that would effectively cause clusters to hang and for standalone systems would mean that a single background exec session would hold security and bugfix updates which doesn't seem good either.</div><div><br></div><div>One thing I'd like to improve is the error message you get when it happens and ideally have the API send a control message a few seconds before the session goes down.</div><div>It's probably reasonable for us to hold the restart for 10s and send that notification which would allow some API clients to cleanly interrupt what they're doing, the issue with this is that there is no good way to show that notice to the user as we don't want to mess too much with what you get on screen during an exec session.</div><div><br></div><div>Anyway, that's probably as much as we're likely to be doing about this, do notification and improve errors so our API clients can be smarter about this.</div><div><br></div><div>Stéphane<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 20, 2019 at 8:31 AM Tomasz Chmielewski <<a href="mailto:mangoo@wpkg.org">mangoo@wpkg.org</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">On 2019-09-20 12:23, Fajar A. Nugraha wrote:<br>
<br>
> If you're asking 'how to keep "lxc exec session running when lxd is<br>
> restarted", then it's not possible.<br>
<br>
Yes, I guess that's what I'm asking about!<br>
<br>
Is there a chance it will be possible in the future? With some changes <br>
to lxd restart model maybe? Or how lxc exec sessions are handled?<br>
<br>
<br>
Tomasz Chmielewski<br>
<a href="https://lxadm.com" rel="noreferrer" target="_blank">https://lxadm.com</a><br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Stéphane</div>