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

           Summary: "system-domain is foo" condition not working for enms
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: ON daemon
        AssignedTo: nwam-dev at opensolaris.org
        ReportedBy: John.Leser at sun.com
         QAContact: nwam-dev at opensolaris.org


--- Comment #0 from John Leser <John.Leser at sun.com> 2009-08-21 05:10:20 UTC 
---
Created an attachment (id=2474)
Test log with debug info

This is with build: nwam1-build:2009-08-20

I thought this issue might have been 10736, but now its clear that it is not,
since that bug is fixed and these tests are still not working.  From the test
log below, you can see that when the active location is changed to have a
default-domain that matches the condition of the enm, the enm is not activated
as expected.  Another point of interest is that the location is listed as
on-line, but the domain is not set the first time it's checked, when it should
be "ddd".   I don't know if this is an nwam bug, or maybe there is still some
delay, since I check as soon as the location comes on-line.

520|0 60 222687 1 1|unknown 00:52:06 ASSERT wired_sys_domain_trigger_001:
Assert text for wired_sys_domain_trigger_001 g
oes here
520|0 60 222687 1 2|unknown 00:52:06 Iterators for this case:
520|0 60 222687 1 3|unknown 00:52:06     MODE=ipv4-static
520|0 60 222687 1 4|unknown 00:52:06     CONDITION=is
520|0 60 222687 1 5|unknown 00:52:06 Running command: "svcadm disable
svc:/network/physical:nwam"
520|0 60 222687 1 6|unknown 00:52:09 svc svc:/network/physical:nwam is disabled
after 3s
520|0 60 222687 1 7|unknown 00:52:10 +++ Applied changes via nwamcfg +++
520|0 60 222687 1 8|unknown 00:52:10 create ncp User
520|0 60 222687 1 9|unknown 00:52:10 create ncu phys e1000g0
520|0 60 222687 1 10|unknown 00:52:10 set activation-mode=manual
520|0 60 222687 1 11|unknown 00:52:10 end
520|0 60 222687 1 12|unknown 00:52:10 create ncu ip e1000g0
520|0 60 222687 1 13|unknown 00:52:10 set ip-version=ipv4
520|0 60 222687 1 14|unknown 00:52:10 set ipv4-addrsrc=static
520|0 60 222687 1 15|unknown 00:52:10 set ipv4-addr=10.8.57.93/24
520|0 60 222687 1 16|unknown 00:52:10 end
520|0 60 222687 1 17|unknown 00:52:10 end
520|0 60 222687 1 18|unknown 00:52:10 +++ end +++
520|0 60 222687 1 19|unknown 00:52:10
520|0 60 222687 1 20|unknown 00:52:10 +++ Applied changes via nwamcfg +++
520|0 60 222687 1 21|unknown 00:52:10 create loc TestLoc1
520|0 60 222687 1 22|unknown 00:52:10 set activation-mode=manual
520|0 60 222687 1 23|unknown 00:52:10 set nameservices=nis
520|0 60 222687 1 24|unknown 00:52:10 set
nameservices-config-file=/etc/nsswitch.files
520|0 60 222687 1 25|unknown 00:52:10 set nis-nameservice-configsrc=manual
520|0 60 222687 1 26|unknown 00:52:10 set nis-nameservice-servers=127.0.0.1
520|0 60 222687 1 27|unknown 00:52:10 set default-domain=ddd
520|0 60 222687 1 28|unknown 00:52:10 end
520|0 60 222687 1 29|unknown 00:52:10 +++ end +++
520|0 60 222687 1 30|unknown 00:52:10
520|0 60 222687 1 31|unknown 00:52:10 +++ Applied changes via nwamcfg +++
520|0 60 222687 1 32|unknown 00:52:10 create enm TestEnm1
520|0 60 222687 1 33|unknown 00:52:10 set activation-mode=conditional-all
520|0 60 222687 1 34|unknown 00:52:10 set conditions="system-domain is
aaa.bbb.ccc"
520|0 60 222687 1 35|unknown 00:52:10 set
start=/var/tmp/nwam_tmp/start_TestEnm1
520|0 60 222687 1 36|unknown 00:52:10 set stop=/var/tmp/nwam_tmp/stop_TestEnm1
520|0 60 222687 1 37|unknown 00:52:10 end
520|0 60 222687 1 38|unknown 00:52:10 +++ end +++
520|0 60 222687 1 39|unknown 00:52:10
520|0 60 222687 1 40|unknown 00:52:10 Running command: "nwamadm enable -p loc
TestLoc1"
520|0 60 222687 1 41|unknown 00:52:11 Running command: "nwamadm enable -p ncp
User"
520|0 60 222687 1 42|unknown 00:52:11 Running command: "svcadm enable
svc:/network/physical:nwam"
520|0 60 222687 1 43|unknown 00:52:12 svc svc:/network/physical:nwam is online
after 1s
520|0 60 222687 1 44|unknown 00:52:14 ncu e1000g0 is online after 2s
520|0 60 222687 1 45|unknown 00:52:14 Waiting 90s for 10.8.57.93/24 to be
assigned on e1000g0
520|0 60 222687 1 46|unknown 00:52:15 Found 10.8.57.93 on: e1000g0:0
520|0 60 222687 1 47|unknown 00:52:15 Address was set after 0s
520|0 60 222687 1 48|unknown 00:52:19 loc TestLoc1 is online after 4s
520|0 60 222687 1 49|unknown 00:52:19 Current system domain name is:
520|0 60 222687 1 50|unknown 00:52:19 enm TestEnm1 is offline after 0s
520|0 60 222687 1 51|unknown 00:52:19 +++ Applied changes via nwamcfg +++
520|0 60 222687 1 52|unknown 00:52:19 select loc TestLoc1
520|0 60 222687 1 53|unknown 00:52:19 set activation-mode=manual
520|0 60 222687 1 54|unknown 00:52:19 set nameservices=nis
520|0 60 222687 1 55|unknown 00:52:19 set
nameservices-config-file=/etc/nsswitch.files
520|0 60 222687 1 56|unknown 00:52:19 set nis-nameservice-configsrc=manual
520|0 60 222687 1 57|unknown 00:52:20 set nis-nameservice-servers=127.0.0.1
520|0 60 222687 1 58|unknown 00:52:20 set default-domain=aaa.bbb.ccc
520|0 60 222687 1 59|unknown 00:52:20 end
520|0 60 222687 1 60|unknown 00:52:20 +++ end +++
520|0 60 222687 1 61|unknown 00:52:20
520|0 60 222687 1 62|unknown 00:52:21 Current system domain name is:
aaa.bbb.ccc
520|0 60 222687 1 63|unknown 00:53:56 enm TestEnm1 failed to become online in
90s
520|0 60 222687 1 64|unknown 00:53:56 actual state was: offline
520|0 60 222687 1 65|unknown 00:53:56 nwamadm list output just after failure:
520|0 60 222687 1 66|unknown 00:53:56 TYPE       PROFILE      STATE        
AUXILIARY STATE
520|0 60 222687 1 67|unknown 00:53:56 ncp       Automatic      disabled    
disabled by administrator
520|0 60 222687 1 68|unknown 00:53:56 ncp       User          online     active
520|0 60 222687 1 69|unknown 00:53:56 ncu:ip       e1000g0      online    
interface/link is up
520|0 60 222687 1 70|unknown 00:53:56 ncu:phys       e1000g0      online    
interface/link is up
520|0 60 222687 1 71|unknown 00:53:56 loc       TestLoc1      online     active
520|0 60 222687 1 72|unknown 00:53:56 loc       Legacy      offline    
conditions for activation are unmet
520|0 60 222687 1 73|unknown 00:53:56 loc       NoNet      offline    
conditions for activation are unmet
520|0 60 222687 1 74|unknown 00:53:56 loc       Automatic      offline    
conditions for activation are unmet
520|0 60 222687 1 75|unknown 00:53:56 enm       TestEnm1      offline    
conditions for activation are unmet
520|0 60 222687 1 76|unknown 00:53:56 FATAL: nwt_dverify_state(), did not reach
expected state
520|0 60 222687 1 77|unknown 00:53:56 +++ syslog daemon messages for this test
+++
520|0 60 222687 1 78|unknown 00:53:56


I have attached a test log that includes the daemon debug output as well.

-- 
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