Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 26cae87

Browse files
authored
* Added AlternativeIAMRole to BastionStack to fix sporadic fails (#54)
* Added AlternativeIAMRole to BastionStack to fix sporadic fails * Added retry of config-sync for more stable deploy results
1 parent be02390 commit 26cae87

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

scripts/install-solace.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,15 @@ if [ "${is_primary}" = "true" ]; then
528528
esac
529529
((count++))
530530
echo "`date` INFO: Waited ${run_time} seconds, Config-sync is not yet Up"
531+
532+
if (( $count % 18 == 0 )) ; then
533+
echo "`date` INFO: Re-trying initiate config-sync for router"
534+
/tmp/semp_query.sh -n admin -p ${admin_password} -u http://localhost:8080/SEMP \
535+
-q "<rpc><admin><config-sync><assert-master><router/></assert-master></config-sync></admin></rpc>"
536+
/tmp/semp_query.sh -n admin -p ${admin_password} -u http://localhost:8080/SEMP \
537+
-q "<rpc><admin><config-sync><assert-master><vpn-name>default</vpn-name></assert-master></config-sync></admin></rpc>"
538+
fi
539+
531540
sleep ${pause}
532541
done
533542
@@ -557,4 +566,10 @@ if [ "${is_primary}" = "true" ]; then
557566
558567
fi
559568
569+
if [ ${count} -eq ${loop_guard} ]; then
570+
echo "`date` ERROR: Solace bringup failed" | tee /dev/stderr
571+
exit 1
572+
fi
573+
echo "`date` INFO: Solace bringup complete"
574+
560575
echo "`date` INFO: PubSub+ HA-node bringup complete"

templates/solace-master.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,15 @@ Resources:
285285
BastionStack:
286286
Type: AWS::CloudFormation::Stack
287287
Condition: UsePrivateSubnets
288+
DependsOn: VPCStack
288289
Properties:
289290
TemplateURL:
290291
!Sub
291292
- 'https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}submodules/quickstart-linux-bastion/templates/linux-bastion.template'
292293
- S3Region: !If [UsingDefaultBucket, !Ref 'AWS::Region', !Ref QSS3BucketRegion]
293294
S3Bucket: !If [UsingDefaultBucket, !Sub '${QSS3BucketName}-${AWS::Region}', !Ref QSS3BucketName]
294295
Parameters:
296+
AlternativeIAMRole: !Ref BastionHostRole
295297
BastionInstanceType: t2.micro
296298
EnableBanner: 'true'
297299
BastionBanner: !Sub

0 commit comments

Comments
 (0)