Version information
The LMC controller device is able to give the version information of the currently running SDP system. This information includes the component version information.
The version information is returned as a string. It shows only the enabled components. If a new version of the components is deployed, or a new version of the SDP is deployed, then this version information will update.
Usage
To get the version information you need to access the controller device via the Tango interface.
For example using ITango:
In [1]: import json
In [2]: controller = Device("test-sdp/control/0")
In [3]: json.loads(controller.sdpVersion)
Out[3]:
{'version': '1.2.3',
'components': {'console': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-console',
'version': '1.0.1'},
'dsconfig': {'devicename': None,
'image': 'artefact.skao.int/ska-tango-images-tango-dsconfig',
'version': '1.5.13'},
'etcd': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-etcd',
'version': '3.5.12'},
'helmdeploy': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-helmdeploy',
'version': '1.0.2'},
'lmc-controller': {'devicename': 'test-sdp/control/0',
'image': 'artefact.skao.int/ska-sdp-lmc',
'version': '1.0.1'},
'lmc-queueconnector-01': {'devicename': 'test-sdp/queueconnector/01',
'image': 'artefact.skao.int/ska-sdp-lmc-queue-connector',
'version': '5.4.0'},
'lmc-subarray-01': {'devicename': 'test-sdp/subarray/01',
'image': 'artefact.skao.int/ska-sdp-lmc',
'version': '1.0.1'},
'proccontrol': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-proccontrol',
'version': '1.1.1'},
'qa-api': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-qa-data-api',
'version': '1.2.1'},
'qa-display': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-qa-display',
'version': '1.2.0'},
'slurmdeploy': {'devicename': None,
'image': 'artefact.skao.int/ska-sdp-slurmdeploy',
'version': '0.3.1'}},
'dependencies': {}}