[Hawkular-dev] inventory and resource config props
John Mazzitelli
mazz at redhat.com
Wed Jul 13 12:46:38 EDT 2016
I ran into an Inventory issue today. I don't know what is the expected behavior - I hope what I saw isn't expected :)
I ran the agent and it added everything in inventory successfully.
I then shutdown the agent, added a new resource configuration property definition to a resource in the agent configuration, then re-ran the agent.
The agent successfully found and attempted to add the new resource configuration property via the inventory bulk/ API, but inventory never stored it. When I look in inventory, I do not see my new resource configuration property attached to the already existing resource. The resource config props that were on the resource originally are still there, but the new one was never added.
The agent builds the bulk payload in its AsyncInventoryStorage class - specifically, you can see adding the resource config props here: https://github.com/hawkular/hawkular-agent/blob/master/hawkular-wildfly-agent/src/main/java/org/hawkular/agent/monitor/storage/AsyncInventoryStorage.java#L348-L360
What is wrong?
More information about the hawkular-dev
mailing list