Michael Hunter wrote:
> Recently I've been starting up a virtual box with
> network/physical:default enabled and network/physical:nwam disabled and
> then later temporarily disabling default and temporarily enabling
> nwam.  This fails our exclusion test.
>
>   
I suspect the issue here is that temporary disable
doesn't effect the general/enabled value (which is what
we base our mutual exlusivity test off) - rather
it masks the general/enabled value with a
general_ovr/enabled property that the restarter
uses to dictate state if it is defined. The solution
is to ensure that the nwam_is_enabled() and
physical_default_is_enabled() tests in the start
methods of default and nwam also consult the
general_ovr/enabled value for state, using its
value if it's there, otherwise falling back to
general/enabled. I'll fix this in my next wad.

Alan
> Script started on Thu Feb 19 05:20:11 2009
> $ svcs network/physical
> STATE          STIME    FMRI
> disabled        5:12:40 svc:/network/physical:nwam
> online          5:13:02 svc:/network/physical:default
> $ su
> Password: 
> # svcadm disable -t network/physical:default
> # svcadm enable -t network/physical:nwam
> # svcs network/physical
> STATE          STIME    FMRI
> disabled        5:20:26 svc:/network/physical:default
> maintenance     5:20:37 svc:/network/physical:nwam
> # svcs -xv
> svc:/network/physical:nwam (physical network interface autoconfiguration)
>  State: maintenance since Thu Feb 19 05:20:37 2009
> Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
>    See: http://sun.com/msg/SMF-8000-KS
>    See: man -M /usr/share/man -s 1M nwamd
>    See: http://opensolaris.org/os/projects/nwam/
>    See: http://opensolaris.org/os/projects/nwam/phase0/
>    See: /var/svc/log/network-physical:nwam.log
> Impact: This service is not running.
> # tail /var/svc/log/network-physical:nwam.log
> [ Feb 19 05:08:13 Method "start" exited with status 96. ]
> [ Feb 19 05:10:06 Rereading configuration. ]
> [ Feb 19 05:10:15 Rereading configuration. ]
> [ Feb 19 05:10:28 Rereading configuration. ]
> [ Feb 19 05:11:20 Leaving maintenance because disable requested. ]
> [ Feb 19 05:11:20 Disabled. ]
> [ Feb 19 05:20:37 Enabled. ]
> [ Feb 19 05:20:37 Executing start method ("/lib/svc/method/net-nwam start"). ]
> ERROR: Both svc:/network/physical:default and svc:/network/physical:nwam 
> cannot be enabled at the same time.
> [ Feb 19 05:20:37 Method "start" exited with status 96. ]
> # date
> Thu Feb 19 05:21:01 PST 2009
> # exit
> $ exit
>
> script done on Thu Feb 19 05:21:06 2009
> _______________________________________________
> nwam-dev mailing list
> nwam-dev at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/nwam-dev
>   


Reply via email to