-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
Cloudstack agent for KVM
CLOUDSTACK VERSION
4.15.2.0
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04.6 LTS
SUMMARY
/usr/share/cloudstack-common/scripts/util/keystore-setup
This script is not excluding fe80 / link-local address and cloudstack agent certificate contains 300+ fe80 san names in it.
From:
ip address | grep inet | awk '{print $2}' | sed 's//.*//g' | grep -v '^169.254.' | grep -v '^127.0.0.1' | grep -v '^::1' | sed 's/^/ip:/g' | tr '\r\n' ','
To:
ip address | grep inet | awk '{print $2}' | sed 's//.*//g' | grep -v '^169.254.' | grep -v '^127.0.0.1' | egrep -v '^::1|^fe80' | sed 's/^/ip:/g' | tr '\r\n' ','
STEPS TO REPRODUCE
IPv6 must be enabled on host
EXPECTED RESULTS
Cloudstack agent for KVM certificate SAN contains only routable IPs
ACTUAL RESULTS
Cloudstack agent for KVM certificate SAN contains fe80/link-local IPs