Merge lp://qastaging/~justin-fathomdb/nova/schedule-compute-near-volume into lp://qastaging/~hudson-openstack/nova/trunk

Proposed by justinsb
Status: Work in progress
Proposed branch: lp://qastaging/~justin-fathomdb/nova/schedule-compute-near-volume
Merge into: lp://qastaging/~hudson-openstack/nova/trunk
Prerequisite: lp://qastaging/~justin-fathomdb/nova/constraint-scheduler
Diff against target: 700 lines (+437/-30)
9 files modified
nova/db/sqlalchemy/models.py (+3/-0)
nova/scheduler/constraint.py (+68/-2)
nova/scheduler/constraint_lib.py (+31/-22)
nova/scheduler/datastore.py (+32/-1)
nova/scheduler/driver.py (+39/-2)
nova/scheduler/topology.py (+121/-0)
nova/tests/test_constraintlib.py (+2/-1)
nova/tests/test_scheduler.py (+52/-2)
nova/tests/test_topology.py (+89/-0)
To merge this branch: bzr merge lp://qastaging/~justin-fathomdb/nova/schedule-compute-near-volume
Reviewer Review Type Date Requested Status
Ed Leafe Pending
Sandy Walsh Pending
Nova Core security contacts Pending
Review via email: mp+52520@code.qastaging.launchpad.net

Description of the change

The first new pluggable scheduler policy: support allocation of machines in a requested 'location'.

The 'location' is like eday's DNS-style zone names. Because that isn't implemented yet, we instead infer the location based on the reversed host DNS name (for now). Also, because we don't know how we're going to pass this information, we instead pass it in the only collection we've got: the metadata.

To post a comment you must log in.
Revision history for this message
Todd Willey (xtoddx) wrote :

Probably shouldn't pass context as {} in the test case, as it will raise warnings if it actually gets used.

Revision history for this message
Christopher MacGown (0x44) wrote :

Should _build_topology, Topology, NamedTopology, and TopologyNode have docstrings?

Revision history for this message
justinsb (justin-fathomdb) wrote :

Moving to WIP - we're going to discuss at Design Summit

Unmerged revisions

734. By justinsb

Pep8ulous

733. By justinsb

Got tests passing; the problem was how to handle ties (i.e. when the weakest constraint had a draw)

732. By justinsb

Changed to using the more pythonic __str__ instead of the to_s hack

731. By justinsb

Merged in tests

730. By justinsb

Fix misnamed method service_get_all_by_topic_location

729. By justinsb

Fix superclass call

728. By justinsb

Plug in proximity based scheduler based on metadata

727. By justinsb

Merged with trunk

726. By justinsb

Initial implementation of proximity scheduler constraint

725. By justinsb

Added simple topology mapper

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.