system/5013: ifstated doesn't know what state san interfaces are in

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

system/5013: ifstated doesn't know what state san interfaces are in

andrew fresh
>Number:         5013
>Category:       system
>Synopsis:       ifstated doesn't know what state san interfaces are in
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 09 20:10:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Fresh
>Release:        OPENBSD_3_8
>Organization:
>Environment:
       
        System      : OpenBSD 3.8
        Architecture: OpenBSD.i386
        Machine     : i386 Dell PowerEdge 2450

OpenBSD 3.8-stable (GENERIC.MP) #0: Fri Jan 13 22:46:38 MST 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 731 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 536449024 (523876K)
avail mem = 482533376 (471224K)
using 4278 buffers containing 26927104 bytes (26296K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 08/04/03, BIOS32 rev. 0 @ 0xffe90
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc2c0/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks ROSB4 SouthBridge" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x6000 0xec000/0x4000!
mainbus0: Intel MP Specification (Version 1.4) (DELL     POWEREDGE A6)
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 132 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 731 MHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI  
mainbus0: bus 1 is type PCI  
mainbus0: bus 2 is type PCI  
mainbus0: bus 3 is type PCI  
mainbus0: bus 4 is type ISA  
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 16 pins
ioapic0: misconfigured as apic 0, remapped to apic 2
ioapic1 at mainbus0: apid 3 pa 0xfec01000, version 11, 16 pins
ioapic1: misconfigured as apic 0, remapped to apic 3
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
pci1 at pchb1 bus 2
ppb0 at pci1 dev 2 function 0 "Intel i960 RM PCI-PCI" rev 0x01
pci2 at ppb0 bus 3
ahc1 at pci2 dev 4 function 0 "Adaptec AIC-7899 U160" rev 0x01: apic 3 int 15 (irq 10)
scsibus0 at ahc1: 16 targets
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, ATLAS 10K 9SCA, UCIE> SCSI3 0/direct fixed
sd0: 8683MB, 10042 cyl, 6 head, 295 sec, 512 bytes/sec, 17783249 sec total
sd1 at scsibus0 targ 1 lun 0: <QUANTUM, ATLAS 10K 9SCA, UCIE> SCSI3 0/direct fixed
sd1: 8683MB, 10042 cyl, 6 head, 295 sec, 512 bytes/sec, 17783249 sec total
safte0 at scsibus0 targ 6 lun 0: <DELL, 1x4 U2W SCSI BP, 1.16> SCSI2 3/processor fixed
ahc2 at pci2 dev 4 function 1 "Adaptec AIC-7899 U160" rev 0x01: apic 3 int 14 (irq 11)
scsibus1 at ahc2: 16 targets
fxp0 at pci1 dev 8 function 0 "Intel 82557" rev 0x08, i82559: apic 3 int 0 (irq 11), address 00:b0:d0:20:8a:b1
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
ppb1 at pci0 dev 2 function 0 "DEC 21152 PCI-PCI" rev 0x03
pci3 at ppb1 bus 1
fxp1 at pci3 dev 4 function 0 "Intel 82557" rev 0x05, i82558: apic 3 int 4 (irq 11), address 00:50:8b:5e:e7:ac
inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 0
fxp2 at pci3 dev 5 function 0 "Intel 82557" rev 0x05, i82558: apic 3 int 5 (irq 10), address 00:50:8b:5e:e7:ad
inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 0
san0 at pci0 dev 4 function 0 unknown vendor 0x1923 product 0x0300 rev 0x01 apic 3 int 1 (irq 11)
san1 at pci0 dev 8 function 0 unknown vendor 0x1923 product 0x0300 rev 0x01 apic 3 int 6 (irq 10)
vga1 at pci0 dev 14 function 0 "ATI Mach64 GY" rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 15 function 0 "ServerWorks ROSB4 SouthBridge" rev 0x4f
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <SAMSUNG, CD-ROM SN-124, S003> SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x04: apic 2 int 5 (irq 5), version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ahc1: target 0 using 16bit transfers
ahc1: target 0 synchronous at 80.0MHz DT, offset = 0x1f
dkcsum: sd0 matches BIOS drive 0x80
ahc1: target 1 using 16bit transfers
ahc1: target 1 synchronous at 80.0MHz DT, offset = 0x1f
dkcsum: sd1 matches BIOS drive 0x81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
WARNING: / was not properly unmounted
san0: Bringing interface up.
san0: Configuring A101 PMC T1/E1/J1 Front End
san0: Link connecting...
san0: Bringing interface up.
san1: Bringing interface up.
san1: Configuring A101 PMC T1/E1/J1 Front End
san1: Link connecting...
san1: Bringing interface up.
san0: Unknown signal (3f).
san0: T1 connected!
san0: Link connected!
san1: Unknown signal (00).
san1: T1 connected!
san1: Link connected!
san2: Bringing interface up.
san2: Configuring A101 PMC T1/E1/J1 Front End
san2: Link connecting...
san2: Bringing interface up.
san3: Bringing interface up.
san3: Configuring A101 PMC T1/E1/J1 Front End
san3: Link connecting...
san3: Bringing interface up.
san2: Unknown signal (3f).
san2: T1 connected!
san2: Link connected!
san3: Unknown signal (3f).
san3: T1 connected!
san3: Link connected!

>Description:
        I have multiple T1's to the same internet provider.  I have to
tell this router not to route traffic over a down interface by making
sure there is no route over it.

        I am guessing that, as with the le interfaces, the san
interfaces are not capable of reporting the link state.  Although it
says UP in the ifconfig output, so I am not sure what else it needs to
support.  I am not sure how to tell if an interface supports reporting
link state or not.

http://marc.theaimsgroup.com/?l=openbsd-tech&m=109992813508385&w=2

        In the thread referenced above Henning asked why people were
using ifstated.  In this case I am using it because OpenBSD does not
currently support multipath routing, and it does not automatically
disable a route if the interface it would use goes down.

>How-To-Repeat:
-- begin test.ifstated.conf --
loglevel debug

state san0_down {
  if san0.link.up
    set-state san0_up

  if san0.link.unknown
    set-state san0_unknown
}

state san0_up {
  if ! san0.link.up
    set-state san0_down
}

state san0_unknown {
  if ! san0.link.unknown
    set-state san0_down
}
-- end test.ifstated.conf --

$ sudo ifstated -d -f test.ifstated.conf
ifstated: initial state: san0_down
ifstated: changing state to san0_unknown
ifstated: started

$ ifconfig  san0
san0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        description: Link  1 to Frontier (981-xxxx shelf B6)
        groups: czn
        media: TDM t1
        inet 216.190.xx.xxx --> 216.190.xx.xxx netmask 0xfffffffc
        inet6 fe80::2b0:d0ff:fe20:8ab1%san0 ->  prefixlen 64 scopeid 0x4

>Fix:
        Unknown


>Release-Note:
>Audit-Trail:
>Unformatted: