http://defect.opensolaris.org/bz/show_bug.cgi?id=11546

           Summary: when static addresses are used in the User NCP, the
                    Automatic location does not go online immediately
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: ACCEPTED
          Severity: normal
          Priority: P2
         Component: ON daemon
        AssignedTo: nwam-dev at opensolaris.org
        ReportedBy: alan.maguire at sun.com
         QAContact: nwam-dev at opensolaris.org


--- Comment #0 from amaguire <alan.maguire at sun.com> 2009-09-24 07:56:41 UTC 
---
When going through a test matrix of various configurations, I noticed that for
cases where an NCU uses a static IPv4 address as opposed to DHCP, and that
address is applied and NCU activated, something seems to go wrong with the
condition checking we ask for after the NCU goes online, and as a consequence,
the Automatic location does not go online immediately, but rather at the next
periodic condition check. "nwamadm show-events" output below and log attached.
This seems to be highly reproducible.

nwamadm show-events output:

$ nwamadm show-events
EVENT                    DESCRIPTION                                           
OBJECT_STATE             ncu link:e1000g0 -> state offline*, (re)initialized
but
PRIORITY_GROUP           priority-group: 0                                     
OBJECT_STATE             ncu link:iwk0 -> state offline*, (re)initialized but
no
PRIORITY_GROUP           priority-group: 1                                     
OBJECT_STATE             loc NoNet -> state online, active                     
OBJECT_ACTION            loc Legacy -> action add                              
OBJECT_STATE             ncu link:e1000g0 -> state online, interface/link is up
OBJECT_STATE             ncu link:iwk0 -> state offline*, scanning for WiFi
netw
LINK_STATE               iwk0 -> state down                                    
OBJECT_STATE             ncu interface:e1000g0 -> state offline*,
(re)initialize
OBJECT_STATE             ncu interface:e1000g0 -> state offline*, waiting for
IP
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
LINK_STATE               e1000g0 -> state down                                 
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
OBJECT_STATE             ncu link:e1000g0 -> state online*, interface/link is
do
OBJECT_STATE             ncu link:e1000g0 -> state offline, interface/link is
do
OBJECT_STATE             ncu interface:e1000g0 -> state online*, conditions for
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
IF_STATE                 e1000g0 -> state (3172144) flags 30303165             
OBJECT_STATE             ncu interface:e1000g0 -> state offline, conditions for
WLAN_SCAN_REPORT        -                        1: ESSID eircom2716 0460 BSSID
0:f:cc:5c:ee:fc         -                        2: ESSID eircom1331 7464 BSSID
0:f:cc:2d:90:f8         -                        3: ESSID eircom7701 5412 BSSID
0:1e:5a:fc:5:50         -                        4: ESSID eircom7777 4072 BSSID
0:1e:5a:ff:e6:60        OBJECT_STATE             ncu link:iwk0 -> state
offline*, connecting to WiFi net
OBJECT_STATE             ncu link:e1000g0 -> state offline*, (re)initialized
but
PRIORITY_GROUP           priority-group: 0                                     
LINK_STATE               e1000g0 -> state down                                 
OBJECT_STATE             ncu link:e1000g0 -> state online*, interface/link is
do
OBJECT_STATE             ncu link:e1000g0 -> state offline, interface/link is
do
OBJECT_STATE             ncu interface:e1000g0 -> state online*, conditions for
OBJECT_STATE             ncu interface:e1000g0 -> state offline, conditions for
LINK_STATE               iwk0 -> state up                                      
OBJECT_ACTION            known wlan eircom2716 0460 -> action refresh          
WLAN_SCAN_REPORT        -                        1: ESSID eircom2716 0460 BSSID
0:f:cc:5c:ee:fc         -                        2: ESSID eircom1331 7464 BSSID
0:f:cc:2d:90:f8         -                        3: ESSID eircom7701 5412 BSSID
0:1e:5a:fc:5:50         -                        4: ESSID eircom7777 4072 BSSID
0:1e:5a:ff:e6:60        OBJECT_STATE             ncu link:iwk0 -> state online,
interface/link is up    PRIORITY_GROUP           priority-group: 1             
                        WLAN_CONNECTION_REPORT   connect to WLAN ESSID
eircom2716 0460, BSSID 0:f:cc:5c:
OBJECT_STATE             ncu interface:iwk0 -> state offline*, (re)initialized
b
OBJECT_STATE             ncu interface:iwk0 -> state offline*, waiting for IP
ad
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
OBJECT_STATE             ncu interface:iwk0 -> state offline*, interface/link
is
OBJECT_STATE             ncu interface:iwk0 -> state online, interface/link is
u
IF_STATE                 iwk0 -> state (0) flags 306b7769                      
IF_STATE                 iwk0 -> state (0) flags 306b7769                      

and after about two minutes...

OBJECT_STATE             loc Automatic -> state offline*, method/service
executi
OBJECT_STATE             loc NoNet -> state offline, conditions for activation
a
OBJECT_STATE             loc Automatic -> state online, active

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

Reply via email to