<html><body><p><font size="2">Thanks for the info, looks like this is xen only stuff,  not sure whether this is needed for now or we can remove it </font><br><font size="2">remote_consoles seems related to some general console but not specific to xvp, </font><br><br><font size="2">so </font><a href="https://review.openstack.org/459266"><font size="2">https://review.openstack.org/459266</font></a><font size="2"> just for some info to api reader and if we are sure xen don't use it any more, we can remove it totally.</font><br><br><font size="2">Best Regards! <br><br>Kevin (Chen) Ji ¼Í ³¿<br><br>Engineer, zVM Development, CSTL<br>Notes: Chen CH Ji/China/IBM@IBMCN   Internet: jichenjc@cn.ibm.com<br>Phone: +86-10-82451493<br>Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC </font><br><br><img width="16" height="16" src="cid:1__=8FBB0B9FDFD18BC48f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Markus Zoeller ---04/21/2017 08:35:34 PM---On 21.04.2017 12:12, Chen CH Ji wrote: >"><font size="2" color="#424282">Markus Zoeller ---04/21/2017 08:35:34 PM---On 21.04.2017 12:12, Chen CH Ji wrote: ></font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Markus Zoeller <mzoeller@linux.vnet.ibm.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">openstack-dev@lists.openstack.org</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">04/21/2017 08:35 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [openstack-dev] [nova] about usage of /consoles</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">On 21.04.2017 12:12, Chen CH Ji wrote:<br>> <br>> Per </font></tt><tt><font size="2"><a href="https://bugs.launchpad.net/nova/+bug/1682303">https://bugs.launchpad.net/nova/+bug/1682303</a></font></tt><tt><font size="2"> , POST with return 200<br>> while GET returns [] is weird<br>>  what's the purpose of /consoles? looks like<br>> </font></tt><tt><font size="2"><a href="https://github.com/openstack/nova/blob/master/nova/console/rpcapi.py#L72">https://github.com/openstack/nova/blob/master/nova/console/rpcapi.py#L72</a></font></tt><tt><font size="2"><br>> will send a rpc message and which service is the reciever of this message<br>> and handle it? Thanks<br>> <br>> Best Regards!<br>> <br>> Kevin (Chen) Ji ¼Í ³¿<br><br>Looks like this API works for the "Xen VNC proxy" service only. The<br>console manager triggers the console creation here:<br></font></tt><tt><font size="2"><a href="https://github.com/openstack/nova/blob/66c661258873e2544e286099c4bc027c26c851c4/nova/console/manager.py#L79">https://github.com/openstack/nova/blob/66c661258873e2544e286099c4bc027c26c851c4/nova/console/manager.py#L79</a></font></tt><tt><font size="2"><br><br>The XVPConsoleProxy implements it here:<br></font></tt><tt><font size="2"><a href="https://github.com/openstack/nova/blob/46b3a3ca1ac3a5ffdc7c5420263223f2d3b9a660/nova/console/xvp.py#L56-L58">https://github.com/openstack/nova/blob/46b3a3ca1ac3a5ffdc7c5420263223f2d3b9a660/nova/console/xvp.py#L56-L58</a></font></tt><tt><font size="2"><br><br>Looks like that service runs with default Devstack settings as service<br>"nova-xvpvncproxy":<br></font></tt><tt><font size="2"><a href="https://github.com/openstack-dev/devstack/blob/f3b2f4c85307b14f115a020f5eaf6c92026b55b4/lib/nova#L892-L892">https://github.com/openstack-dev/devstack/blob/f3b2f4c85307b14f115a020f5eaf6c92026b55b4/lib/nova#L892-L892</a></font></tt><tt><font size="2"><br><br>The API microversion 2.6 introduced a consolidation of the remote consoles:<br></font></tt><tt><font size="2"><a href="https://github.com/openstack/nova/blob/3e032fd45be28c6098235ce336e675d03ebc6619/nova/api/openstack/compute/schemas/remote_consoles.py#L101-L102">https://github.com/openstack/nova/blob/3e032fd45be28c6098235ce336e675d03ebc6619/nova/api/openstack/compute/schemas/remote_consoles.py#L101-L102</a></font></tt><tt><font size="2"><br><br>Could it be that the "GET /console" API shouldn't be available anymore<br>since microversion 2.6?<br><br>api-ref about the consoles:<br></font></tt><tt><font size="2"><a href="https://developer.openstack.org/api-ref/compute/?expanded=get-vnc-console-os-getvncconsole-action-deprecated-detail,create-remote-console-detail">https://developer.openstack.org/api-ref/compute/?expanded=get-vnc-console-os-getvncconsole-action-deprecated-detail,create-remote-console-detail</a></font></tt><tt><font size="2"><br><br>-- <br>Regards, Markus Zoeller (markus_z)<br><br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br></font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>