Open nbastin opened 7 years ago
The SERVICE_TYPE member returned from lookup is not one of the strings returned from get_version:
SERVICE_TYPE
lookup
get_version
{'SERVICE_CERT': '/usr/share/geni-chapi/sr/certs/wvn-eg.pem', 'SERVICE_DESCRIPTION': 'WVNET ExoGENI Rack', 'SERVICE_NAME': 'WVNET ExoGENI', 'SERVICE_TYPE': 0, 'SERVICE_URL': 'https://wvn-hn.exogeni.net:11443/orca/xmlrpc', 'SERVICE_URN': 'urn:publicid:IDN+exogeni.net:wvnvmsite+authority+am', '_GENI_SERVICE_ATTRIBUTES': {'SPEAKS_FOR': 't', 'UI_AM_CAT': 'ui_experimental_cat ui_compute_cat', 'UI_AM_TYPE': 'ui_exogeni_am'}, '_GENI_SERVICE_CERT_FILENAME': '/usr/share/geni-chapi/sr/certs/wvn-eg.pem', '_GENI_SERVICE_ID': 417, '_GENI_SERVICE_SHORT_NAME': 'wvn-eg’},
get_version listed types:
{'API_VERSIONS': {'2': 'https://ch.geni.net:8444/CH'}, 'FIELDS': {'_GENI_SERVICE_ATTRIBUTES': {'OBJECT': 'SERVICE', 'TYPE': 'DICTIONARY'}, '_GENI_SERVICE_CERT_FILENAME': {'OBJECT': 'SERVICE', 'TYPE': 'STRING'}, '_GENI_SERVICE_ID': {'OBJECT': 'SERVICE', 'TYPE': 'INTEGER'}, '_GENI_SERVICE_SHORT_NAME': {'OBJECT': 'SERVICE', 'TYPE': 'STRING'}}, 'IMPLEMENTATION': {'code_release_date': '2017-06-21 10:51:50.749988', 'code_url': 'https://github.com/GENI-NSF/geni-ch', 'code_version': '2.20', 'site_update_date': '2017-06-21 10:51:50.749988'}, 'SERVICES': ['SERVICE'], 'SERVICE_TYPES': ['PROJECT_AUTHORITY', 'AUTHORIZATION_SERVICE', 'CERTIFICATE_AUTHORITY', 'KEY_MANAGER', 'CREDENTIAL_STORE', 'MEMBER_AUTHORITY', 'SLICE_AUTHORITY', 'WIMAX_SITE', 'AGGREGATE_MANAGER', 'LOGGING_SERVICE', 'IRODS'], 'VERSION': '2'}
There's enough information in CH_constants.py to do the mapping from integer to string. The mapping would need to happen in ServiceRegistry.py.
The
SERVICE_TYPE
member returned fromlookup
is not one of the strings returned fromget_version
:get_version
listed types: