We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just ran into this problem at Penn. There was a subtle typo in the configuration of a new Agent, 'agent-class' was typo'd to 'agent_class'.
'agent-class'
'agent_class'
The agent-class matching loops over all agent blocks in the SCF and will hit a KeyError when it can't find the 'agent-class' key.
KeyError
ocs/ocs/site_config.py
Lines 491 to 501 in 076105e
Here's an abbreviated log with a print(dev) before line 495 (where I've just trimmed other valid agent configs):
print(dev)
2022-06-22T23:14:54+0000 {'agent-class': 'CrateAgent', 'instance-id': 'crate1-monitor', 'manage': 'docker', 'arguments': [['--shm-addr', '[email protected]'], ['--crate-id', 'crate1']]} 2022-06-22T23:14:54+0000 {'agent-class': 'DLMAgent', 'instance-id': 'dlm', 'manage': 'docker', 'arguments': [['--ip-address', '10.10.10.21'], ['--port', '9221']]} 2022-06-22T23:14:54+0000 {'agent_class': 'starcam_Agent', 'instance-id': 'starcam', 'manage': 'docker', 'arguments': [['--ip-address', '10.10.10.167'], ['--user-port', '8000']]} 2022-06-22T23:14:54+0000 Traceback (most recent call last): 2022-06-22T23:14:54+0000 File "influxdb_publisher.py", line 160, in <module> 2022-06-22T23:14:54+0000 args = site_config.parse_args(agent_class='InfluxDBAgent', parser=parser) 2022-06-22T23:14:54+0000 File "/usr/local/lib/python3.8/dist-packages/ocs/site_config.py", line 718, in parse_args 2022-06-22T23:14:54+0000 site, host, instance = get_config(pre_args, agent_class=agent_class) 2022-06-22T23:14:54+0000 File "/usr/local/lib/python3.8/dist-packages/ocs/site_config.py", line 496, in get_config 2022-06-22T23:14:54+0000 if dev['agent-class'] == agent_class: 2022-06-22T23:14:54+0000 KeyError: 'agent-class'
The side-effect is any Agent relying on this matching to know it's config will not start-up.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just ran into this problem at Penn. There was a subtle typo in the configuration of a new Agent,
'agent-class'
was typo'd to'agent_class'
.The agent-class matching loops over all agent blocks in the SCF and will hit a
KeyError
when it can't find the'agent-class'
key.ocs/ocs/site_config.py
Lines 491 to 501 in 076105e
Here's an abbreviated log with a
print(dev)
before line 495 (where I've just trimmed other valid agent configs):The side-effect is any Agent relying on this matching to know it's config will not start-up.
The text was updated successfully, but these errors were encountered: