From 535151f32da7bb06d1b0a433d22adf0201b34678 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Sat, 16 Jun 2018 09:59:25 -0400 Subject: [PATCH] Add nova-manage placement sync_aggregates This adds the "nova-manage placement sync_aggregates" command which will compare nova host aggregates to placement resource provider aggregates and add any missing resource provider aggregates based on the nova host aggregates. At this time, it's only additive in that the command does not remove resource provider aggregates if those matching nodes are not found in nova host aggregates. That likely needs to happen in a change that provides an opt-in option for that behavior since it could be destructive for externally-managed provider aggregates for things like ironic nodes or shared storage pools. Part of blueprint placement-mirror-host-aggregates Change-Id: Iac67b6bf7e46fbac02b9d3cb59efc3c59b9e56c8 --- ...ment-sync-aggregates-1e6380eceda7dc9b.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 releasenotes/notes/nova-manage-placement-sync-aggregates-1e6380eceda7dc9b.yaml diff --git a/releasenotes/notes/nova-manage-placement-sync-aggregates-1e6380eceda7dc9b.yaml b/releasenotes/notes/nova-manage-placement-sync-aggregates-1e6380eceda7dc9b.yaml new file mode 100644 index 000000000..ef489fa36 --- /dev/null +++ b/releasenotes/notes/nova-manage-placement-sync-aggregates-1e6380eceda7dc9b.yaml @@ -0,0 +1,20 @@ +--- +features: + - | + A ``nova-manage placement sync_aggregates`` command has been added which + can be used to mirror nova host aggregates to resource provider aggregates + in the placement service. This is a useful tool if you are using aggregates + in placement to optimize scheduling: + + https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#aggregates-in-placement + + The ``os-aggregates`` compute API ``add_host`` and ``remove_host`` actions + will automatically add/remove compute node resource providers from resource + provider aggregates in the placement service if the ``nova-api`` service + is configured to communicate with the placement service, so this command + is mostly useful for existing deployments with host aggregates which are + not yet mirrored in the placement service. + + For more details, see the command documentation: + + https://docs.openstack.org/nova/latest/cli/nova-manage.html#placement