Convert consoles to use objects framework

Registered by Sahid Orentino

** The above purpose is to remove connect_info dict. **

The current code of console does not use the framework objects. Instead it provides some types (console/type.py) to handle them. These types are currently empty and probably the first attempt to use objects.

The aim of that blueprint is to convert consoles to use objects which make the dict 'connect_info' able to be removed and the ability to use database instead of memcached which cannot guarantee expiration of tokens. Also to fix bug 1425640 the new console object should be able to handle extra information; in the case of that bug, this field will be used to maintain informed Nova of a connected or not client of a serial-port.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
Sahid Orentino
Direction:
Approved
Assignee:
melanie witt
Definition:
Approved
Series goal:
Accepted for rocky
Implementation:
Implemented
Milestone target:
milestone icon rocky-2
Started by
Paul Murray
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/convert-consoles-to-objects,n,z

Addressed by: https://review.openstack.org/165838
    console: convert consoles code to use objects framework

Removing milestone as blueprint is not get complete. In fact spec is till being reviewed. --johnthetubaguy 22nd June 2015

Please note this blueprint will delayed until the M release if it is not in the NeedsCodeReview state (with all the code up for review) before July 16th, and merged by July 30th. We expect to re-open master for the M release in September. For more information, please see: https://wiki.openstack.org/wiki/Nova/Liberty_Release_Schedule#Non-priority_Blueprint_Feature_Freeze and http://lists.openstack.org/pipermail/openstack-dev/2015-June/065819.html
--johnthetubaguy 15th July 2015

Unapproved for liberty due to the Non-Priority Feature Proposal Freeze. --johnthetubaguy 16th July 2015

This spec is approved in M, any update on this? (-- Eli Qiao(taget-9))

Addressed by: https://review.openstack.org/301158 <=== Newton spec
    convert consoles code to use objects framework

Addressed by: https://review.openstack.org/319327
    Add console auth tokens table and model

Addressed by: https://review.openstack.org/319964
    Add console auth tokens db api methods

Addressed by: https://review.openstack.org/320063
    Add console auth object

Addressed by: https://review.openstack.org/321636
    Update for convert consoles to objects

Addressed by: https://review.openstack.org/325381
    Add periodic task to clean expired console tokens

Addressed by: https://review.openstack.org/325382
    Add instance uuid to console URLs

Addressed by: https://review.openstack.org/325414
    Add console auth token records to the database

Addressed by: https://review.openstack.org/333990
    Convert websocketproxy to use db for token validation

Addressed by: https://review.openstack.org/334614
    Add access_url to console_auth_tokens table

Addressed by: https://review.openstack.org/335535
    Alternative console authorization object

This still has outstanding changes and we're now at non-priority blueprint
feature freeze for Newton. -- mriedem 20160630

Addressed by: https://review.openstack.org/453041
    Convert consoles code to use objects framework

Re-approved for Pike. This is needed for cells v2 support. -- mriedem 20170404

Addressed by: https://review.openstack.org/481700
    Add console_auth_token_get() method to DB API

We're past feature freeze for Pike so I'm deferring this to Queens. Please re-propose the spec for re-approval in Queens and make any adjustments to the spec as necessary if the design has changed. -- mriedem 20170728

Addressed by: https://review.openstack.org/500975
    Convert consoles code to use objects framework

Addressed by: https://review.openstack.org/531477
    Add index on token_hash and instance_uuid for console_auth_tokens

We're now past feature freeze for Queens so we need to defer the rest of this to Rocky. Please re-propose the spec and we'll try to get it merged early in the first milestone. -- mriedem 20180126

Addressed by: https://review.openstack.org/543662
    Re-propose convert consoles code to use objects framework

Re-approved for Rocky. -- mriedem 20180312

Addressed by: https://review.openstack.org/557489
    Update layout docs for running console proxies

Addressed by: https://review.openstack.org/565367
    Deprecate the nova-consoleauth service

Addressed by: https://review.openstack.org/605250
    Revert "Deprecate the nova-consoleauth service"

Addressed by: https://review.openstack.org/605255
    Un-deprecate the nova-consoleauth service

Addressed by: https://review.openstack.org/607037
    Revert "Deprecate the nova-consoleauth service"

Addressed by: https://review.openstack.org/607038
    Un-deprecate the nova-consoleauth service

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.