Ensure ss or netstat command is available during log collection
Change-Id: I2a10a0462e679a16798c3abf2a0e3f87ed52b40b
This commit is contained in:
parent
e7f82ba7ef
commit
8614be6834
@ -259,6 +259,19 @@ function info_block {
|
||||
}
|
||||
|
||||
function log_instance_info {
|
||||
# ensure packages are installed to get instance info
|
||||
determine_distro
|
||||
case ${DISTRO_ID} in
|
||||
ubuntu|debian)
|
||||
apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install iproute2 net-tools
|
||||
;;
|
||||
centos|rhel)
|
||||
# Prefer dnf over yum for CentOS.
|
||||
which dnf &>/dev/null && RHT_PKG_MGR='dnf' || RHT_PKG_MGR='yum'
|
||||
$RHT_PKG_MGR -y install iproute
|
||||
;;
|
||||
esac
|
||||
set +x
|
||||
# Get host information post initial setup and reset verbosity
|
||||
if [ ! -d "/openstack/log/instance-info" ];then
|
||||
|
Loading…
Reference in New Issue
Block a user