nova/releasenotes/notes/bug-1852458-cell0-instance-action-e3112cf17bcc7c64.yaml
Matt Riedemann f2608c9117 Create instance action when burying in cell0
Change I8742071b55f018f864f5a382de20075a5b444a79 in Ocata
moved the creation of the instance record from the API to
conductor. As a result, the "create" instance action was
only being created in conductor when the instance is created
in a non-cell0 database. This is a regression because before
that change when a server create would fail during scheduling
you could still list instance actions for the server and see
the "create" action but that was lost once we started burying
those instances in cell0.

This fixes the bug by creating the "create" action in the cell0
database when burying an instance there. It goes a step further
and also creates and finishes an event so the overall action
message shows up as "Error" with the details about where the
failure occurred in the event traceback.

A short release note is added since a new action event is
added here (conductor_schedule_and_build_instances) rather than
re-use some kind of event that we could generate from the
compute service, e.g. compute__do_build_and_run_instance.

Change-Id: I1e9431e739adfbcfc1ca34b87e826a516a4b18e2
Closes-Bug: #1852458
2019-12-12 14:30:35 -05:00

12 lines
481 B
YAML

---
fixes:
- |
This release contains a fix for a `regression`__ introduced in 15.0.0
(Ocata) where server create failing during scheduling would not result in
an instance action record being created in the cell0 database. Now when
creating a server fails during scheduling and is "buried" in cell0 a
``create`` action will be created with an event named
``conductor_schedule_and_build_instances``.
.. __: https://bugs.launchpad.net/nova/+bug/1852458