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

Inbound tests results are not properly archived for display #486

Open
jprorama opened this issue Aug 15, 2024 · 0 comments · Fixed by #488
Open

Inbound tests results are not properly archived for display #486

jprorama opened this issue Aug 15, 2024 · 0 comments · Fixed by #488
Assignees

Comments

@jprorama
Copy link

After a fresh install of the toolkit 5.1.2 on Ubuntu 22.04 setting up a scheduled test via the UI results in only outbound results to the test host being archived in the grafana interface.

This seems to be a result of the logstash archive config

The file /etc/perfsonar/psconfig/archives.d/http_logstash.json lists the url as "http://localhost/logstash". This is a configuration that is included along with scheduled test registration on the remote host. This appears to cause the inbound tests results to be posted to the remote hosts logstash (ie. localhost for it). This attempt fails either due to credential errors or record missmatch errors.

There are two plaes in the code that look like they are intend to specify the correct host-based logstash url . For some reason this code isn't been executed properly.

$ grep -r :11283 *
toolkit/perfsonar-toolkit/archive/http_logstash.json:        "_url": "http://localhost:11283",
toolkit/perfsonar-toolkit/unibuild-packaging/rpm/perfsonar-toolkit.spec:        sed -i "s|http://localhost:11283|https://{% scheduled_by_address %}/logstash|g" /etc/perfsonar/psconfig/archives.d/http_logstash.json
toolkit/perfsonar-toolkit/unibuild-packaging/deb/perfsonar-toolkit-archive-utils.postinst:            sed -i "s|:11283|/logstash|g" /etc/perfsonar/psconfig/archives.d/http_logstash.json

Based on the above, this may only be an error with the deb versions. However, I suspect it was an error prior to 5.1.2 rpm release and that's how my Alama9 auto-upgraded install may have inherited it.

@github-project-automation github-project-automation bot moved this to Ready in perfSONAR Aug 15, 2024
jprorama added a commit to jprorama/perfsonar-toolkit that referenced this issue Aug 20, 2024
Fixes perfsonar#486

The archive url should be the hostname of the node that schedules the test.
Update the sed re-write two match the same as on RPM builds using the
template parameter {% scheduled_by_address %} and the public /logstash
path rather than the default localhost and port.
@laeti-tia laeti-tia self-assigned this Nov 26, 2024
@arlake228 arlake228 moved this from Ready to In Review in perfSONAR Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

2 participants