Fall back to generated snmp password with --no-undercloud

Running devtest_overcloud.sh via devtest with --no-undercloud seems
to result in some puppet errors recently, due to the zero-length
password in the heiradata key.

So instead of passing a zero length password, fall back to generating
one in the event no password is found via the undercloud key of the
test environment.

Change-Id: Ia5f9fff1ea3b50f372489a42647e3f47bc219df8
Closes-Bug: #1428726
This commit is contained in:
Steven Hardy 2015-03-05 15:37:05 -05:00
parent f219a1af96
commit 310b557430
1 changed files with 3 additions and 0 deletions

View File

@ -337,6 +337,9 @@ wait_for -w $((60 * $expected_nodes)) --delay 10 -- wait_for_hypervisor_stats $e
## #. Set password for Overcloud SNMPd, same password needs to be set in Undercloud Ceilometer ## #. Set password for Overcloud SNMPd, same password needs to be set in Undercloud Ceilometer
UNDERCLOUD_CEILOMETER_SNMPD_PASSWORD=$(os-apply-config -m $TE_DATAFILE --key undercloud.ceilometer_snmpd_password --type raw --key-default '') UNDERCLOUD_CEILOMETER_SNMPD_PASSWORD=$(os-apply-config -m $TE_DATAFILE --key undercloud.ceilometer_snmpd_password --type raw --key-default '')
if [ -z "$UNDERCLOUD_CEILOMETER_SNMPD_PASSWORD" ]; then #nodocs
UNDERCLOUD_CEILOMETER_SNMPD_PASSWORD=$(os-make-password)
fi #nodocs
## #. Create unique credentials:: ## #. Create unique credentials::