cback <agent> agent --disabled/enabled need to be reworked
cback/model/agents/agent.py +141cback/model/agents/agent.py +141 target line is here, the agent is actually disabled:
2024-05-17 11:44:17 INFO /usr/lib/python3.9/site-packages/cback/model/agents/agent.py:141 > agent enabled pid=1058614 agent=backup id=0 reason=example reason
[11:44][root@devstack-cback-71abd95b7d (ceph_devstack:cback/dev) ~]# cback backup agent --enable
2024-05-17 11:44:28 INFO /usr/lib/python3.9/site-packages/cback/model/agents/agent.py:120 > agent enabled pid=1058626 agent=backup id=0
[11:44][root@devstack-cback-71abd95b7d (ceph_devstack:cback/dev) ~]#
but its not clear from the cli output, this should be clearer, as should be the reason
field in cback <agent> disable <reason>
likewise, there is no option to pass a specific agent id
therefore while the system works, you can only ever disable a cli spawned agent, not a systemd one.
Edited by Zachary Goggin