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

SERVICE_TYPE is not a valid string #581

Open
nbastin opened this issue Jul 14, 2017 · 1 comment
Open

SERVICE_TYPE is not a valid string #581

nbastin opened this issue Jul 14, 2017 · 1 comment

Comments

@nbastin
Copy link

nbastin commented Jul 14, 2017

The SERVICE_TYPE member returned from lookup is not one of the strings returned from 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'}
@tcmitchell
Copy link
Member

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.

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

No branches or pull requests

2 participants