<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 3:55 PM, Ravi Nori <span dir="ltr"><<a href="mailto:rnori@redhat.com" target="_blank">rnori@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"><div>We do not display the information on running tasks or command in the UI.<br></div></div></blockquote><div><br><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">AFAIK we do, you can see execution progress of commands, which are marked as monitored, in Tasks tab in bottom right corner of webadmin. And such commands are exposed under /ovirt-engine/api/jobs</div><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><br></div>The information is used internally by engine to keep session alive if there are commands running for a session. The list of sessions and the associated commands can be retrieved by running the following sql<br><br>su - postgres -c 'psql engine -c "select engine_session_id, command_id, command_type, command_params_class from command_entities, engine_sessions, status where command_entities.engine_<wbr>session_seq_id = <a href="http://engine_sessions.id" target="_blank">engine_sessions.id</a>;"'<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 6:29 AM, Martin Perina <span dir="ltr"><<a href="mailto:mperina@redhat.com" target="_blank">mperina@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"><div style="font-family:arial,helvetica,sans-serif">AFAIK content of Tasks tab in webadmin should be available under <div style="font-family:arial,helvetica,sans-serif;display:inline" class="gmail_default"></div>/ovirt-engine/api/jobs , but sessions are not exposed to API.<br></div></div><div class="gmail-m_-7927920824674861593HOEnZb"><div class="gmail-m_-7927920824674861593h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 11:58 AM, Fabrice Bacchella <span dir="ltr"><<a href="mailto:fabrice.bacchella@orange.fr" target="_blank">fabrice.bacchella@orange.fr</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 style="overflow-wrap: break-word;"><div>And tasks are not available through the REST API, I think.</div><br><div><blockquote type="cite"><div>Le 24 mai 2017 à 11:07, Martin Perina <<a href="mailto:mperina@redhat.com" target="_blank">mperina@redhat.com</a>> a écrit :</div><br class="gmail-m_-7927920824674861593m_2171838303261324656m_6292254093376214897Apple-interchange-newline"><div><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hi,<br><br></div><div style="font-family:arial,helvetica,sans-serif">there is no direct link between sessions and commands executed by them in UI. You can take a look into Tasks tab in bottom right corner, if there are any long running tasks. <br><br></div><div style="font-family:arial,helvetica,sans-serif">Ravi, would it be possible to display sessionId inside Tasks to be able to identify which command belongs to which session?<br><br></div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">Martin Perina<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 24, 2017 at 9:21 AM, Fabrice Bacchella <span dir="ltr"><<a href="mailto:fabrice.bacchella@orange.fr" target="_blank">fabrice.bacchella@orange.fr</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 style="overflow-wrap: break-word;">No one has the answer ?<div><br><div><blockquote type="cite"><div>Le 18 mai 2017 à 09:58, Sandro Bonazzola <<a href="mailto:sbonazzo@redhat.com" target="_blank">sbonazzo@redhat.com</a>> a écrit :</div><br class="gmail-m_-7927920824674861593m_2171838303261324656m_6292254093376214897m_-2297225100152747599Apple-interchange-newline"><div><div dir="ltr">Adding some people who may be able to answer</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 17, 2017 at 11:45 AM, Fabrice Bacchella <span dir="ltr"><<a href="mailto:fabrice.bacchella@orange.fr" target="_blank">fabrice.bacchella@orange.fr</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">I'm back with a long list of sessions, many of them started since many days. How can I get informations about them ?<br>
<div class="gmail-m_-7927920824674861593m_2171838303261324656m_6292254093376214897m_-2297225100152747599HOEnZb"><div class="gmail-m_-7927920824674861593m_2171838303261324656m_6292254093376214897m_-2297225100152747599h5"><br>
> Le 3 mai 2017 à 18:52, Fabrice Bacchella <<a href="mailto:fabrice.bacchella@orange.fr" target="_blank">fabrice.bacchella@orange.fr</a>> a écrit :<br>
><br>
> In the UI, I see 73 open sessions, all open by me.<br>
><br>
> In ovirt logs, I see a lot of :<br>
> 2017-05-03 18:49:31,483+02 INFO [org.ovirt.engine.core.bll.aaa<wbr>.SessionDataContainer] (DefaultQuartzScheduler3) [dcf02fc4-72c3-4237-8855-d4e47<wbr>4766088] Not removing session 'B/GWJOxyLh3pXQPPitfCk29iiJ3XW<wbr>MerYdNmOdZyc9ceqD+oAW/hhhZDXCl<wbr>tK+N4yRo9TgunhGR7w7YEELOI5A=='<wbr>, session has running commands for user 'XXXX'.<br>
><br>
> And indeed I can't close those sessions in the UI.<br>
><br>
><br>
> I have two questions:<br>
><br>
> Are those sessions accessible using the API ?<br>
> How to know what running command is waiting ?<br>
><br></div></div></blockquote></div></div></div></blockquote><br></div><br></div></div></blockquote></div><br></div>
______________________________<wbr>_________________<br>Users mailing list<br><a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br><a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br></div></blockquote></div><br></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br></div></div>