Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TWAMP measurements config issue #150

Open
igarny opened this issue Dec 18, 2024 · 1 comment
Open

TWAMP measurements config issue #150

igarny opened this issue Dec 18, 2024 · 1 comment

Comments

@igarny
Copy link

igarny commented Dec 18, 2024

So I am not able to report the issue on 5.2, I just realized I have not upgraded it from the 5.1.4...
the issue I report now is on 5.1.4, since the upgrade from to Snapshot 5.2 on Ubuntu22 completed successfully, but pSconfig gives me Traceback errors.

I'll repeat the install of 5.1.4 and then upgrade to 5.2 later so to document the upgrade, but here are my findings from 5.1.4

  "tasks": {
     "Task-twmp4-": {
        "_meta": {
           "display-name": "IPv4 TWAMP"
        },
        "priority": 10,
        "group": "gr_owd4",
        "test": "tst_twamp_4",
        "schedule": "schedule_20m_start",
        "tools": [
          "twping"
        ]
      }
  },

  "tests": {
     "tst_twamp_4": {
       "type": "latency",
       "spec": {
          "source": "{% address[0] %}",
          "source-node": "{% pscheduler_address[0] %}",
          "dest": "{% address[1] %}",
          "packet-interval": 0.01,
          "data-ports": {"upper": 64700, "lower": 64600},
          "packet-padding": 1000,
          "bucket-width": 0.001,
          "packet-count": 500,
          "ip-version": 4
       }
     },

Error:

2024-12-18 14:50:02 WARNING pid=528537 prog=_run_end line=215 guid=6aabbd9d-6266-40da-953b-a1b9eaa08396 msg=Problem adding test latency(t2-psde v.rrze.uni-erlangen.de->psbrix.rrze.uni-erlangen.de), continuing with rest of config: BAD REQUEST. Status Code: 400Invalid task specification: At //schema: 1 is not one of [2]
2024-12-18 14:50:02 WARNING pid=528537 prog=_run_end line=215 guid=6aabbd9d-6266-40da-953b-a1b9eaa08396 msg=Problem adding test latency(t2-psde v.rrze.uni-erlangen.de->psbrix.rrze.uni-erlangen.de), continuing with rest of config: BAD REQUEST. Status Code: 400Invalid task specification: At //schema: 1 is not one of [2]
2024-12-18 14:50:02 INFO pid=528537 prog= line=112 guid=6aabbd9d-6266-40da-953b-a1b9eaa08396 msg=Agent completed running
2024-12-18 14:50:02 INFO pid=528537 prog= line=127 guid=6aabbd9d-6266-40da-953b-a1b9eaa08396 msg=Time until next record refresh is 3592

root@ps52-snap:~# psconfig validate /shared/tst--pscfg-ps.json
Loading config ...... OK
Validating JSON schema ...... OK
Verifying object references ...... OK
pScheduler Validation (Quick): 25%|в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–Ћ pScheduler Validation (Quick): 50%|в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–pScheduler Validation (Quick): 75%|в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–Љ [00:03<pScheduler Validation (Quick): 100%|в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€в–€вpScheduler Validation (Quick) ...... OK

pSConfig JSON is valid

@igarny
Copy link
Author

igarny commented Dec 18, 2024

I have tried also to add a schema parameter like this:

  "tasks": {
     "Task-twmp4-": {
        "_meta": {
           "display-name": "IPv4 TWAMP"
        },
        "priority": 10,
		"schema": 2,
        "group": "gr_owd4",
        "test": "tst_twamp_4",
        "schedule": "schedule_20m_start",
        "tools": [
          "twping"
        ]
      }
  },

  "tests": {
     "tst_twamp_4": {
       "type": "latency",
       "spec": {
          "source": "{% address[0] %}",
          "source-node": "{% pscheduler_address[0] %}",
          "dest": "{% address[1] %}",
          "packet-interval": 0.01,
          "data-ports": {"upper": 64700, "lower": 64600},
          "packet-padding": 1000,
          "bucket-width": 0.001,
          "packet-count": 500,
          "ip-version": 4
       }
     },

Error:

2024-11-30 14:22:35 ERROR pid=293 prog=_log_validation_error line=628 guid=3565e437-9496-4810-91a2-932bceae3160 config_src=remote config_url=/var/www/html/tst--pscfg-ps.json expanded=False transformed=False category=psconfig_schema_validation_error json_path=tasks/Task-twmp4- msg=Additional properties are not allowed ('schema' was unexpected)
2024-11-30 14:22:35 INFO pid=293 prog= line=112 guid=3565e437-9496-4810-91a2-932bceae3160 msg=Agent completed running
2024-11-30 14:22:35 INFO pid=293 prog= line=127 guid=3565e437-9496-4810-91a2-932bceae3160 msg=Time until next record refresh is 3596.2336797714233 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant