demo_capture_agent entry is always there on the list of capture agents

Steps to reproduce

Steps to reproduce:
1. start matterhorn server without demo_capture_agent modules

optional:
2. delete demo capture agent
3. restart matterhorn – it will be back there again...

Actual Results:
on Capture Agents, "demo_capture_agent" entry will be present

Expected Results:
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:

etc/load/org.opencast.captue.agent-demo.cfg

is used as default.... I haven't tracked that more than just matterhorn-capture-agent-service-impl starting.
logs are:

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.

Activity

Show:
Greg Logan
July 10, 2012, 12:05 AM

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...

Greg Logan
January 31, 2013, 12:36 AM

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.

Greg Logan
March 7, 2013, 7:09 PM

Committed to trunk with rev 13988, 1.4.x with rev 13989.

Assignee

Greg Logan

Reporter

Pawel Fic

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Minor
Configure