From 85cb7e3f6a485bc74eae432e462877684b6651fe Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 7 Nov 2022 10:26:13 -0500 Subject: [PATCH] Adjust variable used for migrate selector --- roles/pvc/defaults/main.yml | 2 +- roles/pvc/templates/pvc/pvcnoded.yaml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/pvc/defaults/main.yml b/roles/pvc/defaults/main.yml index b7854ae..1307ba4 100644 --- a/roles/pvc/defaults/main.yml +++ b/roles/pvc/defaults/main.yml @@ -18,7 +18,7 @@ pvc_fence_intervals: 6 # Number of keepalive ticks before a nod pvc_suicide_intervals: 0 # Number of keepalive ticks before a node consideres itself dead (0 to disable) pvc_fence_successful_action: migrate # What to do with VMs when a fence is successful (migrate, None) pvc_fence_failed_action: None # What to do with VMs when a fence is failed (migrate, None) - migrate is DANGEROUS without pvc_suicide_intervals set to < pvc_fence_intervals -pvc_fence_migrate_target_selector: mem # The selector to use for migrating VMs after a fence +pvc_migrate_target_selector: mem # The selector to use for migrating VMs # Memory tuning pvc_osd_memory_limit: 4294967296 diff --git a/roles/pvc/templates/pvc/pvcnoded.yaml.j2 b/roles/pvc/templates/pvc/pvcnoded.yaml.j2 index 5066ca5..3ba5c2e 100644 --- a/roles/pvc/templates/pvc/pvcnoded.yaml.j2 +++ b/roles/pvc/templates/pvc/pvcnoded.yaml.j2 @@ -62,7 +62,7 @@ pvc: pass: {% for node in pvc_nodes if node.hostname == this_node %}{{ node.ipmi_password }}{% endfor %} migration: - target_selector: {{ pvc_fence_migrate_target_selector }} + target_selector: {{ pvc_migrate_target_selector }} configuration: directories: dynamic_directory: "/run/pvc"