Browse Source

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
changes/82/161882/6
Steven Hardy 4 years ago
parent
commit
310b557430
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      scripts/devtest_overcloud.sh

+ 3
- 0
scripts/devtest_overcloud.sh View File

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

Loading…
Cancel
Save