@@ -907,6 +907,7 @@ export class NodeCommand extends BaseCommand {
907
907
908
908
// compute other config parameters
909
909
// TODO DRY
910
+ self . logger . debug ( `[cacheDir=${ config . cacheDir } ]` )
910
911
config . releasePrefix = Templates . prepareReleasePrefix ( config . releaseTag )
911
912
config . buildZipFile = `${ config . cacheDir } /${ config . releasePrefix } /build-${ config . releaseTag } .zip`
912
913
config . keysDir = path . join ( config . cacheDir , 'keys' )
@@ -973,7 +974,9 @@ export class NodeCommand extends BaseCommand {
973
974
subTasks . push ( {
974
975
title : `Node: ${ chalk . yellow ( nodeId ) } ` ,
975
976
task : ( ) =>
976
- self . plaformInstaller . taskInstall ( podName , config . buildZipFile , config . stagingDir , config . nodeIds , config . keyFormat , config . force )
977
+ self . plaformInstaller . taskInstall ( podName , config . buildZipFile , config . stagingDir ,
978
+ [ 'node0' , 'node1' , 'node2' , 'node3' ] , // TODO get nodeIds to copy keys from // config.nodeIds,
979
+ config . keyFormat , config . force )
977
980
} )
978
981
}
979
982
@@ -1027,29 +1030,11 @@ export class NodeCommand extends BaseCommand {
1027
1030
} )
1028
1031
}
1029
1032
} ,
1030
- {
1031
- title : 'Check nodes are ACTIVE' ,
1032
- task : ( ctx , task ) => {
1033
- const subTasks = [ ]
1034
- for ( const nodeId of ctx . config . nodeIds ) {
1035
- subTasks . push ( {
1036
- title : `Check node: ${ chalk . yellow ( nodeId ) } ` ,
1037
- task : ( ) => self . checkNetworkNodeStarted ( nodeId )
1038
- } )
1039
- }
1040
-
1041
- // set up the sub-tasks
1042
- return task . newListr ( subTasks , {
1043
- concurrent : false ,
1044
- rendererOptions : {
1045
- collapseSubtasks : false
1046
- }
1047
- } )
1048
- }
1049
- } ,
1050
1033
{
1051
1034
title : 'Check node proxies are ACTIVE' ,
1052
- task : async ( ctx , parentTask ) => {
1035
+ // this is more reliable than checking the nodes logs for ACTIVE, as the
1036
+ // logs will have a lot of white noise from being behind
1037
+ task : async ( ctx , task ) => {
1053
1038
const subTasks = [ ]
1054
1039
let localPort = constants . LOCAL_NODE_PROXY_START_PORT
1055
1040
for ( const nodeId of ctx . config . nodeIds ) {
@@ -1060,7 +1045,7 @@ export class NodeCommand extends BaseCommand {
1060
1045
}
1061
1046
1062
1047
// set up the sub-tasks
1063
- return parentTask . newListr ( subTasks , {
1048
+ return task . newListr ( subTasks , {
1064
1049
concurrent : false ,
1065
1050
rendererOptions : {
1066
1051
collapseSubtasks : false
0 commit comments