Placement Extraction Related Work

Registered by Chris Dent

We agreed at the Dublin PTG that while we probably won't get placement extracted in Rocky, it would be beneficial to make progress on work that helps to make that easier later. The blueprint provides a topic against which the many different avenues of changes can be linked. There is some overview discussion at http://lists.openstack.org/pipermail/openstack-dev/2018-March/128004.html and the weekly placement update reports have an extraction section. The general areas of work are:

* consolidating code that only runs in the placement service into the nova/api/openstack/placement directory (so that dir can eventually be lifted wholesale into a new repo)
* in that consolidated code removing imports to code elsewhere in the nova hierarchy
* moving tests, such as nova/tests/functional/db/test_resource_provider.py into a more placement oriented location
* creating an os-resource-classes library, similar to os-traits for standard resource classes

Blueprint information

Status:
Complete
Approver:
melanie witt
Priority:
Low
Drafter:
Chris Dent
Direction:
Approved
Assignee:
Chris Dent
Definition:
Approved
Series goal:
Accepted for rocky
Implementation:
Implemented
Milestone target:
milestone icon rocky-3
Started by
Matt Riedemann
Completed by
melanie witt

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:cd/placement-objects,n,z

Addressed by: https://review.openstack.org/549862
    Move placement exceptions into the placement package

Addressed by: https://review.openstack.org/362766
    Optional separate database for placement API

Addressed by: https://review.openstack.org/541435
    Isolate placement database config

Addressed by: https://review.openstack.org/553857
    WIP: Ensure that os-traits sync is attempted only at start of process

Gerrit topic: https://review.openstack.org/#q,topic:bp/placement-extract,n,z

Addressed by: https://review.openstack.org/553149
    Move test_allocation_candidates.py

We agreed at the PTG that we won't complete extraction of placement in Rocky but that we can make incremental progress on it during the cycle, so approving to track that progress. -- melwitt 20180319

Addressed by: https://review.openstack.org/554827
    Remove translate and a TODO

Addressed by: https://review.openstack.org/558911
    Move test_report_client out of placement namespace

Gerrit topic: https://review.openstack.org/#q,topic:cd/placement-db,n,z

Addressed by: https://review.openstack.org/568359
    Extract part of PlacementFixture to placement

Addressed by: https://review.openstack.org/572279
    Re-base placement object unit tests on NoDBTestCase

Addressed by: https://review.openstack.org/572280
    Move db using provider unit tests to functional

Addressed by: https://review.openstack.org/572281
    Move db using allocation unit tests to functional

Addressed by: https://review.openstack.org/572282
    Remove nova dependencies from test_resource_provider

Gerrit topic: https://review.openstack.org/#q,topic:bp/placement-extraction,n,z

Addressed by: https://review.openstack.org/574403
    Do not use nova.test in placement.test_util

Addressed by: https://review.openstack.org/574404
    Do not use nova.test in placement.handlers.test_aggregate

Addressed by: https://review.openstack.org/574405
    Do not use nova.test in placement.test_requestlog

Addressed by: https://review.openstack.org/574406
    Do not use nova.test in placement.test_fault_wrap

Addressed by: https://review.openstack.org/574407
    Do not use nova.test in placement.test_handler

Addressed by: https://review.openstack.org/574408
    Do not use nova.test in placement.test_microversion

Addressed by: https://review.openstack.org/574409
    Do not use nova.test in placement.test_deploy

Addressed by: https://review.openstack.org/576265
    Clarify placement DB schema migration

Closing this out for Rocky as there are no more open changes and we're coming up on r-3 feature freeze on July 26. -- melwitt 20180713

Addressed by: https://review.openstack.org/585777
    [placement] Extract base functional test case from test_direct

Addressed by: https://review.openstack.org/585778
    [placement] Use base test in placement functional tests

Addressed by: https://review.openstack.org/587129
    [placement] Use oslotest CaptureOutput fixture

Addressed by: https://review.openstack.org/587130
    [placement] Use a non-nova log capture fixture

Addressed by: https://review.openstack.org/587131
    [placement] Use a simplified WarningsFixture

Addressed by: https://review.openstack.org/587183
    [placement] Use of set_middleware_defaults

Addressed by: https://review.openstack.org/584085
    [placement] Move resource_class_cache into placement hierarchy

Addressed by: https://review.openstack.org/584086
    [placement] ensure_rc_cache only at start of process

Addressed by: https://review.openstack.org/594144
    [placement] Use oslotest uuidsentinel

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.