Skip to content

CIP-1308 Add simulation_mode logic to MCS Controller

Mae requested to merge cip-1308-lmc-to-mcs-interface-issues into main

Add logic check in the MCS's controller_component_manager.py On and Off commands to execute the part of the code that reads in from the talondx-config.json file only if not running in simulation mode.

Also addressed permission issue seen with the talondx-config.json:

File "/home/tango/.local/lib/python3.7/site-packages/ska_mid_cbf_mcs/controller/controller_device.py", line 578, in do E (result_code, message) = self.target.component_manager.on() E File "/home/tango/.local/lib/python3.7/site-packages/ska_mid_cbf_mcs/controller/controller_component_manager.py", line 690, in on E "talondx-config.json", E PermissionError: [Errno 13] Permission denied: '/app/mnt/talondx-config/talondx-config.json'

The 3 talondx-config.json files in MCS were 640 (rw-r-----) but needed to be 644 (rw-r--r--). However, since Git doesn't recognize files have been updated if you update their read/write permissions, in order to get these updates into git, I added or removed whitespace in those files.

Edited by Mae

Merge request reports