Skip to content

Commit cb73644

Browse files
committed
Update the sos release condition check to execute OpenStack sosplugin
1 parent 1c24bcd commit cb73644

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

agent/util-scripts/pbench-sysinfo-dump

+6-4
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ function collect_sos {
116116
# ref for plugin tuned: https://github.com/sosreport/sos/commit/c55c58cf2dabf93c924c839c8ed045c18e31ba1c
117117
_modules="${_modules} tuned"
118118
fi
119-
#OpenStack plugin
120-
OSP=/etc/rhosp-release
121-
if [[ -f "$OSP" ]] ; then
122-
_modules="${_modules} openstack_ansible openstack_aodh openstack_ceilometer openstack_cinder openstack_glance openstack_heat openstack_horizon openstack_instack openstack_ironic openstack_keystone openstack_manila openstack_neutron openstack_nova openstack_novajoin openstack_octavia openstack_placement openstack_swift os_net_config mssql cman ceph openvswitch ovn_central ovn_host pacemaker podman rabbitmq kernelrt ceph kvm corosync"
119+
if [[ "${sos_ver}" -ge 3 || "${sos_ver}" -le 3 ]]; then
120+
# sos-plugins for OpenStack cloud
121+
OSP=/etc/rhosp-release
122+
if [[ -f "$OSP" ]] ; then
123+
_modules="${_modules} openstack_ansible openstack_aodh openstack_ceilometer openstack_cinder openstack_glance openstack_heat openstack_horizon openstack_instack openstack_ironic openstack_keystone openstack_manila openstack_neutron openstack_nova openstack_novajoin openstack_octavia openstack_placement openstack_swift os_net_config mssql cman ceph openvswitch ovn_central ovn_host pacemaker podman rabbitmq kernelrt ceph kvm corosync"
124+
fi
123125
fi
124126
125127
_name="pbench-${_pbench_full_hostname}"

0 commit comments

Comments
 (0)