diff --git a/javascript/packages/orchestrator/src/paras.ts b/javascript/packages/orchestrator/src/paras.ts index 836dc0107..33f5b7bed 100644 --- a/javascript/packages/orchestrator/src/paras.ts +++ b/javascript/packages/orchestrator/src/paras.ts @@ -7,6 +7,7 @@ import { GENESIS_STATE_FILENAME, GENESIS_WASM_FILENAME, K8S_WAIT_UNTIL_SCRIPT_SUFIX, + NODE_CONTAINER_WAIT_LOG, WAIT_UNTIL_SCRIPT_SUFIX, } from "./constants"; import { decorate } from "./paras-decorators"; @@ -14,6 +15,7 @@ import { Providers } from "./providers"; import { getClient } from "./providers/client"; import { fileMap } from "./types"; import { Node, ZombieRole, Parachain } from "./sharedTypes"; +import { KubeClient } from "./providers/k8s/kubeClient"; const debug = require("debug")("zombie::paras"); @@ -278,6 +280,15 @@ export async function generateParachainFiles( await client.spawnFromDef(podDef, filesToCopyToNodes); + if (client.providerName === "kubernetes") { + debug("waiting for artifacts been created in pod"); + await (client as KubeClient).waitLog( + podName, + podName, + NODE_CONTAINER_WAIT_LOG, + ); + } + if (parachain.genesisStateGenerator) { await client.copyFileFromPod( podDef.metadata.name,