Skip to content

OSG_autoconf: Externalize GLIDEIN_SUPPORTED_VO_MAP and support default uppercase mapping #593

@mmascher

Description

@mmascher

Is your feature request related to a problem? Please describe.
Currently, the GLIDEIN_SUPPORTED_VO_MAP is hardcoded in config_util.py. This makes it inflexible and requires code changes every time we want to update or extend the VO mappings. Additionally, maintaining the full list in the codebase increases the risk of it becoming outdated or inconsistent.

Describe the solution you'd like

  • Make the VO map configurable (e.g., via a configuration file or external source).
  • If a VO mapping is missing, fall back to converting the original value to uppercase instead of failing, reducing the need to keep an exhaustive mapping in the code.

Info (please complete the following information):

  • Priority: medium
  • Stakeholders: OSG, FactoryOps
  • Components: factory

Additional context
The current GLIDEIN_SUPPORTED_VO_MAP looks like this:

GLIDEIN_SUPPORTED_VO_MAP = {
    "atlas": "ATLAS",
    "cdf": "CDF",
    "cigi": "CIGI",
    "cms": "CMS",
    "engage": "EngageVO",
    "des": "DES",
    "dune": "DUNE",
    "fermilab": "Fermilab",
    "glow": "glowVO",
    "gluex": "GLUEX",
    "hcc": "HCC",
    "icecube": "IceCube",
    "lbne": "LBNE",
    "ligo": "LIGO",
    "lsst": "LSST",
    "minos": "MINOS",
    "mis": "MIS",
    "nanohub": "nanoHUB",
    "nebiogrid": "NEBioGrid",
    "nees": "NEES",
    "nova": "Nova",
    "nwicg": "NWICG",
    "sbgrid": "SBGrid",
    "osg": "OSGVO",
    "osgedu": "OSGEDU",
    "uc3": "UC3VO",
    "virgo": "VIRGO",
}

I’d like to shorten this map by only keeping exceptions and letting all other values be converted to uppercase automatically.

Metadata

Metadata

Assignees

Labels

FEATUREFor FEATURESMediumMedium priorityfactoryfor affected componentfactoryopsFactory Operations stakeholderosgOSG stakeholder

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions