http://defect.opensolaris.org/bz/show_bug.cgi?id=12311
Summary: nwamcfg enable Automatic ncp failed.
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: huawei.zhang at sun.com
QAContact: nwam-dev at opensolaris.org
--- Comment #0 from alz <huawei.zhang at sun.com> 2009-10-29 06:46:52 UTC ---
for nwam-RC4
at first time, when "svcadm enable nwam", it work correctly, set a dhcp address
to one nic.
$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 3
inet 10.13.28.103 netmask ffffff00 broadcast 10.13.28.255
ether 0:9:3d:0:5e:ac
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252
index 1
inet6 ::1/128
bge0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 3
inet6 fe80::209:3dff:fe00:5eac/10
ether 0:9:3d:0:5e:ac
$ nwamadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:ip bge1 offline
ncu:phys bge1 offline
ncu:ip bge0 online
ncu:phys bge0 online
loc User online
loc NoNet offline
loc Automatic offline
then I create one User ncp
$ nwamcfg create ncp User
$ echo $?
0
$ nwamadm list
TYPE PROFILE STATE
ncp User disabled
ncp Automatic online
ncu:ip bge1 offline
ncu:phys bge1 offline
ncu:ip bge0 online
ncu:phys bge0 online
loc User online
loc NoNet offline
loc Automatic offline
Then I enable this User ncp
$ nwamadm enable -p ncp User
Enabling ncp 'User'
$ echo $?
0
$ nwamadm list
TYPE PROFILE STATE
ncp User online
ncp Automatic disabled
loc User online
loc NoNet offline
loc Automatic offline
After those operation, I enable the Automatic ncp again.
However, it can not set the DHCP address any more:
$ nwamadm enable -p ncp Automatic
Enabling ncp 'Automatic'
$ echo $?
0
$ nwamadm list
Oct 29 22:48:12 unknown nwamd[104441]: 3: nwamd_door_req_state: ncu link:bge0
not found
Oct 29 22:48:12 unknown nwamd[104441]: 3: nwamd_door_req_state: ncu
interface:bge0 not found
Oct 29 22:48:12 unknown nwamd[104441]: 3: nwamd_door_req_state: ncu link:bge1
not found
Oct 29 22:48:12 unknown nwamd[104441]: 3: nwamd_door_req_state: ncu
interface:bge1 not found
TYPE PROFILE STATE
ncp User disabled
ncp Automatic online
ncu:ip bge1 uninitialized
ncu:phys bge1 uninitialized
ncu:ip bge0 uninitialized
ncu:phys bge0 uninitialized
loc User online
loc NoNet offline
loc Automatic offline
$ dladm show-link
LINK CLASS MTU STATE BRIDGE OVER
bge0 phys 1500 unknown -- --
bge1 phys 1500 unknown -- --
$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
inet 127.0.0.1 netmask ff000000
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252
index 1
inet6 ::1/128
--
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.