Cells v2 Mapping (partial)

Registered by Andrew Laski

The existing cells implementation depends on a nova-cells service for
communication between the Nova API and instances/hosts within a cell. The
compute api should be able to communicate with a cells database and message
queue directly.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
High
Drafter:
Andrew Laski
Direction:
Approved
Assignee:
Andrew Laski
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1.0
Started by
John Garbutt
Completed by
John Garbutt

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/cells-v2-mapping,n,z

Addressed by: https://review.openstack.org/135424
    Cells v2 mapping

Gerrit topic: https://review.openstack.org/#q,topic:bp/cells-instance-migration,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/cells-instance-mapping,n,z

Addressed by: https://review.openstack.org/157156
    Add second migrate_repo for cells v2 database migrations

Addressed by: https://review.openstack.org/157423
    Add cell_mappings table to api database

Addressed by: https://review.openstack.org/157426
    Add nova-manage commands for the new api database

Addressed by: https://review.openstack.org/159266
    WIP Separate out database config for Nova api db

Addressed by: https://review.openstack.org/161463
    Refactor _regex_instance_filter for testing

Addressed by: https://review.openstack.org/161833
    Use the proper database configuration for nova-manage

Addressed by: https://review.openstack.org/161866
    Add get_api_session to db api

Addressed by: https://review.openstack.org/161867
    Add CellMapping object

Addressed by: https://review.openstack.org/161904
    Add InstanceMapping object

Addressed by: https://review.openstack.org/161906
    Add context manager for RequestContext to switch db connection

Since we have hit feature proposal freeze, marking this as partial and ready to review. Please no more "new code" should be uploaded as we try to get the current items merged before feature freeze. --johnthetubaguy 10th March 2015

Main things still to review appear to start here:
https://review.openstack.org/#/c/157423

Addressed by: https://review.openstack.org/163605
    WIP Split out deleted/deleted_at from NovaPersistentObject

Addressed by: https://review.openstack.org/163974
    Objects: use setattr rather than dict syntax in remotable

Gerrit topic: https://review.openstack.org/#q,topic:object_no_dict,n,z

Addressed by: https://review.openstack.org/164794
    Test fixture for the api database

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.