Hi,
a lot of our current functionality assumes that fixed types are already present in the system via the plugin-descriptor.
Now with the dynamic type work by Alex the game has changed: there is a ChildTypeDiscoveryFacet that can detect new resource types and ChildTypeDiscovery classes can find resources of that type and the world is good again :)
But after a pc/agent restart, the type is not know (anymore), but resources of the type are commited in the server, which leads to situations like this:
2010-10-21 22:25:00,360 DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Merging [Resource[id=10411, type=FooBar, key=nagiosKey@Nr: foo, name=nagiosKey@Nr: foo, parent=Nagios@pickeldi:6557]] into local inventory... 2010-10-21 22:25:00,360 ERROR [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Unable to merge Resource Resource[id=10411, type=FooBar, key=nagiosKey@Nr: foo, name=nagiosKey@Nr: foo, parent=Nagios@pickeldi:6557] - its type is unknown - perhaps the [NagiosMonitor] plugin jar was manually removed from the Server's rhq-plugins dir?
Is there an (easy) way to reconnect the resources to the type once the type got re-discovered as described above?
Thanks Heiko