P1 Dev Whiteboard - Resolved

Resolved development discussions

  1. sysevent_bind_handle() and required privs/uid

    See CR 6816881

    Filed CR to track sysevent uid==0 check issue.  For now, we'll work around
    by wrapping the sysevent call with adjust privs and setuid calls.
    


  2. mtu bounds checking; how will users know if there's a failure here?
    • question also applies to when ENM scripts fail or location activation fails
    • log error using syslog, then the respective ncu is in "maintenance" state. The user fixes the ncu, commits it, which causes nwamd to refresh that ncu. When objects are refreshed, nwamd should evaluate whether that object should be activated or not (applies to all ncus, locs, enms).
    • Auxiliary states (RFE) will contain more information about why activation failed.
  3. enabling network/location by nwamd
    network/location is not enabled by default.  It is started temporarily by
    nwamd or network/physical:default.
    
    The following code in main.c in supposed to start network/location, but it
    doesn't.
    
       /*
        * Restore/Restart/Enable NETWORK_LOCATION_SVC
        */
       (void) smf_restore_instance(NETWORK_LOCATION_SVC);
       (void) smf_restart_instance(NETWORK_LOCATION_SVC);
       (void) smf_enable_instance(NETWORK_LOCATION_SVC, SMF_TEMPORARY);
    
    Here the situation:
    
    If NETWORK_LOCATION_SVC = "svc:/network/location", then all three return
    "invalid argument". ":default" is missing.
    
    If NETWORK_LOCATION_SVC = "svc:/network/location:default", then
    _restore_() returns "required constraint is missing" => i think it means
    network/location is not in maintenance mode.  The other two calls return
    "entity not found" meaning FMRI is valid but there's no matching instance.
    
    I changed the <create_default_instance ...> in network-location.xml to
    <single_instance /> and also <instance ...> </instance> and in both cases I
    am getting the same errors.
    
    • Two things. First, the :default instance is needed. Second, for some reason scf_error() kept returning "entity not found" but the service was being enabled. I've changed the <create_default_instance ...> to <instance ...> ... </instance> in network-location.xml and things seems to be moving along.
    • Merge of two implementations. network/location will be enabled by default, with dependencies on nwam and filesystem/usr. So, nwamd will set the location/selected property before network/location starts.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact