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

           Summary: When switching ncps, nwamd leaves plumbed interfaces
                    that are not part of the new ncp
    Classification: Development
           Product: nwam
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P4
         Component: ON daemon
        AssignedTo: nwam-dev at opensolaris.org
        ReportedBy: John.Leser at sun.com
         QAContact: nwam-dev at opensolaris.org


When switching ncps from the automatic profile to the User ncp which defines no
configuration for e1000g1-e1000g3, those interfaces are left untouched.  I
would expect switching off the Automatic profile would bring down all of that
configuration, and e1000g0 would be the only interface plumbed or at least
configured with addresses.

Here's an example:

bash-3.2# nwamcfg export
create ncp "User"
create ncu phys "e1000g0"
set activation-mode=prioritized
set priority-group=0
set priority-mode=shared
end
create ncu ip "e1000g0"
set ip-version=ipv4
set ipv4-addrsrc=dhcp
end
end
bash-3.2# nwamadm list
TYPE         PROFILE        STATE          
ncp          User           offline        
ncp          Automatic      online         
 ncu:phys    e1000g0        online         
 ncu:ip      e1000g0        online         
 ncu:phys    e1000g1        online         
 ncu:ip      e1000g1        offline*       
 ncu:phys    e1000g2        online         
 ncu:ip      e1000g2        offline*       
 ncu:phys    e1000g3        online         
 ncu:ip      e1000g3        offline*       
loc          Automatic      online         
loc          NoNet          offline        
loc          Legacy         offline        
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
        inet 127.0.0.1 netmask ff000000 
e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index
136
        inet 10.8.57.93 netmask ffffff00 broadcast 10.8.57.255
        ether 0:14:4f:20:82:24 
e1000g1: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index
137
        inet 0.0.0.0 netmask ff000000 
        ether 0:14:4f:20:82:25 
e1000g2: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index
138
        inet 0.0.0.0 netmask ff000000 
        ether 0:14:4f:20:82:2a 
e1000g3: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index
139
        inet 0.0.0.0 netmask ff000000 
        ether 0:14:4f:20:82:2b 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252
index 1
        inet6 ::1/128 
e1000g0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 136
        inet6 fe80::214:4fff:fe20:8224/10 
        ether 0:14:4f:20:82:24 
e1000g0:1: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 136
        inet6 2001:db8:1:2::4003/128 
e1000g0:2: flags=2080841<UP,RUNNING,MULTICAST,ADDRCONF,IPv6> mtu 1500 index 136
        inet6 2002:a08:39f0:1:28e9:5f77:3c8f:d01f/64 
e1000g0:3: flags=2080841<UP,RUNNING,MULTICAST,ADDRCONF,IPv6> mtu 1500 index 136
        inet6 abc:8194::28e9:5f77:3c8f:d01f/64 
e1000g1: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 137
        inet6 fe80::214:4fff:fe20:8225/10 
        ether 0:14:4f:20:82:25 
e1000g2: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 138
        inet6 fe80::214:4fff:fe20:822a/10 
        ether 0:14:4f:20:82:2a 
e1000g3: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 139
        inet6 fe80::214:4fff:fe20:822b/10 
        ether 0:14:4f:20:82:2b 
bash-3.2# nwamadm enable -p ncp User
Enabling ncp 'User'
bash-3.2# Jun 25 03:17:47 unknown nwamd[146963]: 1: plumb_unplumb_interface:
unplumb failed for e1000g0: Could not unplumb IP stream
Jun 25 03:17:47 unknown nwamd[146963]: 1: plumb_unplumb_interface: unplumb
failed for e1000g1: Could not unplumb IP stream
Jun 25 03:17:47 unknown nwamd[146963]: 1: plumb_unplumb_interface: unplumb
failed for e1000g2: Could not unplumb IP stream
Jun 25 03:17:47 unknown nwamd[146963]: 1: plumb_unplumb_interface: unplumb
failed for e1000g3: Could not unplumb IP stream
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_state_event: state
event for nonexistent NCU interface:e1000g0
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_if_state_event: no
object interface:e1000g0
Jun 25 03:17:47 unknown last message repeated 1 time
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_state_event: state
event for nonexistent NCU interface:e1000g1
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_if_state_event: no
object interface:e1000g1
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_state_event: state
event for nonexistent NCU interface:e1000g2
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_if_state_event: no
object interface:e1000g2
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_state_event: state
event for nonexistent NCU interface:e1000g3
Jun 25 03:17:47 unknown nwamd[146963]: 1: nwamd_ncu_handle_if_state_event: no
object interface:e1000g3

bash-3.2# 
bash-3.2# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
        inet 127.0.0.1 netmask ff000000 
e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index
136
        inet 10.8.57.93 netmask ffffff00 broadcast 10.8.57.255
        ether 0:14:4f:20:82:24 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252
index 1
        inet6 ::1/128 
e1000g0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 136
        inet6 fe80::214:4fff:fe20:8224/10 
        ether 0:14:4f:20:82:24 
e1000g0:1: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 136
        inet6 2001:db8:1:2::4003/128 
e1000g0:2: flags=2080841<UP,RUNNING,MULTICAST,ADDRCONF,IPv6> mtu 1500 index 136
        inet6 2002:a08:39f0:1:28e9:5f77:3c8f:d01f/64 
e1000g0:3: flags=2080841<UP,RUNNING,MULTICAST,ADDRCONF,IPv6> mtu 1500 index 136
        inet6 abc:8194::28e9:5f77:3c8f:d01f/64 
e1000g1: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 137
        inet6 fe80::214:4fff:fe20:8225/10 
        ether 0:14:4f:20:82:25 
e1000g2: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 138
        inet6 fe80::214:4fff:fe20:822a/10 
        ether 0:14:4f:20:82:2a 
e1000g3: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 139
        inet6 fe80::214:4fff:fe20:822b/10 
        ether 0:14:4f:20:82:2b 
bash-3.2# nwamadm list
TYPE         PROFILE        STATE          
ncp          User           online         
 ncu:phys    e1000g0        online         
 ncu:ip      e1000g0        online         
ncp          Automatic      offline        
loc          Automatic      online         
loc          NoNet          offline        
loc          Legacy         offline

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