[OVN] Adapt the live-migration job scripts to work with OVN

There's no q-agt service in an OVN deployment.

Change-Id: Ia25c966c70542bcd02f5540b5b94896c17e49888
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
This commit is contained in:
Lucas Alvares Gomes
2021-02-18 10:56:46 +00:00
parent 8a92bf8115
commit 20a7c98eff
2 changed files with 20 additions and 6 deletions
+15 -5
View File
@@ -5,15 +5,25 @@
environment:
SUBNODE_HOSTNAME: "{{ hostvars['compute1']['ansible_hostname'] }}"
- name: Fence subnode by stopping q-agt and n-cpu
- name: Fence subnode by stopping n-cpu
delegate_to: compute1
become: true
systemd:
name: "{{ item }}"
name: devstack@n-cpu
state: stopped
with_items:
- devstack@q-agt
- devstack@n-cpu
- name: Check if q-agt exists
shell: sudo systemctl status devstack@q-agt
ignore_errors: true
register: qagtstatus
- name: Fence subnode by stopping q-agt (if exists)
delegate_to: compute1
become: true
systemd:
name: devstack@q-agt
state: stopped
when: qagtstatus.rc | int == 0
- name: Register running domains on subnode
delegate_to: compute1