From c98eb5bad9d0fbe4d8262b17ec63cceaa5f3780a Mon Sep 17 00:00:00 2001 From: Sanjay Chari Date: Tue, 29 Mar 2022 14:56:27 +0530 Subject: [PATCH] Fix OSP Resources collectd plugin in OSP 13 OSP Resources collectd plugin needs to have collectd-dbi and libdbi-dbd-mysql installed on the controllers, or else collectd service goes to failed state when this plugin is enabled. This patch fixes the issue. Change-Id: If56e9b707608370125553ed521ef964b1ab4c0aa --- ansible/install/roles/collectd-openstack/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/install/roles/collectd-openstack/tasks/main.yml b/ansible/install/roles/collectd-openstack/tasks/main.yml index f4b3d96dc..d04b45bbb 100644 --- a/ansible/install/roles/collectd-openstack/tasks/main.yml +++ b/ansible/install/roles/collectd-openstack/tasks/main.yml @@ -53,12 +53,12 @@ become: true ignore_errors: true -- name: (Keystone Token Count) Install libdbi mysql driver +- name: Install libdbi mysql driver yum: name: "{{item}}" state: present become: true - when: "(('Controller' in group_names and keystone_overcloud_collectd_plugin and inventory_hostname == groups['Controller'][0]) or ('Undercloud' in group_names and keystone_undercloud_collectd_plugin))" + when: "(('Controller' in group_names and (keystone_overcloud_collectd_plugin or osp_resources_collectd_plugin) and inventory_hostname == groups['Controller'][0]) or ('Undercloud' in group_names and keystone_undercloud_collectd_plugin))" with_items: - libdbi-dbd-mysql - collectd-dbi