On 22/02/2010 17:26, Sean Wilcox wrote:
> Alan Maguire wrote:
>> hi folks
>>
>> I was wondering if there have been any other cases where the
>> above has been observed - a valid manifest appears to
>> be imported, a manifest hash that looks correct is present
>> (ensuring that reimport won't work until we delete the
>> service with "svccfg delete -f") but property groups are
>> missing (specifically  the service dependencies, dependents
>> and all its methods - start,stop,refresh). I can't see any complaints
>> in the manifest-import or startd logs, the former actually seems to
>> be adding the relevant manifest, with the following line in the log:
>>
>> add_manifest network/location  
>> /var/svc/manifest/network/network-location.xml
>>
>> Even if I delete the manifest hash propertygroup in smf/manifest,
>> the service is reimported but the properties still don't appear -
>> a delete -f on the service is required to get the properties back.
>> Are there any known manifest-import issues that might explain
>> this? Is there any more info I can collect that might help shed light
>> on what's going on? It doesn't appear that startd or configd
>> have died - no corefiles appear etc. BTW we're seeing this for the
>> first time since merging with snv_134, and after fresh install to recent
>> Nevada build + BFU of project bits, but on sparc only.
>>
>> Thanks!
>>
>> Alan
>> _______________________________________________
>> smf-discuss mailing list
>> smf-discuss at opensolaris.org
>>
>>
> If you manually import the service with svccfg -v import <manifest> 
> any additional information given?
>
Yep, manual import works fine - see below for
output.

> When you say recent Nevada build, what is that build?
The base build (installed via JumpStart) was snv_130, on
top of which I bfu'ed project bits synced with snv_134.
> The reason the add_manifest message is something that's
> added if you are not using a recent svccfg to import the manifest, 
> because it's not getting the manifestfile <-> service
> connection created via svccfg, but manifest-import is upgrading the 
> service to make that connection.
>
Hmm, the weird thing is though that even post-BFU,
if I delete the location service and reboot, these properties
are still missing after re-import. However if I "svccfg delete -f"
and manually "svccfg import", rather than via manifest-import,
all is well. Here's an example of where I "svccfg delete -f" and reboot.
The properties are missing,but when I "svccfg delete -f" and manually
"svccfg import", they appear. When I "svccfg delete -f" and reboot, I see:

Loaded 1 smf(5) service descriptions

...in the manifest-import log.

And after removal + reboot of the location service,
the properties look like this:

# svcprop location
location_netcfg/entities fmri svc:/network/netcfg
location_netcfg/external boolean true
location_netcfg/grouping astring require_all
location_netcfg/restart_on astring none
location_netcfg/type astring service
general/enabled boolean false
restarter_actions/auxiliary_tty boolean false
restarter_actions/auxiliary_fmri astring svc:/network/physical:nwam
restarter_actions/refresh integer
general_ovr/enabled boolean true
restarter/auxiliary_state astring none
restarter/logfile astring /var/svc/log/network-location:default.log
restarter/next_state astring none
restarter/state astring online
restarter/state_timestamp time 1266860005.834828000

But if I do the following right after:

# svcadm disable location
# svccfg delete -f location
# svccfg -v import /var/svc/manifest/network/network-location.xml
svccfg: Taking "previous" snapshot for svc:/network/location:default.
svccfg: Taking "initial" snapshot for svc:/network/location:default.
svccfg: Taking "last-import" snapshot for svc:/network/location:default.
svccfg: Refreshed svc:/network/location:default.
svccfg: Refreshed svc:/network/dns/client:default.
svccfg: Refreshed svc:/network/nis/client:default.
svccfg: Refreshed svc:/network/ldap/client:default.
svccfg: Refreshed svc:/system/name-service-cache:default.
svccfg: Refreshed svc:/network/nfs/mapid:default.
svccfg: Refreshed svc:/system/identity:domain.
svccfg: Refreshed svc:/network/ipfilter:default.
svccfg: Refreshed svc:/network/ipsec/ike:default.
svccfg: Refreshed svc:/network/ipsec/policy:default.
svccfg: Successful import.
# svcprop location
location_netcfg/entities fmri svc:/network/netcfg
location_netcfg/external boolean true
location_netcfg/grouping astring require_all
location_netcfg/restart_on astring none
location_netcfg/type astring service
network-physical/entities fmri svc:/network/physical
network-physical/grouping astring require_all
network-physical/restart_on astring none
network-physical/type astring service
filesystem/entities fmri svc:/system/filesystem/usr
filesystem/grouping astring require_all
filesystem/restart_on astring none
filesystem/type astring service
manifest-import/entities fmri svc:/system/manifest-import:default
manifest-import/grouping astring require_all
manifest-import/restart_on astring none
manifest-import/type astring service
dependents/location_dns-client fmri svc:/network/dns/client
dependents/location_identity-domain fmri svc:/system/identity:domain
dependents/location_ipfilter fmri svc:/network/ipfilter
dependents/location_ipsec-ike fmri svc:/network/ipsec/ike
dependents/location_ipsec-policy fmri svc:/network/ipsec/policy
dependents/location_ldap-client fmri svc:/network/ldap/client
dependents/location_name-service-cache fmri svc:/system/name-service-cache
dependents/location_nfs-mapid fmri svc:/network/nfs/mapid
dependents/location_nis-client fmri svc:/network/nis/client
startd/duration astring transient
general/action_authorization astring solaris.smf.manage.location
general/enabled boolean false
general/entity_stability astring Unstable
start/exec astring /lib/svc/method/net-loc\ start
start/group astring netadm
start/privileges astring zone
start/supp_groups astring netadm
start/timeout_seconds count 60
start/type astring method
start/use_profile boolean false
start/user astring netadm
refresh/exec astring /lib/svc/method/net-loc\ refresh
refresh/group astring netadm
refresh/privileges astring zone
refresh/supp_groups astring netadm
refresh/timeout_seconds count 60
refresh/type astring method
refresh/use_profile boolean false
refresh/user astring netadm
stop/exec astring :true
stop/group astring netadm
stop/privileges astring zone
stop/supp_groups astring netadm
stop/timeout_seconds count 60
stop/type astring method
stop/use_profile boolean false
stop/user astring netadm
tm_common_name/C ustring network\ interface\ configuration
tm_man_nwamd/manpath astring /usr/share/man
tm_man_nwamd/section astring 1M
tm_man_nwamd/title astring nwamd
manifestfiles/var_svc_manifest_network_network-location_xml astring 
/var/svc/manifest/network/network-location.xml
restarter/next_state astring none
restarter/state astring disabled
restarter/state_timestamp time 1266860434.282287000
restarter_actions/refresh integer

Alan

Reply via email to