perfsonar-user - Re: [perfsonar-user] Problem with getting pscheduler tasks to archive locally
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Mark Feit <>
- To: Brian Tehan <>, "" <>
- Subject: Re: [perfsonar-user] Problem with getting pscheduler tasks to archive locally
- Date: Mon, 24 Jul 2023 19:20:41 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=internet2.edu; dmarc=pass action=none header.from=internet2.edu; dkim=pass header.d=internet2.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZMl/MPEuz0kvlm5LCm52wsL0L3tISdWGtapYVgKkFJ8=; b=QWUukXjCSyiyrXDjJUVK3y4OdChtN3eof65mdt3ni/XW4LlxVPTQE61rTgBDP3mIT9ucc/SvfJ9z9GhUCkdWnDZwRn4/AB2+tk5yxcZqdO/Meyrb9+JRHCwHvW0TdWOUjTdlDQQ0Frml8DPbAhif5iTCpIHoErKI+HhbVEfW64QIj21EPqqDs1SHrmwdyqDS/t3GEAolnBrnz3bkNMTYMEjvaSKC+kwGkeI5gvH5yFw3wCz/tMOnb1qUv3MUmkUUsi/3TDs4Dpt2/oH5PHUMGeKNafS/YP+ue7UrjVRswYl8ZsQ6vcTnsT3oVocsSX1NhjdE3TOck2sdk93gJt0R5w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f46P9UqsUpKgo/78ydQSd0T9q0FLxI+qiDN68jql3wNWSlb72DDwrwbgW16WgJnRRnB7lmhGO3wl1HiCQYfkdGb3L4N7V+91zfrUPcFXMzlfcxjG4OlSo1h7Rhdb1azY28mr+Mln5xoyfSmObn+3NYRPjAZtwJ4TTRyInuPffAYcWqkbKEFszFOpL4DZ/g35z+JPWTUqPxHX96/1a6jVPXyJDU1X473EfAq1544qM0T8gyGlgx7+s6sMgPsliO/jU7Q3+lXI5PkQtEa1kY8MLok/3+B5wprsgL/i9yoX4nDlvEBraCalMG50ECJsmxQefVqm6eEv4T3xRFU9cHNdgg==
Brian Tehan writes:
I saw that
archiving tasks has changed, I ran the “/usr/lib/perfsonar/archive/perfsonar-scripts/psconfig_archive.sh -n localhost > local_archive.json” command. I then attempted to run another pscheduler throughput task following the example given but it errors out: pscheduler task --archive @local_archive.json --slip PT1H --sliprand --repeat-cron "36 0-5 * * *" throughput --source 162.127.1.81 --dest 162.127.1.1 --duration PT30S --bandwidth 3221225472 --ip-version 4 --omit PT5S Unable to read archive file: [Errno 2] No such file or directory: 'local_archive.json'
The bit of code that interprets the “@local_archive.json” strips off the @, does user expansion on the rest (see https://docs.python.org/3/library/os.path.html#os.path.expanduser) and opens whatever path comes out of that. The text in the error messages says it was correctly interpreted as “local_archive.json” and, while I hate to ask such an obvious question, I need to. Does that file actually exist?
I’ll have to check to be sure, but I think the only tasks that show up in the toolkit GUI are those that were set up there. Ad hoc tests from the CLI don’t.
There is a handy “pscheduler monitor” command that will give you a real-time, top(1)-like display of what pScheduler is doing.
I feel that I’ve got something wrong in my pscheduler commands and that’s why the data isn’t being archived. Does anyone have an example of a pscheduler CLI command that archives locally that they could share, please?
A better thing would be to run the task giving you trouble again, grab the run URL the CLI shows and hand it to “pscheduler result --archivings RUN-URL”. That will dump out diagnostics for where each archiving went that include success or failure and any diagnostic information the archiver provided. Your archive spec might be valid and the problem is being caused by something else.
--Mark
|
- [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Brian Tehan, 07/24/2023
- Re: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Mark Feit, 07/24/2023
- RE: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Brian Tehan, 07/27/2023
- Re: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Mark Feit, 07/27/2023
- RE: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Brian Tehan, 07/27/2023
- Re: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Mark Feit, 07/27/2023
- RE: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Brian Tehan, 07/27/2023
- Re: [perfsonar-user] Problem with getting pscheduler tasks to archive locally, Mark Feit, 07/24/2023
Archive powered by MHonArc 2.6.24.