ifconfig carpX a.b.c.d -> arpresolve: route contains no arp information

2017-07-10 Thread Remi Locherer
>Synopsis:  ifconfig carpX a.b.c.d -> arpresolve: route contains no arp 
>information
>Category:  kernel
>Environment:
System  : OpenBSD 6.1
Details : OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr  1 13:45:56 MDT 2017
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64

>Description:
After reconfiguring an existing carp interface with the same ip the 
gateway stops forwarding traffic (forwarding to directly connected hosts still 
works).
In /var/log/messages this can be found:

Jul 10 12:54:27 gw1 /bsd: arpresolve: 10.0.20.10: route contains no arp 
information


>How-To-Repeat:

Gateway configuration:

# pfctl -d
(it doesn't matter if pf is enabled or not to reproduce the problem)

# ifconfig
lo0: flags=8049 mtu 32768
index 5 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff00
vio0: flags=8843 mtu 1500
lladdr 08:00:27:23:af:65
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect
status: active
inet 10.0.2.15 netmask 0xff00 broadcast 10.0.2.255
vio1: flags=8b43 mtu 
1500
lladdr 08:00:27:7d:87:23
index 2 priority 0 llprio 3
media: Ethernet autoselect
status: active
inet 10.0.10.2 netmask 0xff00 broadcast 10.0.10.255
vio2: flags=8b43 mtu 
1500
lladdr 08:00:27:7e:f3:d5
index 3 priority 0 llprio 3
media: Ethernet autoselect
status: active
inet 10.0.20.2 netmask 0xff00 broadcast 10.0.20.255
enc0: flags=0<>
index 4 priority 0 llprio 3
groups: enc
status: active
carp1: flags=8843 mtu 1500
lladdr 00:00:5e:00:01:17
index 6 priority 15 llprio 3
carp: MASTER carpdev vio1 vhid 23 advbase 1 advskew 0
groups: carp
status: master
inet 10.0.10.1 netmask 0xff00 broadcast 10.0.10.255
carp2: flags=8843 mtu 1500
lladdr 00:00:5e:00:01:17
index 7 priority 15 llprio 3
carp: MASTER carpdev vio2 vhid 23 advbase 1 advskew 0
groups: carp
status: master
inet 10.0.20.1 netmask 0xff00 broadcast 10.0.20.255
pflog0: flags=141 mtu 33144
index 8 priority 0 llprio 3
groups: pflog

# route -n show -inet

Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
default10.0.2.2   UGS0  514 - 8 vio0 
224/4  127.0.0.1  URS00 32768 8 lo0  
10.0.2/24  10.0.2.15  UCn10 - 4 vio0 
10.0.2.2   52:54:00:12:35:02  UHLch  2  412 - 3 vio0 
10.0.2.15  08:00:27:23:af:65  UHLl   04 - 1 vio0 
10.0.2.255 10.0.2.15  UHb00 - 1 vio0 
10.0.10/24 10.0.10.2  UCn11 - 4 vio1 
10.0.10/24 10.0.10.1  UCn00 -19 carp1
10.0.10.1  00:00:5e:00:01:17  UHLl   0   10 - 1 carp1
10.0.10.2  08:00:27:7d:87:23  UHLl   0   72 - 1 vio1 
10.0.10.10 08:00:27:1e:30:02  UHLc   0  320 - 3 vio1 
10.0.10.25510.0.10.2  UHb00 - 1 vio1 
10.0.10.25510.0.10.1  UHb00 - 1 carp1
10.0.20/24 10.0.20.2  UCn1   37 - 4 vio2 
10.0.20/24 10.0.20.1  UCn00 -19 carp2
10.0.20.1  00:00:5e:00:01:17  UHLl   00 - 1 carp2
10.0.20.2  08:00:27:7e:f3:d5  UHLl   02 - 1 vio2 
10.0.20.10 08:00:27:6b:9a:c1  UHLch  1   75 - 3 vio2 
10.0.20.25510.0.20.2  UHb00 - 1 vio2 
10.0.20.25510.0.20.1  UHb00 - 1 carp2
10.0.200/2410.0.20.10 UGS0  618 - 8 vio2 
127/8  127.0.0.1  UGRS   00 32768 8 lo0  
127.0.0.1  127.0.0.1  UHhl   12 32768 1 lo0  

# arp -an

Host Ethernet AddressNetif ExpireFlags
10.0.2.2 52:54:00:12:35:02vio0 19m59s
10.0.2.1508:00:27:23:af:65vio0 permanent l
10.0.10.100:00:5e:00:01:17   carp1 permanent l
10.0.10.2

Dell PowerEdge R710 boots with 6.0 but not 6.1

2017-07-10 Thread scott

Synopsis:   Dell PowerEdge R710 boots with 6.0 but not 6.1
Category:   kernel
Environment:

System  : OpenBSD 6.0
Details : OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT 
2016
 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64

Description:


I have run OpenBSD 6.0-stable on my Dell PowerEdge R710 for several 
months without incident. Recently I attempted a fresh install of OpenBSD 
6.1 on the machine, and the installation itself seemed successful, but I 
can no longer boot...it gets as far as "savecore: no core dump" before 
it stops progressing, and about 5 minutes later, shows a message in 
white text on a blue background. I've experimented with different power 
management settings in the BIOS and I've tried updating all the blobs, 
neither improved the situation. Each time I boot I get a different 
message:


1st try


savecore: no core dump
NMI ... going to debugger
Stopped at  acpicpu_idle+0x22d: nop
ddb{1}> kernel: type -1735280128 trap, code=0
Faulted in DDB: continuing...
ddb{0}> kernel: type -1735280128 trap, code=0
Faulted in DDB: continuing...
ddb{0}>

2nd try


savecore: no core dump
NMI ... going to debugger
Stopped at  0xbf77dd006f3:  addq$0x1,%rdx
ddb{1}>

3rd try

This time a bunch of the screen was covered in blocks of color, some of 
which would cycle between different characters every second, always the 
same blocks staying the same and the same ones changing. I could only 
make out part of the message:


NMI
   ped at  cpu_idle+0x22d:   nop
   kernel:

I tried running sendbug as root, to capture the ACPI data, but on each 
of 2 attempts, the acpidump process would peg the CPU for 10 minutes or 
so before the machine would reboot.


I tried getting some more info out of DDB, but my keyboard wouldn't
work, maybe because its USB? I don't see a PS2 port on this machine so I
cannot try using a PS2 keyboard. It has a serial port, I tried
connecting to that using cu from a different machine, but I didn't see
any output.


How-To-Repeat:


Install OpenBSD 6.1 on a similarly configured Dell PowerEdge R710.
Reboot. Observe the issue--you cannot boot.


Fix:


Use the older OpenBSD 6.0-stable instead.

dmesg:
OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT 2016
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 34329825280 (32739MB)
avail mem = 33284927488 (31742MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xbf49c000 (84 entries)
bios0: vendor Dell Inc. version "6.4.0" date 07/23/2013
bios0: Dell Inc. PowerEdge R710
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC SPCR HPET DMAR MCFG WD__ SLIC ERST HEST BERT EINJ 
TCPA SSDT
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 32 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5640 @ 2.67GHz, 2793.44 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 1
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5640 @ 2.67GHz, 1596.01 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 0, package 0
cpu2 at mainbus0: apid 34 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5640 @ 2.67GHz, 2793.01 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 1
cpu3 at mainbus0: apid 2 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5640 @ 2.67GHz, 1596.01 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 1, package 0
cpu4 at mainbus0: apid 50 (application processor)
cpu4: