perfsonar-user - Re: [perfsonar-user] Central Measurement Archive
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Johann Hugo <>
- To: Andrew Lake <>
- Cc:
- Subject: Re: [perfsonar-user] Central Measurement Archive
- Date: Wed, 17 May 2023 09:28:46 +0200
Looks like pscheduler keeps on running (pscheduler monitor shows green tests) when I merge the json into /etc/perfsonar/psconfig/archives.d/http_logstash.json
{
"archiver": "http",
"data": {
"schema": 2,
"_url": "https://{% scheduled_by_address %}/logstash",
"verify-ssl": false,
"op": "put",
"_headers": {
"x-ps-observer": "{% scheduled_by_address %}",
"content-type": "application/json", "Authorization":"Basic cGVyZnNvbmFyOmRMRE50dmt0Q253elZNdXRlbUdr"
},
"schema": 3,
"_url": "https://perf-cm.sanren.ac.za/logstash",
"verify-ssl": false,
"op": "put",
"_headers": {
"x-ps-observer": "{% scheduled_by_address %}",
"content-type": "application/json"
},
"_meta": {
"esmond_url": "https://perf-cm.sanren.ac.za/esmond/perfsonar/archive/"
}
}
}
"archiver": "http",
"data": {
"schema": 2,
"_url": "https://{% scheduled_by_address %}/logstash",
"verify-ssl": false,
"op": "put",
"_headers": {
"x-ps-observer": "{% scheduled_by_address %}",
"content-type": "application/json", "Authorization":"Basic cGVyZnNvbmFyOmRMRE50dmt0Q253elZNdXRlbUdr"
},
"schema": 3,
"_url": "https://perf-cm.sanren.ac.za/logstash",
"verify-ssl": false,
"op": "put",
"_headers": {
"x-ps-observer": "{% scheduled_by_address %}",
"content-type": "application/json"
},
"_meta": {
"esmond_url": "https://perf-cm.sanren.ac.za/esmond/perfsonar/archive/"
}
}
}
but psconfig-pscheduler-agent is complaining about invalid archiver data.
tail -F /var/log/perfsonar/psconfig-pscheduler-agent.log
2023/05/17 09:18:50 WARN pid=4074 prog=perfSONAR_PS::PSConfig::PScheduler::Agent::_run_end line=229 guid=F101A9E8-F482-11ED-B6A0-C740E2E80815 msg=Problem adding test latencybg(ps-8-pta-unisa-10g.perfsonar.ac.za->ps-1-pta-csir-10g.perfsonar.ac.za), continuing with rest of config: BAD REQUEST: Invalid archiver data: At /: Additional properties are not allowed ('_meta' was unexpected)
2023/05/17 09:18:50 WARN pid=4074 prog=perfSONAR_PS::PSConfig::PScheduler::Agent::_run_end line=229 guid=F101A9E8-F482-11ED-B6A0-C740E2E80815 msg=Problem adding test latencybg(ps-8-pta-unisa-10g.perfsonar.ac.za->ps-12-hla-sac-10g.perfsonar.ac.za), continuing with rest of config: BAD REQUEST: Invalid archiver data: At /: Additional properties are not allowed ('_meta' was unexpected)
2023/05/17 09:18:50 WARN pid=4074 prog=perfSONAR_PS::PSConfig::PScheduler::Agent::_run_end line=229 guid=F101A9E8-F482-11ED-B6A0-C740E2E80815 msg=Problem adding test latencybg(ps-8-pta-unisa-10g.perfsonar.ac.za->ps-6-jnb-wits-10g.perfsonar.ac.za), continuing with rest of config: BAD REQUEST: Invalid archiver data: At /: Additional properties are not allowed ('_meta' was unexpected)
2023/05/17 09:18:50 WARN pid=4074 prog=perfSONAR_PS::PSConfig::PScheduler::Agent::_run_end line=229 guid=F101A9E8-F482-11ED-B6A0-C740E2E80815 msg=Problem adding test latencybg(ps-8-pta-unisa-10g.perfsonar.ac.za->ps-12-hla-sac-10g.perfsonar.ac.za), continuing with rest of config: BAD REQUEST: Invalid archiver data: At /: Additional properties are not allowed ('_meta' was unexpected)
2023/05/17 09:18:50 WARN pid=4074 prog=perfSONAR_PS::PSConfig::PScheduler::Agent::_run_end line=229 guid=F101A9E8-F482-11ED-B6A0-C740E2E80815 msg=Problem adding test latencybg(ps-8-pta-unisa-10g.perfsonar.ac.za->ps-6-jnb-wits-10g.perfsonar.ac.za), continuing with rest of config: BAD REQUEST: Invalid archiver data: At /: Additional properties are not allowed ('_meta' was unexpected)
Test results are not posted to local or central logstash archives + errors for the local esmond archives. Pscheduler is complaining about Invalid JSON returned.
/var/log/pscheduler/pscheduler.log
May 17 08:09:23 ps-8-pta-unisa journal: archiver WARNING 43552228: Gave up archiving https://ps-8-pta-unisa/pscheduler/tasks/0e843dcb-dfcf-4df9-902e-3082ff3a5c2a/runs/1ae3c79a-7600-41c8-8699-d62b8d271db7 to esmond
May 17 08:09:23 ps-8-pta-unisa journal: archiver WARNING 43552228: Gave up archiving https://ps-8-pta-unisa/pscheduler/tasks/0e843dcb-dfcf-4df9-902e-3082ff3a5c2a/runs/1ae3c79a-7600-41c8-8699-d62b8d271db7 to esmond
May 17 08:09:23 ps-8-pta-unisa journal: archiver WARNING 43552227: Failed to archive https://ps-8-pta-unisa/pscheduler/tasks/0e843dcb-dfcf-4df9-902e-3082ff3a5c2a/runs/1ae3c79a-7600-41c8-8699-d62b8d271db7 to esmond: Archiver permanently abandoned registering test after 1 attempt(s): 503: Invalid JSON returned
May 17 08:09:23 ps-8-pta-unisa journal: archiver WARNING 43552228: Gave up archiving https://ps-8-pta-unisa/pscheduler/tasks/0e843dcb-dfcf-4df9-902e-3082ff3a5c2a/runs/1ae3c79a-7600-41c8-8699-d62b8d271db7 to esmond
May 17 08:09:23 ps-8-pta-unisa journal: archiver WARNING 43552227: Failed to archive https://ps-8-pta-unisa/pscheduler/tasks/0e843dcb-dfcf-4df9-902e-3082ff3a5c2a/runs/1ae3c79a-7600-41c8-8699-d62b8d271db7 to esmond: Archiver permanently abandoned registering test after 1 attempt(s): 503: Invalid JSON returned
Any ideas ?
Regards
Johann
On Mon, May 15, 2023 at 4:10 PM Johann Hugo <> wrote:
I forgot this parttail -F /var/log/pscheduler/pscheduler.logMay 15 16:09:18 ps-2-dur-dut journal: archiver WARNING 4793372: Failed to archive https://ps-2-dur-dut/pscheduler/tasks/fb0fe1df-a6cf-4d20-942c-9a25640a97dd/runs/5086d0ac-7b6d-4a0e-a1b0-9c210a7cbdde to esmond: Archiver permanently abandoned registering test after 1 attempt(s): 503: Invalid JSON returnedOn Mon, May 15, 2023 at 3:44 PM Johann Hugo <> wrote:Hi AndyI've tried both methods on one of my testpoints, but no luck.1) Adding raw json to my PWA config:The testpoint downloads the config. "psconfig pscheduler-stats list" shows all the tests that it should run. I can see the tests under "pscheduler monitor", but all the tests are grey. See attached mesh config file created by PWA.2) Create a json archive file under /etc/perfsonar/psconfig/archives.d/With my old mesh config file the tests under "pscheduler monitor" are green. When I create a json archive file under under /etc/perfsonar/psconfig/archives.d, then the tests under "pscheduler monitor" turn grey. When I delete the json archive file (attached perf-cm.json) it will go green again.I've added the IP of my own pc to /etc/httpd/conf.d/apache-logstash.conf on the central archive server and I can see it's waiting for test results when I open https://perf-cm.sanren.ac.za/logstash, but if I tail -F /var/log/httpd/ssl_access_log only esmond results are posted to the server, no logstash results.RegardsJohannOn Fri, May 12, 2023 at 3:24 PM Andrew Lake <> wrote:Hi,You would add that to the PWA archiver config. I don’t have a PWA interface in front of me, but I believe there is a way to add raw json to the archiver config, so you should be able to use that since there will not be pulldowns for all the options (a PWA refresh is a something we are looking at currently, but still quite a ways out). Alternatively, on the measurement hosts (i.e. the host running pscheduler and doing the actual measurements) you can add the JSON from that command into a .json file) under /etc/perfsonar/psconfig/archives.d. You can name the file whatever you want as long as it ends in .json.Thanks,Andy
On May 12, 2023 at 4:31:03 AM, Johann Hugo () wrote:
Hi all--I'm trying to get a new central measurement archive running, using authentication by IP address:I've done the following:- yum install perfsonar-archive- vi /etc/httpd/conf.d/apache-logstash.confRequire ip 155.232.40.0/24- /usr/lib/perfsonar/archive/perfsonar-scripts/psconfig_archive.sh -a none -n perf-cm.sanren.ac.za{
"archiver": "http",
"data": {
"schema": 3,
"_url": "https://perf-cm.sanren.ac.za/logstash",
"verify-ssl": false,
"op": "put",
"_headers": {
"x-ps-observer": "{% scheduled_by_address %}",
"content-type": "application/json"
},
"_meta": {
"esmond_url": "https://perf-cm.sanren.ac.za/esmond/perfsonar/archive/"
}
}
}According to the docs, this is the next step:Copy above to your central pSConfig template and your measurement hosts should begin archivingI'm not sure what or how I should do this. Should I add it somewhere to the PWA json config file that the measurement hosts download, or somewhere on my archive/MadDash server ?RegardsJohann--SANReN EngineerSouth African National Research Network (SANReN)National Integrated Cyber Infrastructure System (NICIS)CSIR NextGen Enterprises and Institutions ClusterOffice: 012 841 2066Email: , Website: www.sanren.ac.za / www.csir.co.za
To unsubscribe from this list: https://lists.internet2.edu/sympa/signoff/perfsonar-user
- [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/12/2023
- Re: [perfsonar-user] Central Measurement Archive, Andrew Lake, 05/12/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/15/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/15/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/17/2023
- Re: [perfsonar-user] Central Measurement Archive, Andrew Lake, 05/17/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/17/2023
- Re: [perfsonar-user] Central Measurement Archive, Andrew Lake, 05/17/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/17/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/15/2023
- Re: [perfsonar-user] Central Measurement Archive, Johann Hugo, 05/15/2023
- Re: [perfsonar-user] Central Measurement Archive, Andrew Lake, 05/12/2023
Archive powered by MHonArc 2.6.24.