tuklu_san
2017-08-30 12:43:33 UTC
Hi guys,
I am spending many sleepless nights on this with not much to show for
progress.
I am trying to get two ubuntu zesty boxes to talk DECnet. As the basic
test, I am doing dneigh which works on both, and dnping from box 1 to
box 2 which does not work. They are connected over dedicated NICs via a
consumer ethernet switch.
The box I try dnping from comes back with "Write: No buffer space
available". It also logs a WARNING to the kernel log, as below:
UBUNTU BOX 1
------------
# cat /etc/issue
Ubuntu 17.04 \n \l
# uname -a
Linux moksha 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11 10:55:28 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/decnet.conf
#
# DECnet hosts file
#
#Node Node Name Node Line Line
#Type Address Tag Name Tag Device
#----- ------- ----- ----- ----- ------
executor 1.553 name moksha line enp0s8
node 1.554 name mukti
# ip addr show enp0s8
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether aa:00:04:00:29:06 brd ff:ff:ff:ff:ff:ff
dnet 1.553 peer 1.553/16 scope global enp0s8
# dneigh
Node HWtype HWaddress Flags MTU
Iface
mukti ether AA:00:04:00:2A:06 --- 1498
enp0s8
# dnping mukti -c 3
Write: No buffer space available
-- kernel log --
Aug 30 12:07:04 moksha kernel: [ 252.949488] ------------[ cut here
]------------
Aug 30 12:07:04 moksha kernel: [ 252.949517] WARNING: CPU: 0 PID: 3518
at /build/linux-nhaT8l/linux-4.10.0/include/net/dst.h:184
dn_rt_set_next_hop+0x175/0x1a0 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949519] Modules linked in: arc4
md4 nls_utf8 cifs decnet ccm fscache bridge stp llc vboxvideo ttm
input_leds serio_raw drm_kms_helper drm fb_sys_fops syscopyarea joydev
sysfillrect mac_hid vboxguest i2c_piix4 sysimgblt parport_pc ppdev lp
parport ip_tables x_tables autofs4 hid_generic usbhid hid ahci fjes
psmouse libahci e1000 pata_acpi video
Aug 30 12:07:04 moksha kernel: [ 252.949674] CPU: 0 PID: 3518 Comm:
dnping Not tainted 4.10.0-33-generic #37-Ubuntu
Aug 30 12:07:04 moksha kernel: [ 252.949675] Hardware name: innotek
GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
Aug 30 12:07:04 moksha kernel: [ 252.949677] Call Trace:
Aug 30 12:07:04 moksha kernel: [ 252.949686] dump_stack+0x63/0x81
Aug 30 12:07:04 moksha kernel: [ 252.949689] __warn+0xcb/0xf0
Aug 30 12:07:04 moksha kernel: [ 252.949691] warn_slowpath_null+0x1d/0x20
Aug 30 12:07:04 moksha kernel: [ 252.949695]
dn_rt_set_next_hop+0x175/0x1a0 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949699]
__dn_route_output_key+0x4fb/0x8c0 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949703]
dn_route_output_sock+0x23/0x70 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949706] __dn_connect+0x107/0x370
[decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949715] dn_connect+0x5a/0x90 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949719] SYSC_connect+0xd9/0x110
Aug 30 12:07:04 moksha kernel: [ 252.949722] ? putname+0x54/0x60
Aug 30 12:07:04 moksha kernel: [ 252.949725] ? do_sys_open+0x1bc/0x280
Aug 30 12:07:04 moksha kernel: [ 252.949727] SyS_connect+0xe/0x10
Aug 30 12:07:04 moksha kernel: [ 252.949730]
entry_SYSCALL_64_fastpath+0x1e/0xad
Aug 30 12:07:04 moksha kernel: [ 252.949732] RIP: 0033:0x7f8b9673ea90
Aug 30 12:07:04 moksha kernel: [ 252.949734] RSP: 002b:00007ffcef61eeb8
EFLAGS: 00000246 ORIG_RAX: 000000000000002a
Aug 30 12:07:04 moksha kernel: [ 252.949736] RAX: ffffffffffffffda RBX:
000055ac08676bd0 RCX: 00007f8b9673ea90
Aug 30 12:07:04 moksha kernel: [ 252.949737] RDX: 000000000000001a RSI:
00007ffcef61ef60 RDI: 0000000000000003
Aug 30 12:07:04 moksha kernel: [ 252.949738] RBP: 00007f8b969f3400 R08:
000000000000ffff R09: 000000000000003f
Aug 30 12:07:04 moksha kernel: [ 252.949739] R10: 00007f8b96794ca0 R11:
0000000000000246 R12: 0000000000000000
Aug 30 12:07:04 moksha kernel: [ 252.949740] R13: 0000000000000000 R14:
00007ffcef61ee60 R15: ffffffffffffff98
Aug 30 12:07:04 moksha kernel: [ 252.949742] ---[ end trace
3c5b9e3fad23fbe4 ]---
UBUNTU BOX 2
------------
# cat /etc/issue
Ubuntu 17.04 \n \l
# uname -a
Linux dell-dimension-e510 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11
10:55:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/decnet.conf
#
# DECnet hosts file
#
#Node Node Name Node Line Line
#Type Address Tag Name Tag Device
#----- ------- ----- ----- ----- ------
executor 1.554 name mukti lina enp3s3
node 1.553 name moksha
# dneigh
Node HWtype HWaddress Flags MTU
Iface
moksha ether AA:00:04:00:29:06 --- 1498
enp3s3
# ip addr show enp3s3
3: enp3s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether aa:00:04:00:2a:06 brd ff:ff:ff:ff:ff:ff
dnet 1.554 peer 1.554/16 scope global enp3s3
I created a user "linux" on this side, based on a earlier log message
from dnetd:
Aug 30 11:44:48 dell-dimension-e510 dnetd[1372]: Fork_and_setuid failed:
Unknown username 'linux' - access denied
It does seem to receive the dnping connection request and tries to do
something:
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: Connection from:
moksha::linux
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: dnetd.conf, checking proxy
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: Using proxy name linux
Aug 30 12:32:17 dell-dimension-e510 dnetd[5403]: Doing mirror
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: Reaped child process 5403
There is nothing in kernel logs on this side.
The other related files (proxy, dnetd and default configuration files)
are like so:
# cat /etc/decnet.proxy
# /etc/decnet.proxy
#
# DECnet proxy database.
# The format of this file is (one entry per line)
# node::remoteuser localuser
#
# Regular expressions are allowed for node and remote user. Remember
these are
# POSIX regular expressions so use .* where you would use just * on VMS.
# Also it is IMPORTANT that whole names (node and user) are enclosed
# in anchors as below.
# The entries are checked in the order they appear in this file.
# * as a local user will be replaced by the remote username.
# # is a comment.
#
# Here are some examples (commented out of course):
#
# ^tramp$::^test$ chrissie # Explicitly convert 'test' on tramp to
'chrissie'
# ^zaphod$::.* none # Disable proxies from zaphod (assuming you
don't have
# # a user called 'none')
# .*::.* decnet # Like a default DECnet account
# .*::.* * # Equivalent to VMS *::* * proxy (make this last
# # if you use it)
.*::.* */DEFAULT
# cat /etc/dnetd.conf
# /etc/dnetd.conf
#
# Define DECnet objects
#
# Fields
# name: object name (or * for any named object, number must be 0)
# number: object number (or 0 for a named object)
# options: auth[,auto accept]:
# auth: Whether to authenticate users: Y or N
# auto accept: Should we accept incoming connections
# This is needed for non-decnet daemons
# (not calling dnet_accept)
# user: If auth is N then use this user
# daemon: program to run or 'internal'
#
# name number options user daemon
#
FAL 17 Y,Y none fal
MIRROR 25 Y,Y nobody internal
MAIL 27 N,Y vmsmail vmsmaild
CTERM 42 N,Y root ctermd
DTERM 23 N,Y root rmtermd
NML 19 N,Y nobody dnetnml
* * Y,R none internal
# cat /etc/default/dec
cat: /etc/default/dec: No such file or directory
***@dell-dimension-e510:~# cat /etc/default/decnet
# DNET_INTERFACES specifies the names of ethernet interfaces whose
# MAC address is to be set to the DECnet node address
#DNET_INTERFACES="all"
#DNET_INTERFACES="enp3s2"
DNET_INTERFACES="enp3s3"
# DNET_DAEMONS lists the daemons to start when dnet-progs is installed.
#
DNET_DAEMONS="dnetd phoned"
dnetd_FLAGS="-vvv"
dnroute_FLAGS="-v -2"
# The following two lines enable routing, note that if you are
# being a router, then add dnroute to the DNET_DAEMONS too
#ROUTING=1
PRIORITY=32
What else can I try? What am I doing wrong?
Thanks in advance
Supratim Sanyal
I am spending many sleepless nights on this with not much to show for
progress.
I am trying to get two ubuntu zesty boxes to talk DECnet. As the basic
test, I am doing dneigh which works on both, and dnping from box 1 to
box 2 which does not work. They are connected over dedicated NICs via a
consumer ethernet switch.
The box I try dnping from comes back with "Write: No buffer space
available". It also logs a WARNING to the kernel log, as below:
UBUNTU BOX 1
------------
# cat /etc/issue
Ubuntu 17.04 \n \l
# uname -a
Linux moksha 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11 10:55:28 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/decnet.conf
#
# DECnet hosts file
#
#Node Node Name Node Line Line
#Type Address Tag Name Tag Device
#----- ------- ----- ----- ----- ------
executor 1.553 name moksha line enp0s8
node 1.554 name mukti
# ip addr show enp0s8
3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether aa:00:04:00:29:06 brd ff:ff:ff:ff:ff:ff
dnet 1.553 peer 1.553/16 scope global enp0s8
# dneigh
Node HWtype HWaddress Flags MTU
Iface
mukti ether AA:00:04:00:2A:06 --- 1498
enp0s8
# dnping mukti -c 3
Write: No buffer space available
-- kernel log --
Aug 30 12:07:04 moksha kernel: [ 252.949488] ------------[ cut here
]------------
Aug 30 12:07:04 moksha kernel: [ 252.949517] WARNING: CPU: 0 PID: 3518
at /build/linux-nhaT8l/linux-4.10.0/include/net/dst.h:184
dn_rt_set_next_hop+0x175/0x1a0 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949519] Modules linked in: arc4
md4 nls_utf8 cifs decnet ccm fscache bridge stp llc vboxvideo ttm
input_leds serio_raw drm_kms_helper drm fb_sys_fops syscopyarea joydev
sysfillrect mac_hid vboxguest i2c_piix4 sysimgblt parport_pc ppdev lp
parport ip_tables x_tables autofs4 hid_generic usbhid hid ahci fjes
psmouse libahci e1000 pata_acpi video
Aug 30 12:07:04 moksha kernel: [ 252.949674] CPU: 0 PID: 3518 Comm:
dnping Not tainted 4.10.0-33-generic #37-Ubuntu
Aug 30 12:07:04 moksha kernel: [ 252.949675] Hardware name: innotek
GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
Aug 30 12:07:04 moksha kernel: [ 252.949677] Call Trace:
Aug 30 12:07:04 moksha kernel: [ 252.949686] dump_stack+0x63/0x81
Aug 30 12:07:04 moksha kernel: [ 252.949689] __warn+0xcb/0xf0
Aug 30 12:07:04 moksha kernel: [ 252.949691] warn_slowpath_null+0x1d/0x20
Aug 30 12:07:04 moksha kernel: [ 252.949695]
dn_rt_set_next_hop+0x175/0x1a0 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949699]
__dn_route_output_key+0x4fb/0x8c0 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949703]
dn_route_output_sock+0x23/0x70 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949706] __dn_connect+0x107/0x370
[decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949715] dn_connect+0x5a/0x90 [decnet]
Aug 30 12:07:04 moksha kernel: [ 252.949719] SYSC_connect+0xd9/0x110
Aug 30 12:07:04 moksha kernel: [ 252.949722] ? putname+0x54/0x60
Aug 30 12:07:04 moksha kernel: [ 252.949725] ? do_sys_open+0x1bc/0x280
Aug 30 12:07:04 moksha kernel: [ 252.949727] SyS_connect+0xe/0x10
Aug 30 12:07:04 moksha kernel: [ 252.949730]
entry_SYSCALL_64_fastpath+0x1e/0xad
Aug 30 12:07:04 moksha kernel: [ 252.949732] RIP: 0033:0x7f8b9673ea90
Aug 30 12:07:04 moksha kernel: [ 252.949734] RSP: 002b:00007ffcef61eeb8
EFLAGS: 00000246 ORIG_RAX: 000000000000002a
Aug 30 12:07:04 moksha kernel: [ 252.949736] RAX: ffffffffffffffda RBX:
000055ac08676bd0 RCX: 00007f8b9673ea90
Aug 30 12:07:04 moksha kernel: [ 252.949737] RDX: 000000000000001a RSI:
00007ffcef61ef60 RDI: 0000000000000003
Aug 30 12:07:04 moksha kernel: [ 252.949738] RBP: 00007f8b969f3400 R08:
000000000000ffff R09: 000000000000003f
Aug 30 12:07:04 moksha kernel: [ 252.949739] R10: 00007f8b96794ca0 R11:
0000000000000246 R12: 0000000000000000
Aug 30 12:07:04 moksha kernel: [ 252.949740] R13: 0000000000000000 R14:
00007ffcef61ee60 R15: ffffffffffffff98
Aug 30 12:07:04 moksha kernel: [ 252.949742] ---[ end trace
3c5b9e3fad23fbe4 ]---
UBUNTU BOX 2
------------
# cat /etc/issue
Ubuntu 17.04 \n \l
# uname -a
Linux dell-dimension-e510 4.10.0-33-generic #37-Ubuntu SMP Fri Aug 11
10:55:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/decnet.conf
#
# DECnet hosts file
#
#Node Node Name Node Line Line
#Type Address Tag Name Tag Device
#----- ------- ----- ----- ----- ------
executor 1.554 name mukti lina enp3s3
node 1.553 name moksha
# dneigh
Node HWtype HWaddress Flags MTU
Iface
moksha ether AA:00:04:00:29:06 --- 1498
enp3s3
# ip addr show enp3s3
3: enp3s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether aa:00:04:00:2a:06 brd ff:ff:ff:ff:ff:ff
dnet 1.554 peer 1.554/16 scope global enp3s3
I created a user "linux" on this side, based on a earlier log message
from dnetd:
Aug 30 11:44:48 dell-dimension-e510 dnetd[1372]: Fork_and_setuid failed:
Unknown username 'linux' - access denied
It does seem to receive the dnping connection request and tries to do
something:
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: Connection from:
moksha::linux
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: dnetd.conf, checking proxy
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: Using proxy name linux
Aug 30 12:32:17 dell-dimension-e510 dnetd[5403]: Doing mirror
Aug 30 12:32:17 dell-dimension-e510 dnetd[1393]: Reaped child process 5403
There is nothing in kernel logs on this side.
The other related files (proxy, dnetd and default configuration files)
are like so:
# cat /etc/decnet.proxy
# /etc/decnet.proxy
#
# DECnet proxy database.
# The format of this file is (one entry per line)
# node::remoteuser localuser
#
# Regular expressions are allowed for node and remote user. Remember
these are
# POSIX regular expressions so use .* where you would use just * on VMS.
# Also it is IMPORTANT that whole names (node and user) are enclosed
# in anchors as below.
# The entries are checked in the order they appear in this file.
# * as a local user will be replaced by the remote username.
# # is a comment.
#
# Here are some examples (commented out of course):
#
# ^tramp$::^test$ chrissie # Explicitly convert 'test' on tramp to
'chrissie'
# ^zaphod$::.* none # Disable proxies from zaphod (assuming you
don't have
# # a user called 'none')
# .*::.* decnet # Like a default DECnet account
# .*::.* * # Equivalent to VMS *::* * proxy (make this last
# # if you use it)
.*::.* */DEFAULT
# cat /etc/dnetd.conf
# /etc/dnetd.conf
#
# Define DECnet objects
#
# Fields
# name: object name (or * for any named object, number must be 0)
# number: object number (or 0 for a named object)
# options: auth[,auto accept]:
# auth: Whether to authenticate users: Y or N
# auto accept: Should we accept incoming connections
# This is needed for non-decnet daemons
# (not calling dnet_accept)
# user: If auth is N then use this user
# daemon: program to run or 'internal'
#
# name number options user daemon
#
FAL 17 Y,Y none fal
MIRROR 25 Y,Y nobody internal
MAIL 27 N,Y vmsmail vmsmaild
CTERM 42 N,Y root ctermd
DTERM 23 N,Y root rmtermd
NML 19 N,Y nobody dnetnml
* * Y,R none internal
# cat /etc/default/dec
cat: /etc/default/dec: No such file or directory
***@dell-dimension-e510:~# cat /etc/default/decnet
# DNET_INTERFACES specifies the names of ethernet interfaces whose
# MAC address is to be set to the DECnet node address
#DNET_INTERFACES="all"
#DNET_INTERFACES="enp3s2"
DNET_INTERFACES="enp3s3"
# DNET_DAEMONS lists the daemons to start when dnet-progs is installed.
#
DNET_DAEMONS="dnetd phoned"
dnetd_FLAGS="-vvv"
dnroute_FLAGS="-v -2"
# The following two lines enable routing, note that if you are
# being a router, then add dnroute to the DNET_DAEMONS too
#ROUTING=1
PRIORITY=32
What else can I try? What am I doing wrong?
Thanks in advance
Supratim Sanyal