You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\033[0;31mYou have requested a Hard Reset. The following operations will be performed (ALL DATA WILL BE LOST):
523
+
\033[1;33m- The process will pause at the beginning to ensure the related BC Registries Agent reset process has started.
524
+
- The wallet will be deleted and recreated.
525
+
- The 'db' will be reset and reinitialized.
526
+
- The search indexes will be reset.
527
+
- The process will pause to ensure the related BC Registries Agent registration process has had time to complete.
528
+
- The BC Registries Agent registration will be verified.\n
529
+
EOF
530
+
)
531
+
else
532
+
txtMsg+=$(cat <<-EOF
533
+
\n
495
534
The following operations will be performed (ALL DATA WILL BE LOST):
496
-
- The process will pause at the beginning to ensure the related ICIA reset process has started.
497
-
- The wallet will be reset, by restoring initial copy of ICOB Wallet.
535
+
- The process will pause at the beginning to ensure the related BC Registries Agent reset process has started.
536
+
- The wallet will be reset, by restoring initial copy of OrgBook Wallet.
498
537
- The 'db' will be reset and reinitialized.
499
538
- The search indexes will be reset.
500
-
- The process will pause to ensure the related ICIA registration process has had time to complete.
501
-
- The ICIA registration will be verified.\n
539
+
- The process will pause to ensure the related BC Registries Agent registration process has had time to complete.
540
+
- The BC Registries Agent registration will be verified.\n
502
541
EOF
503
542
)
543
+
fi
504
544
505
-
printAndAskToContinue "${txtMsg}"
545
+
if! printAndWaitForYes "${txtMsg}";then
546
+
echoWarning "Exiting ..."
547
+
exit 1
548
+
fi
506
549
507
-
# - scaledown ICIA controller and agent
508
-
printAndWait "Please ensure the reset process in the corresponding ICIA environment has been started and it has indicated it is safe to process before continuing ..."
550
+
# - scaledown BC Registries Agent controller and agent
551
+
printAndWait "Please ensure the reset process in the corresponding BC Registries Agent environment has been started and it has indicated it is safe to process before continuing ..."
509
552
510
-
# - scaledown ICOB agent, api, msg-queue, and msg-queue-worker
553
+
# - scaledown OrgBook agent, api, msg-queue, and msg-queue-worker
511
554
echo"Scaling down ${agentPod}${resourceSuffix}, ${apiPod}${resourceSuffix}, ${msgQueuePod}${resourceSuffix} and ${msgQueueWorkerPod}${resourceSuffix} ..."
echoError "Wallet 'items' count verification failed; ${numItems} items found. Please fix the issue and try again."
543
-
exit 1
544
-
fi
545
-
exitOnError
546
-
547
-
# - scaleup ICOB agent
597
+
# - scaleup OrgBook agent
548
598
echo"Scaling up ${agentPod}${resourceSuffix} ..."
549
599
scaleUp -w "${agentPod}${resourceSuffix}"
550
600
exitOnError
551
601
552
-
# - reset ICOB database
602
+
# - reset OrgBook database
603
+
echo"Resetting ${dbPod}${resourceSuffix} ..."
553
604
resetDatabase "${apiPod}""${dbPod}"
554
605
exitOnError
555
606
556
-
# - scaleup ICOB msg-queue and msg-queue-worker
557
-
echo"Scaling up ${agentPod}${resourceSuffix}, ${apiPod}${resourceSuffix}, ${msgQueuePod}${resourceSuffix} and ${msgQueueWorkerPod}${resourceSuffix} ..."
607
+
# - scaleup OrgBook msg-queue and msg-queue-worker
608
+
echo"Scaling up ${apiPod}${resourceSuffix}, ${msgQueuePod}${resourceSuffix} and ${msgQueueWorkerPod}${resourceSuffix} ..."
printAndWait "The ICOB reset process is complete. Please wait here for the associated ICIA instance to finish it's registration process before continuing ..."
611
+
printAndWait "The OrgBook reset process is complete. Please wait here for the associated BC Registries Agent instance to finish it's registration process before continuing ..."
561
612
562
-
# - verify ICIA registered with ICOB
613
+
# - verify BC Registries Agent registered with OrgBook
563
614
# - >= 3 credential_type records
564
615
# - >= 3 schema records
565
616
# - >= 1 issuer record
617
+
echo"Verifying BC Registries Agent registered with OrgBook ..."
echo"ICIA registration verified; credential_type:${numCredentialTypes}, schema:${numSchemas}, and issuer:${numIssuers} records found."
624
+
echo"BC Registries Agent registration verified; credential_type:${numCredentialTypes}, schema:${numSchemas}, and issuer:${numIssuers} records found."
573
625
else
574
-
echoError "ICIA registration verification failed; credential_type:${numCredentialTypes}, schema:${numSchemas}, and issuer:${numIssuers} records found. Please fix the issue and try again."
626
+
echoError "BC Registries Agent registration verification failed; credential_type:${numCredentialTypes}, schema:${numSchemas}, and issuer:${numIssuers} records found. Please fix the issue and try again."
575
627
exit 1
576
628
fi
577
629
exitOnError
578
630
579
631
# - Test posting a few credentials using the pipelines
580
-
echo"Provided ICIA has successfully registered with ICOB you can now test things by issuing a few credentials."
632
+
echo"Provided BC Registries Agent has successfully registered with OrgBook you can now test things by issuing a few credentials."
581
633
)
582
634
}
583
635
@@ -693,7 +745,7 @@ function updateSearchIndex() {
printAndAskToContinue "If you contiune the following PVC swap will be performed:\n - PVC[${onlineSearchEnginePvc}] from DC[${_onlineSearchEngine}] to DC[${_offlineSearchEngine}]\n - PVC[${offlineSearchEnginePvc}] from DC[${_offlineSearchEngine}] to DC[${_onlineSearchEngine}]"
1016
+
if ( ! printAndWaitForYes "If you contiune the following PVC swap will be performed:\n - PVC[${onlineSearchEnginePvc}] from DC[${_onlineSearchEngine}] to DC[${_offlineSearchEngine}]\n - PVC[${offlineSearchEnginePvc}] from DC[${_offlineSearchEngine}] to DC[${_onlineSearchEngine}]\n" );then
0 commit comments