- edited description
- changed status to open
Machine entry in defs.local.ini but not in mdb leads to bad error message
If I have an entry for my local machine in defs.local.ini but I do not have an mdb file for it, I get the following error:
MacBook:llama ian$ sim2 sync datura Error: required key basedir in section macbook is missing
This does not tell me what the problem is. I would expect to get the same error as when the section is not present:
MacBook:llama ian$ sim2 sync damiana Unknown machine name macbook Info: Simfactory command: simfactory2/bin/../lib/sim.py "sync" "damiana" Info: Version 1230 The Simulation Factory: Manage Cactus simulations
Info: defs: /Users/ian/Cactus/llama/simfactory2/etc/defs.ini Info: defs.local: /Users/ian/Cactus/llama/simfactory2/etc/defs.local.ini Error: Unknown local machine macbook. Please use 'sim setup' to create a local machine entry from the generic template.
Keyword:
Comments (5)
-
-
One downside of this change is that a misspelled entry in defs.local.ini will only trigger a warning now while before it would have aborted simfactory, eg a section
[stammpede2] user = rhaas
(with an extra “b”) will only trigger a warning about an incomplete machine “stammpede2” while before it would have aborted with “stammpede2” missing some keys.
-
- changed status to resolved
Applied as git hash 4d47a1c "simdb: remove incomplete udb entries with warning" of simfactory2
-
- changed status to open
This needed to be amended (in a5f0e5c) to skip syntax checks until defs.local.ini exists. This happens to be what simfactory also did before, however this can lead to bad behaviour on clusters where one can submit a job without ever running
sim init
and thus never creating defs.local.ini and thus never setting user, email or account. -
- changed status to resolved
- Log in to comment
Pull request is here: https://bitbucket.org/simfactory/simfactory2/pull-requests/38/rhaas-udbwarnings/diff
The commit of interest is "simdb: remove incomplete udb entries with warning" with the others setting things up and / or removing some strange behaviour.