Link Compute Objects by ID

Registered by Dan Smith

The ``ComputeNode``, ``Service``, and ``Instance`` objects form the primary
data model for our compute nodes. Instances run on compute nodes, which are
managed by services. We rely on this hierarchy to know where instances are
(physically) as well as which RPC endpoint to send messages to for management.
Currently, the linkage between all three objects is a relatively loose and
string-based, association using the hostname of the compute node and/or the
``CONF.host`` values. This not only makes an actual/intentional rename very
difficult, but also risks breaking critical links as a result of an
*accidental* one.

Blueprint information

Status:
Complete
Approver:
sean mooney
Priority:
Undefined
Drafter:
Dan Smith
Direction:
Approved
Assignee:
Dan Smith
Definition:
Approved
Series goal:
Accepted for bobcat
Implementation:
Implemented
Milestone target:
None
Started by
Sylvain Bauza
Completed by
Sylvain Bauza

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:bp/compute-object-ids

Addressed by: https://review.opendev.org/c/openstack/nova/+/879904
    Populate ComputeNode.service_id

Addressed by: https://review.opendev.org/c/openstack/nova/+/879499
    Add compute_id columns to instances, migrations

Addressed by: https://review.opendev.org/c/openstack/nova/+/879682
    Add dest_compute_id to Migration object

Addressed by: https://review.opendev.org/c/openstack/nova/+/879500
    Add compute_id to Instance object

Addressed by: https://review.opendev.org/c/openstack/nova/+/879905
    Online migrate missing Instance.compute_id fields

Addressed by: https://review.opendev.org/c/openstack/nova/+/884752
    Add online migration for Instance.compute_id

[20230612 bauzas] Spec got approved for Bobcat https://review.opendev.org/c/openstack/nova-specs/+/877291

Addressed by: https://review.opendev.org/c/openstack/nova/+/898741
    Revert "Add upgrade check for compute-object-ids linkage"

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.