Add a BuildRequest object

Registered by John Garbutt

In order to maintain the API contract when using cells we need to store enough information to fulfill an instance show request.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Medium
Drafter:
Andrew Laski
Direction:
Approved
Assignee:
Andrew Laski
Definition:
Approved
Series goal:
Accepted for newton
Implementation:
Implemented
Milestone target:
milestone icon newton-3
Started by
John Garbutt
Completed by
Andrew Laski

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-buildrequest-obj,n,z

Addressed by: https://review.openstack.org/211753
    Add persistence to the RequestSpec object

Addressed by: https://review.openstack.org/214792
    WIP: Add BuildRequest table and object

Addressed by: https://review.openstack.org/212159
    Move objects registration in tests directory

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

Addressed by: https://review.openstack.org/294718
    Add BuildRequest object

OK, apparently the series here https://review.openstack.org/#/c/263927/ is more appropriate for this blueprint, but the spec wasn't re-proposed for mitaka. But those changes should go under this now. -- mriedem 20160318

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-buildrequest-ob,n,z

Addressed by: https://review.openstack.org/263925
    Populate instance_mappings during boot

Addressed by: https://review.openstack.org/286309
    Include CellMapping in InstanceMapping object

Addressed by: https://review.openstack.org/263927
    Create Instance from BuildRequest if not in a cell

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

Addressed by: https://review.openstack.org/298455
    Add additional attributes to BuildRequest

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

Addressed by: https://review.openstack.org/300580
    Put more into compute.api._populate_instance_for_create

Addressed by: https://review.openstack.org/302425
    Keep BuildRequest db entry around longer

Addressed by: https://review.openstack.org/305514
    Make some build_requests columns nullable

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

Addressed by: https://review.openstack.org/306023
    Add instance/instance_uuid to build_requests table

Addressed by: https://review.openstack.org/305953
    Drop fields from BuildRequest object and model

Addressed by: https://review.openstack.org/316285
    Use getattr rather than dict access in compare_obj

Addressed by: https://review.openstack.org/322324
    Raise exception if BuildRequest deleted twice

Addressed by: https://review.openstack.org/325985
    Cells: Handle delete with BuildRequest

Addressed by: https://review.openstack.org/326083
    Do not use instance.id in the name property

Addressed by: https://review.openstack.org/327342
    Add ability to override instance.name

Addressed by: https://review.openstack.org/327836
    Replace mox with mock for xenapi vm_utils.lookup

Addressed by: https://review.openstack.org/332478
    Bump service version for BuildRequest creation

Addressed by: https://review.openstack.org/332479
    Stop instance build if BuildRequest deleted

Addressed by: https://review.openstack.org/334094
    Refactor block_device_mapping handling during boot

Addressed by: https://review.openstack.org/334095
    Add block_device_mappings to BuildRequest

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

Addressed by: https://review.openstack.org/351893
    Add NoopConductorFixture

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

Addressed by: https://review.openstack.org/356137
    Add BuildRequestList object

Addressed by: https://review.openstack.org/356138
    WIP Pull from cell0 and build_requests for instance list

Addressed by: https://review.openstack.org/357396
    Clean up instance mappings, build requests on quota failure

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

Addressed by: https://review.openstack.org/363888
    Fix service version lookup during delete

Addressed by: https://review.openstack.org/363911
    Delete BuildRequest regardless of service_version

Addressed by: https://review.openstack.org/364005
    Remove BuildRequest when scheduling fails

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.