Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1799

json schema validation fails for selector profiles

    XMLWordPrintable

Details

    Description

      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
      ################
      # 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

      Attachments

        Activity

          People

            tanaka Ryan Tanaka
            tudo Tu Mai Anh Do
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: