[Hawkular-dev] inventory and resource config props
Lukas Krejci
lkrejci at redhat.com
Thu Jul 14 05:30:30 EDT 2016
On středa 13. července 2016 12:55:50 CEST John Mazzitelli wrote:
> And just for giggles, I tried something else. Leave the resource config
> definitions the same, but change their values. The agent can detect the
> current values (that are different from when they were originally stored in
> inventory) and it tries to send via bulk/ the new values, but Inventory
> retains the old values. It never updates the resource config property
> values to the new ones that the agent sends via bulk/
>
> So, in short, it looks like once entities are added to inventory via bulk/
> they can never be updated when sent via bulk/ again.
>
> I think this must involve sync. I need the inventory folks to tell me how
> the agent can do what I want - clearly, bulk/ is the wrong way to do this.
>
Yes, /bulk is just for creating stuff. So if your entities already exist, bulk
just skips them, never updates. This is exactly what /sync is for.
> ----- Original Message -----
>
> > 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-ag
> > ent/src/main/java/org/hawkular/agent/monitor/storage/AsyncInventoryStorage
> > .java#L348-L360
> >
> > What is wrong?
> > _______________________________________________
> > hawkular-dev mailing list
> > hawkular-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hawkular-dev
>
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
--
Lukas Krejci
More information about the hawkular-dev
mailing list