http://defect.opensolaris.org/bz/show_bug.cgi?id=11579
Summary: nwam is inconsistent about what sort of conditional
profiles can be disabled
Classification: Development
Product: nwam
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: minor
Priority: P4
Component: ON library
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-09-25 20:47:48 UTC
---
I've just noticed this in nwam1-build:2009-09-23 because the test for it is
new. Nwam lets you disable locations with activation modes other than manual,
but the same is not true for enms:
I think the test log makes it pretty clear:
520|0 41 158527 1 1|unknown 16:36:49 ASSERT wired_disable_conditional_001:
Assert text for wired_disable_conditional_001 goes here
520|0 41 158527 1 2|unknown 16:36:50 Iterators for this case:
520|0 41 158527 1 3|unknown 16:36:50 MODE=ipv4-static
520|0 41 158527 1 4|unknown 16:36:50 Running command: "svcadm disable
svc:/network/physical:nwam"
520|0 41 158527 1 5|unknown 16:36:54 svc svc:/network/physical:nwam is disabled
after 4s
520|0 41 158527 1 6|unknown 16:36:54 Running command: nwamcfg destroy -a
520|0 41 158527 1 7|unknown 16:36:54 +++ Applied changes via nwamcfg +++
520|0 41 158527 1 8|unknown 16:36:54 create ncp User
520|0 41 158527 1 9|unknown 16:36:54 create ncu phys e1000g0
520|0 41 158527 1 10|unknown 16:36:54 set activation-mode=manual
520|0 41 158527 1 11|unknown 16:36:54 end
520|0 41 158527 1 12|unknown 16:36:54 create ncu ip e1000g0
520|0 41 158527 1 13|unknown 16:36:54 set ip-version=ipv4
520|0 41 158527 1 14|unknown 16:36:54 set ipv4-addrsrc=static
520|0 41 158527 1 15|unknown 16:36:54 set ipv4-addr=10.8.57.252/24
520|0 41 158527 1 16|unknown 16:36:54 end
520|0 41 158527 1 17|unknown 16:36:54 end
520|0 41 158527 1 18|unknown 16:36:54 +++ end +++
520|0 41 158527 1 19|unknown 16:36:55
520|0 41 158527 1 20|unknown 16:36:55 +++ Applied changes via nwamcfg +++
520|0 41 158527 1 21|unknown 16:36:55 create loc TestLoc1
520|0 41 158527 1 22|unknown 16:36:55 set activation-mode=conditional-all
520|0 41 158527 1 23|unknown 16:36:55 set conditions="ncu e1000g0 is active"
520|0 41 158527 1 24|unknown 16:36:55 set nameservices=dns
520|0 41 158527 1 25|unknown 16:36:55 set
nameservices-config-file=/etc/nsswitch.dns
520|0 41 158527 1 26|unknown 16:36:55 set dns-nameservice-configsrc=manual
520|0 41 158527 1 27|unknown 16:36:55 set dns-nameservice-domain=east.sun.com
520|0 41 158527 1 28|unknown 16:36:55 set dns-nameservice-servers=127.0.0.1
520|0 41 158527 1 29|unknown 16:36:55 end
520|0 41 158527 1 30|unknown 16:36:55 +++ end +++
520|0 41 158527 1 31|unknown 16:36:55
520|0 41 158527 1 32|unknown 16:36:55 +++ Applied changes via nwamcfg +++
520|0 41 158527 1 33|unknown 16:36:55 create enm TestEnm1
520|0 41 158527 1 34|unknown 16:36:55 set activation-mode=conditional-all
520|0 41 158527 1 35|unknown 16:36:55 set conditions="ncu e1000g0 is active"
520|0 41 158527 1 36|unknown 16:36:55 set
start=/var/tmp/nwam_tmp/start_TestEnm1
520|0 41 158527 1 37|unknown 16:36:55 set stop=/var/tmp/nwam_tmp/stop_TestEnm1
520|0 41 158527 1 38|unknown 16:36:55 end
520|0 41 158527 1 39|unknown 16:36:55 +++ end +++
520|0 41 158527 1 40|unknown 16:36:55
520|0 41 158527 1 41|unknown 16:36:55 Running command: "nwamadm enable -p ncp
User"
520|0 41 158527 1 42|unknown 16:36:55 Running command: "svcadm enable
svc:/network/physical:nwam"
520|0 41 158527 1 43|unknown 16:36:57 svc svc:/network/physical:nwam is online
after 1s
520|0 41 158527 1 44|unknown 16:37:00 ncu e1000g0 is online after 2s
520|0 41 158527 1 45|unknown 16:37:00 Waiting 90s for 10.8.57.252/24 to be
assigned on e1000g0
520|0 41 158527 1 46|unknown 16:37:00 Found 10.8.57.252 on: e1000g0:0
520|0 41 158527 1 47|unknown 16:37:00 Address was set after 0s
520|0 41 158527 1 48|unknown 16:37:05 loc TestLoc1 is online after 4s
520|0 41 158527 1 49|unknown 16:37:05 Waiting 90s for location test1 to be
applied
520|0 41 158527 1 50|unknown 16:37:05 nwt_verify_loc_domain() test1 exp/act
domain east.sun.com/east.sun.com
520|0 41 158527 1 51|unknown 16:37:05 Location test1 was applied after 0s
520|0 41 158527 1 52|unknown 16:37:05 enm TestEnm1 is online after 0s
520|0 41 158527 1 53|unknown 16:37:05 Waiting 90s for ENM test1 to be started
520|0 41 158527 1 54|unknown 16:37:05 ENM test1 was running after 0s
520|0 41 158527 1 55|unknown 16:37:05 Running command: "nwamadm disable -p loc
TestLoc1"
520|0 41 158527 1 56|unknown 16:37:05 Running command: "nwamadm disable -p enm
TestEnm1"
520|0 41 158527 1 57|unknown 16:37:05 nwt_enable: command failed
520|0 41 158527 1 58|unknown 16:37:05 +++ command output +++
520|0 41 158527 1 59|unknown 16:37:05 nwamadm: Only profiles with manual
activation-mode can be disabled
520|0 41 158527 1 60|unknown 16:37:05 +++ end +++
520|0 41 158527 1 61|unknown 16:37:05
520|0 41 158527 1 62|unknown 16:37:05 FATAL: nwt_setstate(), command failed
520|0 41 158527 1 63|unknown 16:37:05 Daemon log output for this test is saved
in /var/tmp/nwam_tmp/nwam_syslog_output.wired_disable_conditional_001.158527.gz
520|0 41 158527 1 64|unknown 16:37:05 No new core files appeared during this
test case.
520|0 41 158527 1 65|unknown 16:37:06 ends PHASE=test, returning 1
220|0 41 1 16:37:05|FAIL
I think this is a relatively low priority issue, since disabling conditionals
is really just allowed to support certain GUI behavior that needs it. If there
is agreement that this is OK, I'll update the test only check locations.
--
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.