Support server power state update through external event

Registered by Surya Seetharaman on 2019-02-11

During the regular power sync between ironic and nova, physical instances going down will be marked down in nova's DB. However, physical instances coming up "unexpectedly" (via IPMI or power button) will be shut down again if they are marked as SHUTDOWN in nova. This can cause operational issues, e.g. if there was a power outage or when doing system repairs.

This blueprint proposes to make the power sync "source of truth" configurable, in particular to allow the physical instance to be the source of truth (and make nova update its DB rather than enforcing the DB state onto the physical instance).

The basic idea is to add a "power-update" option/event to the existing os-server-external-events nova API, and then add code to ironic to call that API when a node changes power state and comes back-up.

Blueprint information

Status:
Started
Approver:
Eric Fried
Priority:
Undefined
Drafter:
Surya Seetharaman
Direction:
Approved
Assignee:
Surya Seetharaman
Definition:
Approved
Series goal:
Accepted for train
Implementation:
Needs Code Review
Milestone target:
None
Started by
Matt Riedemann on 2019-05-22

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/nova-support-instance-power-update,n,z

Addressed by: https://review.openstack.org/636132
    Support server power state update through external event

Addressed by: https://review.openstack.org/645611
    [WIP] Add 'power-update' external event to listen to ironic

Gerrit topic: https://review.opendev.org/#/q/topic:bp/nova-support-instance-power-update

Addressed by: https://review.opendev.org/636132
    Support server power state update through external event

Addressed by: https://review.opendev.org/645611
    [WIP] Add 'power-update' external event to listen to ironic

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.