[openstack-dev] [nova] about usage of /consoles

Markus Zoeller mzoeller at linux.vnet.ibm.com
Fri Apr 21 12:33:42 UTC 2017


On 21.04.2017 12:12, Chen CH Ji wrote:
> 
> Per https://bugs.launchpad.net/nova/+bug/1682303 , POST with return 200
> while GET returns [] is weird
>  what's the purpose of /consoles? looks like
> https://github.com/openstack/nova/blob/master/nova/console/rpcapi.py#L72
> will send a rpc message and which service is the reciever of this message
> and handle it? Thanks
> 
> Best Regards!
> 
> Kevin (Chen) Ji 纪 晨

Looks like this API works for the "Xen VNC proxy" service only. The
console manager triggers the console creation here:
https://github.com/openstack/nova/blob/66c661258873e2544e286099c4bc027c26c851c4/nova/console/manager.py#L79

The XVPConsoleProxy implements it here:
https://github.com/openstack/nova/blob/46b3a3ca1ac3a5ffdc7c5420263223f2d3b9a660/nova/console/xvp.py#L56-L58

Looks like that service runs with default Devstack settings as service
"nova-xvpvncproxy":
https://github.com/openstack-dev/devstack/blob/f3b2f4c85307b14f115a020f5eaf6c92026b55b4/lib/nova#L892-L892

The API microversion 2.6 introduced a consolidation of the remote consoles:
https://github.com/openstack/nova/blob/3e032fd45be28c6098235ce336e675d03ebc6619/nova/api/openstack/compute/schemas/remote_consoles.py#L101-L102

Could it be that the "GET /console" API shouldn't be available anymore
since microversion 2.6?

api-ref about the consoles:
https://developer.openstack.org/api-ref/compute/?expanded=get-vnc-console-os-getvncconsole-action-deprecated-detail,create-remote-console-detail

-- 
Regards, Markus Zoeller (markus_z)




More information about the OpenStack-dev mailing list