/usr/share/pegasus/schema/stampede-schema.yang is in pegasus-wms 4.0.1+dfsg-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 | module stampede-schema {
namespace "http://stampede-project.nsf.gov";
prefix "stmp"; // used when imported
import ietf-inet-types {
prefix "inet";
}
organization "STAMPEDE project. NSF grant OCI-0943705";
contact "Dan Gunter
Lawrence Berkeley National Laboratory
Email: dkgunter@lbl.gov";
reference "https://confluence.pegasus.isi.edu/display/stampede/";
revision "2012-03-14" {
description
"Updated schema compatible with Pegasus 4.0 release";
}
/*
* Derived types
* -------------
*/
// (Grid) DN
typedef distinguished-name {
type string;
}
// UUID
// eg: B7B27B5E-0221-4D90-AF5D-A325C2DD951C
// Lowercase letters (or a mix) also accepted.
typedef uuid {
type string {
length "36";
pattern "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
}
}
// Integer representation of boolean value as '0' or '1'
typedef intbool {
type uint8 {
range "0 .. 1";
}
}
// NetLogger timestamp
typedef nl_ts {
type string {
pattern '(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?'
+ '(Z|[\+\-]\d{2}:\d{2}))|(\d{1,9}(\.\d+)?)';
}
}
// Integer Pegasus job types
typedef peg_inttype {
type uint8 {
range "0 .. 11";
}
}
// Valid Pegasus Job Types as String
typedef peg_strtype{
type enumeration {
enum "unknown";
enum "compute";
enum "stage-in-tx";
enum "stage-out-tx";
enum "registration";
enum "inter-site-tx";
enum "create-dir";
enum "staged-compute"; //since 3.1 no longer generated
enum "cleanup";
enum "chmod";
enum "dax";
enum "dag";
}
}
//Valid Condor Job States i.e the various ULOG_ events
typedef condor_jobstates{
type enumeration{
enum "PRE_SCRIPT_STARTED";
enum "PRE_SCRIPT_TERMINATED";
enum "PRE_SCRIPT_SUCCESS";
enum "PRE_SCRIPT_FAILED";
enum "SUBMIT";
enum "GRID_SUBMIT";
enum "GLOBUS_SUBMIT";
enum "SUBMIT_FAILED";
enum "EXECUTE";
enum "REMOTE_ERROR";
enum "IMAGE_SIZE";
enum "JOB_TERMINATED";
enum "JOB_SUCCESS";
enum "JOB_FAILURE";
enum "JOB_HELD";
enum "JOB_EVICTED";
enum "JOB_RELEASED";
enum "POST_SCRIPT_STARTED";
enum "POST_SCRIPT_TERMINATED";
enum "POST_SCRIPT_SUCCESS";
enum "POST_SCRIPT_FAILED";
}
}
//Valid Condor Workflow States
typedef condor_wfstates{
type enumeration{
enum "WORKFLOW_STARTED";
enum "WORKFLOW_TERMINATED";
}
}
/*
* Standard fields
* ---------------
*/
grouping base-event {
description "Common components in all events";
leaf ts {
description "Timestamp, ISO8601 or numeric seconds since 1/1/1970";
mandatory true;
type nl_ts;
}
/*leaf event {
description "Unique name of event";
type string;
mandatory true;
}*/
leaf level {
description "Severity level of event. " +
"Subset of NetLogger BP levels. " +
"For '*.end' events, if status is non-zero then level should be Error.";
type enumeration {
enum Info;
enum Error;
}
}
leaf xwf.id {
description "DAG workflow id";
type uuid;
}
}
grouping base-job-inst {
uses base-event;
description "Common components for all job instance events";
leaf job_inst.id {
description "Job instance identifier i.e the submit sequence generated by monitord";
type int32;
mandatory true;
}
leaf js.id {
description "Jobstate identifier";
type int32;
}
leaf job.id {
description "Identifier for corresponding job in the DAG";
type string;
mandatory true;
}
}
grouping sched-job-inst {
uses base-job-inst;
description "Scheduled job instance";
leaf sched.id {
description "Identifier for job in scheduler";
type string;
mandatory true;
}
}
/*
* Event stream containing NetLogger events.
*
* Naming conventions:
* wf = Workflow in DAX (abstract)
* xwf = Workflow in DAG
* xsubwf = Sub-workflow in DAG
* task = DAX node
* job = DAG node
* job_inst = Runnable (Condor) job
* inv = Executable that creates an invocation record
*/
container events {
list event {
config false;
choice an_event {
container stampede.wf.plan {
uses base-event;
leaf submit.hostname {
description "The hostname of the Pegasus submit host";
type inet:host;
mandatory true;
}
leaf dax.label {
description "Label for abstract workflow specification";
type string;
default "workflow";
}
leaf dax.index {
description "Index for the DAX";
type string;
default "workflow";
}
leaf dax.version {
description "Version number for DAX";
type string;
mandatory true;
}
leaf dax.file {
description "Filename for for the DAX";
type string;
mandatory true;
}
leaf dag.file.name {
description "Filename for the DAG";
type string;
mandatory true;
}
leaf planner.version {
description "Version string for Pegasus planner, e.g. 3.0.0cvs";
type string;
mandatory true;
}
leaf grid_dn {
description "Grid DN of submitter";
type distinguished-name;
}
leaf user {
description "User name of submitter";
type string;
}
leaf submit.dir {
description "Directory path from which workflow was submitted";
type string;
mandatory true;
}
leaf argv {
description "All arguments given to planner on command-line";
type string;
}
leaf parent.xwf.id {
description "Parent workflow in DAG, if any";
type uuid;
}
leaf root.xwf.id {
description "Root of workflow hierarchy, in DAG. " +
"Use this workflow's UUID if it is the root";
type string;
mandatory true;
}
}
container stampede.static.start{
uses base-event;
}
container stampede.static.end{
uses base-event;
}
container stampede.xwf.start {
uses base-event;
leaf restart_count {
description "Number of times workflow was restarted (due to failures)";
type uint32;
mandatory true;
}
}
container stampede.xwf.end {
uses base-event;
leaf restart_count {
description "Number of times workflow was restarted (due to failures)";
type uint32;
mandatory true;
}
leaf status {
description "Status of workflow. 0=success, -1=failure";
type int16;
mandatory true;
}
}
container stampede.task.info {
description "Information about task in DAX";
uses base-event;
leaf transformation {
description "Logical name of the underlying executable";
type string;
mandatory true;
}
leaf argv {
description "All arguments given to transformation on command-line";
type string;
}
leaf type{
description "Type of task";
type peg_inttype;
mandatory true;
}
leaf type_desc {
description "String description of task type";
type peg_strtype;
mandatory true;
}
leaf task.id {
description "Identifier for this task in the DAX";
type string;
mandatory true;
}
}
container stampede.task.edge {
description "Represents child/parent relationship between two tasks in DAX";
uses base-event;
leaf parent.task.id {
description "Parent task";
type string;
mandatory true;
}
leaf child.task.id {
description "Child task";
type string;
mandatory true;
}
}
container stampede.wf.map.task_job {
description "Relates a DAX task to a DAG job.";
uses base-event;
leaf task.id {
description "Identifier for the task in the DAX";
type string;
mandatory true;
}
leaf job.id {
description "Identifier for corresponding job in the DAG";
type string;
mandatory true;
}
}
container stampede.xwf.map.subwf_job {
description "Relates a sub workflow to the corresponding job instance";
uses base-event;
leaf subwf.id {
description "Sub Workflow Identified / UUID";
type string;
mandatory true;
}
leaf job.id {
description "Identifier for corresponding job in the DAG";
type string;
mandatory true;
}
leaf job_inst.id {
description "Job instance identifier i.e the submit sequence generated by monitord";
type int32;
mandatory true;
}
}
container stampede.job.info {
description "A description of a job in the DAG";
uses base-event;
leaf job.id {
description "Identifier for job in the DAG";
type string;
mandatory true;
}
leaf submit_file {
description "Name of file being submitted to the scheduler";
type string;
mandatory true;
}
leaf type{
description "Type of task";
type peg_inttype;
mandatory true;
}
leaf type_desc {
description "String description of task type";
type peg_strtype;
mandatory true;
}
leaf clustered {
description "Whether job is clustered or not";
type intbool;
mandatory true;
}
leaf max_retries {
description "How many retries are allowed for this job before giving up";
type uint32;
mandatory true;
}
leaf task_count {
description "Number of DAX tasks for this job. " +
"Auxiliary jobs without a task in the DAX will have the value '0'";
type uint32;
mandatory true;
}
leaf executable {
description "Program to execute";
type string;
mandatory true;
}
leaf argv {
description "All arguments given to executable (on command-line)";
type string;
}
}
container stampede.job.edge {
description "Parent/child relationship between two jobs in the DAG";
uses base-event;
leaf parent.job.id {
description "Parent job";
type string;
mandatory true;
}
leaf child.job.id {
description "Child job";
type string;
mandatory true;
}
}
container stampede.job_inst.pre.start {
description "Start of a prescript for a job instance";
uses base-job-inst;
}
container stampede.job_inst.pre.term {
description "Job prescript is terminated (success or failure not yet known)";
uses base-job-inst;
}
container stampede.job_inst.pre.end {
description "End of a prescript for a job instance";
uses base-job-inst;
leaf status {
description "Status of prescript. 0 is success, -1 is error";
type int32;
mandatory true;
}
leaf exitcode{
description "the exitcode with which the prescript exited";
type int32;
mandatory true;
}
}
container stampede.job_inst.submit.start {
uses sched-job-inst;
description "When job instance is going to be submitted. " +
"Scheduler job id is not yet known";
}
container stampede.job_inst.submit.end {
uses sched-job-inst;
description "When executable job is submitted";
leaf status {
description "Status of workflow. 0=success, -1=failure";
type int16;
mandatory true;
}
}
container stampede.job_inst.held.start {
uses sched-job-inst;
description "When Condor holds the jobs";
}
container stampede.job_inst.held.end {
uses sched-job-inst;
description "When the job is released after being held";
leaf status {
description "Status of workflow. 0=success, -1=failure";
type int16;
mandatory true;
}
}
container stampede.job_inst.main.start {
uses sched-job-inst;
description "Start of execution of a scheduler job";
leaf stdin.file {
description "Path to file containing standard input of job";
type string;
//mandatory true;
}
leaf stdout.file {
description "Path to file containing standard output of job";
type string;
mandatory true;
}
leaf stderr.file {
description "Path to file containing standard error of job";
type string;
mandatory true;
}
}
container stampede.job_inst.main.term {
uses sched-job-inst;
description "Job is terminated (success or failure not yet known)";
leaf status {
description "Execution status. 0=means job terminated, -1=job was evicted, not terminated";
type int32;
mandatory true;
}
}
container stampede.job_inst.main.end {
uses sched-job-inst;
description "End of main part of scheduler job";
leaf stdin.file {
description "Path to file containing standard input of job";
type string;
}
leaf stdout.file {
description "Path to file containing standard output of job";
type string;
mandatory true;
}
leaf stdout.text {
description "Text containing output of job";
type string;
}
leaf stderr.file {
description "Path to file containing standard error of job";
type string;
mandatory true;
}
leaf stderr.text {
description "Text containing standard error of job";
type string;
}
leaf user {
description "Scheduler's name for user";
type string;
}
leaf site {
description "DAX name for the site at which the job ran";
type string;
mandatory true;
}
leaf work_dir {
description "Path to working directory";
type string;
}
leaf local.dur {
description "Duration as seen at the local node";
units "seconds";
type decimal64 {
fraction-digits "6";
}
}
leaf status {
description "Execution status. 0=success, -1=failure";
type int32;
mandatory true;
}
leaf exitcode{
description "the exitcode with which the executable exited";
type int32;
mandatory true;
}
leaf multiplier_factor{
description "the multiplier factor for use in statistics";
type int32;
mandatory true;
}
// These values will be set if the job is clustered.
leaf cluster.start {
description "When the enclosing cluster started";
type nl_ts;
}
leaf cluster.dur {
description "Duration of enclosing cluster";
units "seconds";
type decimal64 {
fraction-digits "6";
}
}
}
container stampede.job_inst.post.start {
description "Start of a postscript for a job instance";
uses sched-job-inst;
}
container stampede.job_inst.post.term {
description "Job postscript is terminated (success or failure not yet known)";
uses sched-job-inst;
}
container stampede.job_inst.post.end {
description "End of a postscript for a job instance";
uses sched-job-inst;
leaf status {
description "Status of postscript. 0 is success, -1=failure";
type int32;
mandatory true;
}
leaf exitcode{
description "the exitcode with which the postscript exited";
type int32;
mandatory true;
}
}
container stampede.job_inst.host.info {
description "Host information associated with a job instance";
uses base-job-inst;
leaf site {
description "Site name";
type string;
mandatory true;
}
leaf hostname {
description "Host name";
type inet:host;
mandatory true;
}
leaf ip {
description "IP address";
type inet:ip-address;
mandatory true;
}
leaf total_memory {
description "Total RAM on host";
type uint64;
/* mandatory true; */
}
leaf uname {
description "Operating system name";
type string;
/* mandatory true; */
}
}
container stampede.job_inst.image.info {
description "Image size associated with a job instance";
uses base-job-inst;
leaf size {
description "Image size";
type uint64;
}
leaf sched.id {
description "Identifier for job in scheduler";
type string;
mandatory true;
}
}
container stampede.inv.start {
description "Start of an invocation";
uses base-event;
leaf job_inst.id {
description "Job instance identifier i.e the submit sequence generated by monitord";
type int32;
mandatory true;
}
leaf job.id {
description "Identifier for corresponding job in the DAG";
type string;
mandatory true;
}
leaf inv.id {
description "Identifier for invocation. " +
"Sequence number, with -1=prescript and -2=postscript";
type int32;
mandatory true;
}
}
container stampede.inv.end {
description "End of an invocation";
uses base-event;
leaf job_inst.id {
description "Job instance identifier i.e the submit sequence generated by monitord";
type int32;
mandatory true;
}
leaf inv.id {
description "Identifier for invocation. " +
"Sequence number, with -1=prescript and -2=postscript";
type int32;
mandatory true;
}
leaf job.id {
description "Identifier for corresponding job in the DAG";
type string;
mandatory true;
}
leaf start_time{
description "The start time of the event";
type nl_ts;
}
leaf dur {
description "Duration of invocation";
units "seconds";
type decimal64 {
fraction-digits "6";
}
}
leaf remote_cpu_time {
description "remote CPU time computed as the stime + utime";
units "seconds";
type decimal64 {
fraction-digits "6";
}
}
leaf exitcode{
description "the exitcode with which the executable exited";
type int32;
}
leaf transformation {
description "Transformation associated with this invocation";
type string;
mandatory true;
}
leaf executable {
description "Program executed for this invocation";
type string;
mandatory true;
}
leaf argv {
description "All arguments given to executable on command-line";
type string;
}
leaf task.id {
description "Identifier for related task in the DAX";
type string;
}
}
} // choice
} // event
} // events
}
|