Skip to content

Instantly share code, notes, and snippets.

View trad511's full-sized avatar

Sean Lynn trad511

View GitHub Profile
@trad511
trad511 / gist:0d2235ceafa2225e5422
Created November 5, 2014 16:38
clean out neutron ovs agent
for tap in $(ovs-vsctl show | grep 'Port "tap' | tr -d \" | awk '{print $2}');do ovs-vsctl del-port $tap;done
for vxlan in $(ovs-vsctl show | grep 'Port "vxlan-' | tr -d \" | awk '{print $2}');do ovs-vsctl del-port $vxlan;done
ovs-ofctl del-flows br-tun;ovs-ofctl del-flows br-int;ovs-ofctl del-flows br-ex;restart neutron-plugin-openvswitch-agen
@trad511
trad511 / gist:d6c73aee8f6ff08d9f25
Created June 12, 2014 21:58
openstack icehouse vxlan kernel crash 3.15
[ 1731.133155] ------------[ cut here ]------------
[ 1731.138363] kernel BUG at /home/apw/COD/linux/net/core/skbuff.c:2999!
[ 1731.145604] invalid opcode: 0000 [#1] SMP
[ 1731.150241] Modules linked in: xt_nat xt_REDIRECT veth dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp bridge ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables openvswitch gre vxlan libcrc32c dm_crypt 8021q garp stp mrp llc x86_pkg_temp_thermal intel_powerclamp bonding coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper joydev ablk_helper cryptd nfsd auth_rpcgss nfs_acl sb_edac nfs microcode ipmi_si edac_core lpc_ich ipmi_msghandler lockd acpi_power_meter sunrpc mac_hid fscache lp parport btrfs xor raid6_pq hid_generic qla2xxx fnic libfcoe igb megaraid_sas usbhid libfc dca hid scsi_tr
@trad511
trad511 / gist:5ff8e8dc8e9fbc1fed93
Created June 12, 2014 19:48
openstack icehouse vxlan kernel crash
[ 871.025524] ------------[ cut here ]------------
[ 871.030742] kernel BUG at /build/buildd/linux-3.13.0/net/core/skbuff.c:2903!
[ 871.038669] invalid opcode: 0000 [#1] SMP
[ 871.043318] Modules linked in: xt_nat xt_REDIRECT dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conn
track nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle xt_tcpudp bridge ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables veth openvswitch gre vxlan ip_tunnel
dm_crypt 8021q garp stp mrp llc bonding nfsd auth_rpcgss nfs_acl nfs lockd sunrpc fscache sb_edac gpio_ich joydev edac_core x86_pkg_temp_thermal intel_powerclamp coretemp lpc_ich acpi_power_m
eter kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ipmi_si mac_hid lp parport btrfs xor raid6_pq libcrc32c
hid_generic qla2xxx fnic libfcoe megaraid_sas
[ 871.124025] igb usbhid lib
@trad511
trad511 / gist:436d561e28f579057e5e
Created May 23, 2014 21:14
vlan tag troubleshooting 2 flows
root@122-control-01:~# ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000c62abfafec4b
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
3(tap794e75a8-65): addr:d6:57:b8:d9:65:6c
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
7(qr-c1443e03-9c): addr:e2:9c:44:66:d6:50
@trad511
trad511 / gist:ea8c393ded54dc92c162
Created May 23, 2014 20:12
vlan tag troubleshooting
root@122-control-01:~# neutron net-list
+--------------------------------------+------------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+------------+-----------------------------------------------------+
| 1e4dde09-54df-42ef-811b-40f4645919ce | admin_net | a746607d-2f97-453f-b9bd-be6e5f615c35 10.33.0.0/16 |
| 950e9160-3895-4221-8ce8-3b14a59fef7f | vxlan1_net | bde602ed-cfb2-4964-b5ba-30afaf89e970 192.168.1.0/24 |
| f45083fb-f678-4258-8437-8c0ecd17b3c6 | vxlan2_net | 02cd9ab1-1994-4965-ac4d-0618832b4c49 192.168.2.0/24 |
+--------------------------------------+------------+-----------------------------------------------------+
root@122-control-01:~# neutron net-show admin_net
+---------------------------+--------------------------------------+