json schema validation fails for selector profiles

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      the planner fails when i associate selector profiles in the transformation catalog
      keg_root = (
      Transformation("keg_root", site="cori", pfn=exec_path, is_stageable=True)
      .add_pegasus_profile(
      cores="1",
      runtime="1800",
      glite_arguments="--qos=regular --constraint=haswell --licenses=SCRATCH",
      )
      .add_selector_profile(execution_site=, pfn=, grid_job_type=)
      )

      I encounter the following error
      3:08
      ################

      1. pegasus-plan #
        ################
        2021.08.13 22:06:52.168 UTC: [FATAL ERROR]
        [1]: Unable to instantiate Transformation Catalog at edu.isi.pegasus.planner.catalog.transformation.TransformationFactory.loadInstance(TransformationFactory.java:164)
        [2]: edu.isi.pegasus.planner.catalog.transformation.impl.YAML caught java.lang.RuntimeException ScannerException while parsing transformation catalog at edu.isi.pegasus.planner.catalog.transformation.impl.YAML.connect(YAML.java:192)
        [3]: Error 1:{$.transformations[4].profiles.selector: is not defined in the schema and the schema does not allow additional properties},Error 2:{$.transformations[5].profiles.selector: is not defined in the schema and the schema does not allow additional properties},Error 3:{$.transformations[6].profiles.selector: is not defined in the schema and the schema does not allow additional properties} at edu.isi.pegasus.planner.parser.YAMLParser.validate(YAMLParser.java:116)
        Pegasus command: ['/opt/pegasus-5.0.1dev/bin/pegasus-plan', '--cluster', 'label', '--sites', 'cori', '--output-sites', 'local', '--output-dir', '/home/pegasus/workflows/io-synthetic/io-synthetic-1628892408/output', '--dir', '/home/pegasus/workflows/io-synthetic', '--cleanup', 'leaf', '--force', 'workflow.yml', '--json'] FAILED

            Assignee:
            Ryan Tanaka [X] (Inactive)
            Reporter:
            Tu Mai Anh Do
            Archiver:
            Rajiv Mayani

              Created:
              Updated:
              Resolved:
              Archived: