perfsonar / esmond

A measurement archive for collecting time series metrics from networks.
Other
10 stars 9 forks source link

Skip non-registered event_type; pscheduler-run-href #77

Closed msjang closed 5 years ago

msjang commented 6 years ago

Current esmond-ps-get-bulk raise error on a non-registered event type; pscheduler-run-href.

esmond-ps-get-bulk -o csv -u http://PS_ARCHIVE -S 2018-07-01 -E 2018-07-31 -v
...
Traceback (most recent call last):
  File "PYENV/ESMOND_ENV/bin/esmond-ps-get-bulk", line 104, in <module>
    main()
  File "PYENV/ESMOND_ENV/bin/esmond-ps-get-bulk", line 83, in main
    header, data = data_format_factory(options_wrap, seed_bulk_output=True)(conn)
  File "PYENV/2.7.15/envs/ESMOND_ENV/lib/python2.7/site-packages/esmond_client/perfsonar/util.py", line 607, in data_format_factory
    return format_map.get(event_format(options.type))
  File "PYENV/2.7.15/envs/ESMOND_ENV/lib/python2.7/site-packages/esmond_client/perfsonar/util.py", line 66, in event_format
    return EVENT_MAP[etype]
KeyError: u'pscheduler-run-href'
arlake228 commented 5 years ago

We actually just need to release a new version of the lib that has that event type registered. Its already there, so just need to upload to Pypy