perfsonar / psconfig

Configures perfSONAR tests from a central source in an extensible way.
Apache License 2.0
4 stars 2 forks source link

Archive spec schemas don't work. #98

Closed mfeit-internet2 closed 9 months ago

mfeit-internet2 commented 2 years ago

@szymontrocha reported that he was unable to use the pScheduler archive spec's label feature in his pSConfig file:

"archives": {
        "pmp-central.geant.org": {
            "schema": 3,
            "archiver": "esmond",
            "label": "pmp-central-ma",
            "data": {
                "measurement-agent": "{% scheduled_by_address %}",
                "url": "https://pmp-central.geant.org/esmond/perfsonar/archive/"
            }
        }
    },

# psconfig validate pscfg-psmall.json
Loading template ...... OK
Validating JSON schema ...... FAIL

pSConfig JSON is not valid. Encountered the following validation errors:

   Node: /archives/pmp-central.geant.org
   Error: Properties not allowed: label, schema.

The best I can figure from a short dive into pSConfig is that it has its own validator for the archive spec and passed the data blob to pScheduler for validation. That's the correct thing to do, but pSConfig's validator has to keep up with pScheduler's.

Ergo: