-
Notifications
You must be signed in to change notification settings - Fork 10
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
suite: config_yaml
should contain yaml content instead of path/to/yaml
#44
Comments
I'd like to work on this issue. So basically instead of the YAML file path the request would contain the contents of the file, and we need to save it as a temporary file (something like |
Correct! You can create the temporary file using https://docs.python.org/3/library/tempfile.html and then delete it after the scheduling is finished. |
Understood, I'll take a look at this library and start working on it! |
I looked at the after writing the YAML content to this tmp, we can pass it on to the |
Yes, that sounds good! Like in our docker setup, we use this yaml config while scheduling: https://github.com/ceph/teuthology/blob/main/docs/docker-compose/teuthology/containerized_node.yaml Also it's possible to get multiple configs which is why "<config_yaml>" param is a list in /suite schema. So you'll probably want to create a new file for every config and then send path of each temp file to |
So after creating temporary files for all configs, I should replace the |
can i work on this? @VallariAg |
@Devansh3712 sorry for late reply! And yes, you pass the path of all the temporary config files like: @octonawish-akcodes please check with Devansh if he's still working on this issue. |
understood, and yes i'm working on this issue |
Route /suite has
<config_yaml>
in request schema. It takes path to the yaml config file in the data body, for example:teuthology-api/src/teuthology_api/schemas/suite.py
Line 44 in 9af7fb0
This would mean that the config file should already exist on t-api's server. For more practical use-case, we can accept a string with the yaml config content. After receiving a request, teuthology-api can save this yaml content in a temporary file and then pass path to that file to
teuthology.suite.main
function.The text was updated successfully, but these errors were encountered: