-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Issue with object references in configuration file #53
Comments
The As for the stuck process: Please try the cobald demon and transform the example YAML config gradually. You should be able to run it with a pipeline:
- !LinearController
low_utilisation: 0.9
high_allocation: 1.1
- __type__: cobald_demo.draw_line.DrawLineHook
- __type__: cobald_demo.cpu_pool.CpuPool
interval: 1 |
I just realised that the documentation does not make it clear |
I think this is not possible for functions, right? Do we need to move to a factory class instead? |
@giffels For the time being it should be enough to register the key configuration components of TARDIS as cobald YAML plugins. |
Thank you for the quick replies! As suspected, I was just stupid: I wrote
Should the
I've used |
I think we can improve the error messages - PyYAML will let it slide when parsing but there should be an error when instantiating.
Yes, please use the old syntax where needed until we have switched everything to the new mechanism. |
Thanks a lot! |
Hi. If this isn't the right place to ask such questions please let me know.
I'm trying to set up a basic configuration. The following seems to work (based on the tutorial you gave us this summer):
If I understand the documentation correctly, this is discouraged. The preferred format is straightforward for the case of the LinearController:
But it doesn't seem to work, as running
cobald cobald_test.yml
seems to get stuck atFurthermore I'm unsure how to address TARDIS with the preferred format. I've tried:
which crashes with
This could be related to yaml/pyyaml#266 which suggests that
yaml.SafeLoader
may be the problem.I'm not sure if this is a bug or if I'm just being stupid again. I'd appreciate any pointers.
I'm running the current master of Cobald and Tardis on an up-to-date Arch Linux. Let me know if you need me to provide more information.
The text was updated successfully, but these errors were encountered: