StatCan / openmpp

Implementing the OpenM++ microsimulation framework as a Kubernetes service on the StatCan cloud.
0 stars 1 forks source link

Bug: ini file binding #60

Closed Souheil-Yazji closed 8 months ago

Souheil-Yazji commented 9 months ago

Describe the bug

The ini file currently is not referenced correctly in the MPI exec command. We need to reference the correct ini file as it contains the list of output tables to retain among other configs. It is also an option in the UI to support.

Environment info

Namespace: all

Notebook/server: all

Steps to reproduce

Steps to reproduce the behavior:

  1. Open OMS
  2. select a model and config output tables
  3. submit job and look at manifest
  4. check mpijob logs and see that it ignores the ini file

Expected behaviour

The ini files directory to be correct. The name of the ini file is: ..ini

Screenshots

image

KrisWilliamson commented 9 months ago

InputArguments from OMC when ini file used. ./bin/parseCommand.py -modelName IDMM -exeStem IDMM -dir /home/jovyan/buckets/aaw-unclassified/microsim/models/bin -binDir . -dbPath /home/jovyan/buckets/aaw-unclassified/microsim/models/bin/IDMM.sqlite -mpiNp 1 -hostFile -OpenM.RunStamp 2024_02_05_20_08_19_932 -OpenM.LogToConsole true -OpenM.LogToFile false -OpenM.SetName Default -OpenM.LogRank true -OpenM.MessageLanguage en-US -OpenM.RunName IDMM_Default_2024_02_05_15_07_59_717 -OpenM.NotOnRoot -ini ../../logs/2024_02_05_20_08_19_932.IDMM.ini

file 2024_02_05_20_08_19_932.IDMM.ini exists in the logs dir, but appears to be malformed.

KrisWilliamson commented 9 months ago

From the MPIJob-.yaml file

#<mpirunOption>
            - /bin/bash
            - -c
            - "ulimit -s 63356 && /home/jovyan/buckets/aaw-unclassified/microsim/models/bin/IDMM_mpi -OpenM.RunStamp 2024_02_05_20_19_19_140 -OpenM.LogToConsole true -OpenM.LogToFile false -OpenM.RunName IDMM_Default_2024_02_05_15_18_49_403 -OpenM.SetName Default -OpenM.IniFile IDMM.ini -OpenM.IniAnyKey true -OpenM.LogRank true -OpenM.MessageLanguage en-US -OpenM.NotOnRoot -ini"

The -ini argument is right at the end, but is missing its value, the path to the ini file.

KrisWilliamson commented 9 months ago

The value is ending up in the unrecognizedCmdLineOptions file.

-exeStem
IDMM
-dir
/home/jovyan/buckets/aaw-unclassified/microsim/models/bin
-binDir
.
-dbPath
/home/jovyan/buckets/aaw-unclassified/microsim/models/bin/IDMM.sqlite
-hostFile
../../logs/2024_02_05_20_19_19_140.IDMM.ini
KrisWilliamson commented 9 months ago

There are two issues here.

Fix:

KrisWilliamson commented 9 months ago

Superseded by https://github.com/StatCan/openmpp/issues/47

KrisWilliamson commented 9 months ago

Reopened at Souheil's request.