Steps to reproduce:
1. start matterhorn server without demo_capture_agent modules
2. delete demo capture agent
3. restart matterhorn – it will be back there again...
on Capture Agents, "demo_capture_agent" entry will be present
tab Capture Agents supposed to be empty
Workaround (if any):
delete demo_capture_agent every time - you restart the server
What is causing this:
somewhere in CaptureAgentStateServiceImpl.java there is a persistance manager initalized,
and I am not sure where but capture agent is referenced and name from:
is used as default.... I haven't tracked that more than just matterhorn-capture-agent-service-impl starting.
16:36:26 INFO (CaptureAgentStateServiceImpl:131) - CaptureAgentStateServiceImpl starting.
16:36:27 WARN (AgentImpl:278) - Null friendly name list for agent demo_capture_agent2. Capabilities filtering aborted.
16:36:27 INFO (CaptureAgentStateServiceImpl:651) - Roles 'ROLE_INSTRUCTOR, ROLE_ADMIN' may schedule 'demo_capture_agent2'
Not sure why it's called.
Module is needed even if there is no demo capture agent included.
If you have the matterhorn-capture-impl bundle deployed on your core then you will get the demo_capture_agent. That's the point. But even without that bundle on the core (despite wiping the DB) I'm still seeing it. I'll take a look when I get the chance, but I have no idea what could be causing this when the -impl bundle isn't deployed locally...
Ok, this is caused by the file at etc/load/org.opencastproject.capture.agent-demo.cfg, which explains why I had no idea what was causing it. Tobias added this file, so I'll bring it up tomorrow at the deep dive.
Committed to trunk with rev 13988, 1.4.x with rev 13989.