Skip to content

Commit 4fb0225

Browse files
committed
Add debug logs to deploy step
1 parent f5aba7c commit 4fb0225

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

resources/plugins/simln/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,11 @@ def _generate_activity_json(activity: Optional[list[dict]]) -> str:
189189

190190
def transfer_cln_certs(name):
191191
dst_container = "init"
192-
cln_root = "/root/.lightning/regtest" # FIXME: figure out chain
193192
for i in get_mission(LIGHTNING_MISSION):
194193
ln_name = i.metadata.name
195194
if "cln" in i.metadata.labels["app.kubernetes.io/name"]:
195+
chain = i.metadata.labels["chain"]
196+
cln_root = f"/root/.lightning/{chain}"
196197
copyfile(
197198
ln_name,
198199
"cln",

src/warnet/deploy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ def deploy_network(directory: Path, debug: bool = False, namespace: Optional[str
391391
p.join()
392392

393393
if needs_ln_init:
394+
click.echo("deploy_network->_run started")
394395
name = _run(
395396
scenario_file=SCENARIOS_DIR / "ln_init.py",
396397
debug=False,
@@ -399,8 +400,11 @@ def deploy_network(directory: Path, debug: bool = False, namespace: Optional[str
399400
admin=False,
400401
namespace=namespace,
401402
)
403+
click.echo("deploy_network->_run finished")
402404
wait_for_pod(name, namespace=namespace)
405+
click.echo("wait_for_pod finished")
403406
_logs(pod_name=name, follow=True, namespace=namespace)
407+
click.echo("deploy_network finished")
404408

405409

406410
def deploy_single_node(node, directory: Path, debug: bool, namespace: str):

0 commit comments

Comments
 (0)