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

           Summary: nwamadm disable/enable of ncus returns non-zero and
                    prints an error on success
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: CLI
        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-18 05:37:09 UTC 
---
I'm seeing this problem with nwam1-build:2009-08-17.  Basically, nwamadm can
enable/disable manual ncus, but it always returns non-zero and prints an error.
 This causes problems with test script execution (in event tests 41-46).

bash-3.2# nwamcfg export
create ncp "User"
create ncu phys "e1000g0"
set activation-mode=manual
end
create ncu ip "e1000g0"
set ip-version=ipv4
set ipv4-addrsrc=dhcp
end
end

bash-3.2# nwamadm enable -p ncp User
Enabling ncp 'User'

bash-3.2# nwamadm list -x
TYPE         PROFILE        STATE          AUXILIARY STATE
ncp          User           online         active
 ncu:phys    e1000g0        online         interface/link is up
 ncu:ip      e1000g0        offline*       waiting for IP address to be set
ncp          Automatic      disabled       disabled by administrator
loc          Automatic      offline        conditions for activation are unmet
loc          NoNet          online         active
loc          Legacy         offline        conditions for activation are unmet
( waited some time for DHCP to complete... )

bash-3.2# nwamadm list -x
TYPE         PROFILE        STATE          AUXILIARY STATE
ncp          User           online         active
 ncu:phys    e1000g0        online         interface/link is up
 ncu:ip      e1000g0        online         interface/link is up
ncp          Automatic      disabled       disabled by administrator
loc          Automatic      online         active
loc          NoNet          offline        conditions for activation are unmet
loc          Legacy         offline        conditions for activation are unmet

bash-3.2# nwamadm disable -p ncu e1000g0
nwamadm: Could not disable link  ncu 'e1000g0': validation of entity failed

bash-3.2# echo $?
1
( This should have succeed and returned 0 )

bash-3.2# nwamadm list
TYPE         PROFILE        STATE          
ncp          User           online         
 ncu:ip      e1000g0        offline        
 ncu:phys    e1000g0        disabled       
ncp          Automatic      disabled       
loc          Automatic      online         
loc          NoNet          offline        
( The disable actually worked ... )

bash-3.2# nwamadm enable -p ncu e1000g0
nwamadm: Could not enable link  ncu 'e1000g0': validation of entity failed
nwamadm: Could not enable interface  ncu 'e1000g0': entity in use
( More errors, but if we wait for DHCP to succeed again ... )

bash-3.2# nwamadm list -x
TYPE         PROFILE        STATE          AUXILIARY STATE
ncp          User           online         active
 ncu:ip      e1000g0        online         interface/link is up
 ncu:phys    e1000g0        online         interface/link is up
ncp          Automatic      disabled       disabled by administrator
loc          Automatic      online         active
loc          NoNet          offline        conditions for activation are unmet
loc          Legacy         uninitialized  uninitialized

So, it looks like the action is work in each case, but nwamadm is printing an
error and producing an non-zero return in each case.

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