From 65ec728f5f4f4feed65f3f3353d7a6dae17bc2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20THEROND=20=28Fl1nt=29?= Date: Tue, 21 Mar 2023 12:07:05 +0100 Subject: [PATCH] Fix improper designate-manage command usage. * Implicit use of default pools file path. * Use non-destructive update operation. Change-Id: Ib5f43a83d2267cd824f5215964d4ea1fea697e12 Closes-Bug: #2012292 --- ansible/roles/designate/tasks/update_pools.yml | 4 ++-- ...012292-fix-designate-pools-update-a367caf1d85c7326e.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/bug-2012292-fix-designate-pools-update-a367caf1d85c7326e.yaml diff --git a/ansible/roles/designate/tasks/update_pools.yml b/ansible/roles/designate/tasks/update_pools.yml index 0ac62443a2..edc4e7e6d9 100644 --- a/ansible/roles/designate/tasks/update_pools.yml +++ b/ansible/roles/designate/tasks/update_pools.yml @@ -1,6 +1,6 @@ --- -- name: Update DNS pools +- name: Non-destructive DNS pools update become: true - command: "{{ kolla_container_engine }} exec -t designate_worker designate-manage pool update --file /etc/designate/pools.yaml" + command: "{{ kolla_container_engine }} exec -t designate_worker designate-manage pool update" run_once: True delegate_to: "{{ groups['designate-worker'][0] }}" diff --git a/releasenotes/notes/bug-2012292-fix-designate-pools-update-a367caf1d85c7326e.yaml b/releasenotes/notes/bug-2012292-fix-designate-pools-update-a367caf1d85c7326e.yaml new file mode 100644 index 0000000000..1074a0f0c3 --- /dev/null +++ b/releasenotes/notes/bug-2012292-fix-designate-pools-update-a367caf1d85c7326e.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fix improper use of ``--file`` parameter with + ``designate-manage pool update`` command. + `LP#2012292 `