I'm having some difficulty understanding whether I am seeing expected behavior 
or possibly a bug, either way, I'm a bit confused.

I have a service with one instance. I use scf_pg_create to create a new 
property group 'A' with one property '1'. If I then use svcprop to view all 
property groups and properties, I see property group 'A'/property '1' only on 
the parent service, not the instance. However, if I use svccfg import to 
reimport the manifest, the property group and the property I created, using 
scf_pg_create/scf_transaction_property_new, show up on the service instance 
using svcprop but when I issue a listpg on svccfg, that same property group 
does not display.

A follow on question is do I need to call scf_pg_create on the instance? It 
appears that property groups and properties are not really inherited, they're 
somehow inherited for list purposes via svcprop (and I assume the library get 
interfaces but I haven't tried that yet) such that I would need to create the 
property group on the instance in addition to the parent service if properties 
on that instance only were expected to be modifiable by the admin.

I guess I don't really understand the intent of how properties are meant to be 
managed, at the parent service level or the instance or both, particularly in 
cases where there is only always a single instance for a service. And if 
instances are intended as a way of modifying properties that only impact that 
instance, shouldn't the parent service property groups/properties be inherited 
by every instance? Perhaps I'm missing some configuration parameter on the 
parent service that would provide for inheritance?

- John
 
 
This message posted from opensolaris.org

Reply via email to