Validate libvirtd is not running on the undercloud
Validate libvirtd is not running on the undercloud as its dnsmasq
process is conflicting with ironic-inspector dnsmasq process.
Change-Id: Ie268e91341610dad36c3ddc79496cc174f732900
(cherry picked from commit 30b234a45c
)
This commit is contained in:
parent
aa52abe282
commit
353e877118
|
@ -0,0 +1,6 @@
|
||||||
|
============================
|
||||||
|
undercloud_disabled_services
|
||||||
|
============================
|
||||||
|
|
||||||
|
.. ansibleautoplugin::
|
||||||
|
:role: roles/undercloud_disabled_services
|
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
- hosts: undercloud
|
||||||
|
vars:
|
||||||
|
metadata:
|
||||||
|
name: Verify undercloud services state before running update or upgrade
|
||||||
|
description: |
|
||||||
|
Check undercloud status before running a stack update - especially minor update and major upgrade.
|
||||||
|
groups:
|
||||||
|
- backup-and-restore
|
||||||
|
- post-upgrade
|
||||||
|
- pre-upgrade
|
||||||
|
- post-update
|
||||||
|
- pre-update
|
||||||
|
categories:
|
||||||
|
- os
|
||||||
|
- system
|
||||||
|
- systemd
|
||||||
|
- services
|
||||||
|
products:
|
||||||
|
- tripleo
|
||||||
|
roles:
|
||||||
|
- undercloud_disabled_services
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
undercloud_disabled_service_list:
|
||||||
|
- libvirtd
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
- name: Check Services are running
|
||||||
|
command: "/usr/bin/systemctl show {{ item }} --property ActiveState"
|
||||||
|
become: true
|
||||||
|
loop: "{{ undercloud_disabled_service_list }}"
|
||||||
|
register: "check_disabled_services"
|
||||||
|
changed_when: false
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: Fail if services were running
|
||||||
|
fail:
|
||||||
|
msg: >-
|
||||||
|
One of the undercloud services was active.
|
||||||
|
Please check {{ item.item }} first and then confirm the status of
|
||||||
|
undercloud services in general before attempting to install, update
|
||||||
|
or upgrade the environment.
|
||||||
|
failed_when: "item.stdout == 'ActiveState=active'"
|
||||||
|
loop: "{{ check_disabled_services.results }}"
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
metadata:
|
||||||
|
name: Verify undercloud services state before running update or upgrade
|
||||||
|
description: >
|
||||||
|
Check undercloud status before running a stack update - especially minor update and major upgrade.
|
||||||
|
groups:
|
||||||
|
- post-upgrade
|
||||||
|
- pre-upgrade
|
Loading…
Reference in New Issue