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
This commit is contained in:
parent
d2cc6a532f
commit
30b234a45c
6
doc/source/roles/role-undercloud_disabled_services.rst
Normal file
6
doc/source/roles/role-undercloud_disabled_services.rst
Normal file
@ -0,0 +1,6 @@
|
||||
============================
|
||||
undercloud_disabled_services
|
||||
============================
|
||||
|
||||
.. ansibleautoplugin::
|
||||
:role: roles/undercloud_disabled_services
|
22
playbooks/undercloud-disabled-services.yaml
Normal file
22
playbooks/undercloud-disabled-services.yaml
Normal file
@ -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
|
3
roles/undercloud_disabled_services/defaults/main.yml
Normal file
3
roles/undercloud_disabled_services/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
undercloud_disabled_service_list:
|
||||
- libvirtd
|
18
roles/undercloud_disabled_services/tasks/main.yml
Normal file
18
roles/undercloud_disabled_services/tasks/main.yml
Normal file
@ -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 }}"
|
8
roles/undercloud_disabled_services/vars/main.yaml
Normal file
8
roles/undercloud_disabled_services/vars/main.yaml
Normal file
@ -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…
x
Reference in New Issue
Block a user