Support server power state update through external event

Registered by Surya Seetharaman

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:
Complete
Approver:
Eric Fried
Priority:
Undefined
Drafter:
Surya Seetharaman
Direction:
Approved
Assignee:
Surya Seetharaman
Definition:
Approved
Series goal:
Accepted for train
Implementation:
Implemented
Milestone target:
milestone icon train-3
Started by
Matt Riedemann
Completed by
Matt Riedemann

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

Released as the 2.76 microversion. -- mriedem 20190820

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.