Skip to content
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

Yaml support #1461

Open
wants to merge 3 commits into
base: b4.4
Choose a base branch
from
Open

Yaml support #1461

wants to merge 3 commits into from

Conversation

nick-enoent
Copy link
Collaborator

@nick-enoent nick-enoent commented Oct 8, 2024

Support for YAML configuration files for LDMSD.
YAML configuration file allows configuration of an entire cluster in a single YAML file.
Add -y option to LDMSD CLI that loads a YAML configuration file in the same manner as "-c" for LDMS v4 configuration files.
The -y option parses a YAML cluster file and applies relevant configuration to a specific daemon.
New command ldmsd_yaml_parser command that can generate v4 configuration files from a YAML file.

@nick-enoent nick-enoent self-assigned this Oct 8, 2024
@tom95858
Copy link
Collaborator

tom95858 commented Oct 9, 2024

@nick-enoent could you take a look at these build failures?

if (lineno)
strcat(cfg_str, cstr);
else
snprintf(cfg_str, sizeof(cstr), cstr);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nick-enoent this sizeof(cstr) is 8, not 256 like you intended. This is what is breaking the build.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in the latest commit.

Rename ClusterCtrl to YamlCfg
Move YamlCfg to parser_util.py
Remove maestro-specific functionailty from YamlCfg
Support for advertisers and producer listeners in YAML configuration file
Support for multiple yaml files on configuration line
Update error handling in parser_util.c
Update error handling in __process_yaml_config_file
@nick-enoent
Copy link
Collaborator Author

@nick-enoent could you take a look at these build failures?

Done.

@nick-enoent nick-enoent marked this pull request as ready for review October 30, 2024 00:58
Copy link
Collaborator

@narategithub narategithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tom95858
Copy link
Collaborator

tom95858 commented Nov 1, 2024

@nick-enoent could you please remove the [wip] from the description and I will accept this?

@nick-enoent nick-enoent changed the title [WIP] Yaml support Yaml support Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants