Skip to content

Add dome_config for runtime config read and update

Petr Vokac requested to merge vokac/dmlite:dome_config into develop

Provide interface that can be used to read and update DOME configuration. The scope of updated configuration is limited to the direct usage of CFG singleton plus specific configuration options are modified individualy (e.g. log level).

You can modify configuration by using simple curl command with sufficient privileges to access DOME API, e.g.

curl -L -X POST \
  --key /etc/grid-security/hostkey.pem \
  --cert /etc/grid-security/hostcert.pem \
  --capath /etc/grid-security/certificates \
  -H "Content-type: application/json" \
  --data '{"name": "glb.debug", "value": "4"}' \
  https://dpmhead.example.com:1094/domehead/command/dome_config'

can be used to set log level to maximum value 4.

Merge request reports