Ask Your Question
1

How to capture vxlan packets on packstack icehouse 2 node installation

asked 2015-01-14 06:18:33 -0500

Ashish Jain gravatar image

I have 2 node setup using packstack icehouse installation using VXLAN tunnels. Below is my answer file:

[general]

# Path to a Public key to install on servers. If a usable key has not
# been installed on the remote servers the user will be prompted for a
# password and this key will be installed so the password will not be
# required again
CONFIG_SSH_KEY=

# Set to 'y' if you would like Packstack to install MariaDB
CONFIG_MARIADB_INSTALL=y

# Set to 'y' if you would like Packstack to install OpenStack Image
# Service (Glance)
CONFIG_GLANCE_INSTALL=y

# Set to 'y' if you would like Packstack to install OpenStack Block
# Storage (Cinder)
CONFIG_CINDER_INSTALL=y

# Set to 'y' if you would like Packstack to install OpenStack Compute
# (Nova)
CONFIG_NOVA_INSTALL=y

# Set to 'y' if you would like Packstack to install OpenStack
# Networking (Neutron). Otherwise Nova Network will be used.
CONFIG_NEUTRON_INSTALL=y

# Set to 'y' if you would like Packstack to install OpenStack
# Dashboard (Horizon)
CONFIG_HORIZON_INSTALL=y

# Set to 'y' if you would like Packstack to install OpenStack Object
# Storage (Swift)
CONFIG_SWIFT_INSTALL=n

# Set to 'y' if you would like Packstack to install OpenStack
# Metering (Ceilometer)
CONFIG_CEILOMETER_INSTALL=n

# Set to 'y' if you would like Packstack to install OpenStack
# Orchestration (Heat)
CONFIG_HEAT_INSTALL=n

# Set to 'y' if you would like Packstack to install the OpenStack
# Client packages. An admin "rc" file will also be installed
CONFIG_CLIENT_INSTALL=y

# Comma separated list of NTP servers. Leave plain if Packstack
# should not install ntpd on instances.
CONFIG_NTP_SERVERS=

# Set to 'y' if you would like Packstack to install Nagios to monitor
# OpenStack hosts
CONFIG_NAGIOS_INSTALL=n

# Comma separated list of servers to be excluded from installation in
# case you are running Packstack the second time with the same answer
# file and don't want Packstack to touch these servers. Leave plain if
# you don't need to exclude any server.
EXCLUDE_SERVERS=

# Set to 'y' if you want to run OpenStack services in debug mode.
# Otherwise set to 'n'.
CONFIG_DEBUG_MODE=n

# The IP address of the server on which to install OpenStack services
# specific to controller role such as API servers, Horizon, etc.
CONFIG_CONTROLLER_HOST=10.100.1.26

# The list of IP addresses of the server on which to install the Nova
# compute service
CONFIG_COMPUTE_HOSTS=10.100.1.32

# The list of IP addresses of the server on which to install the
# network service such as Nova network or Neutron
CONFIG_NETWORK_HOSTS=10.100.1.26

# Set to 'y' if you want to use VMware vCenter as hypervisor and
# storage. Otherwise set to 'n'.
CONFIG_VMWARE_BACKEND=n

# Set to 'y' if you want to use unsupported parameters. This should
# be used only if you know what you are doing.Issues caused by using
# unsupported options won't be fixed before next major release.
CONFIG_UNSUPPORTED=n

# The IP address of the VMware vCenter server
CONFIG_VCENTER_HOST=10.100.1.26

# The username to authenticate to VMware vCenter server
CONFIG_VCENTER_USER=

# The password to authenticate to VMware vCenter server
CONFIG_VCENTER_PASSWORD=

# The name of the vCenter cluster
CONFIG_VCENTER_CLUSTER_NAME=

# (Unsupported!) The IP address ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-14 09:47:39 -0500

dbaxps gravatar image

updated 2015-01-14 09:51:54 -0500

If you want just see trafic , run on compute node :-
[root@juno2f21 ~]# ovs-ofctl show br-tun

OFPT_FEATURES_REPLY (xid=0x2): dpid:00003a8f82350f4b
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
 1(patch-int): addr:22:78:13:7a:a8:47
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 2(vxlan-c0a8007f): addr:6e:db:9c:32:77:9d
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(br-tun): addr:3a:8f:82:35:0f:4b
     config:     PORT_DOWN
     state:      LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

Next command shows traffic to VXLAN tunnel (2)

[root@juno2f21 ~]# ovs-ofctl dump-flows  br-tun
.  .  .  .  .  .


    cookie=0x0, duration=1523.742s, table=20, n_packets=0, n_bytes=0, idle_age=1523, priority=0 actions=resubmit(,22)
     cookie=0x0, duration=972.405s, table=20, n_packets=53850, n_bytes=3999644, hard_timeout=300, idle_age=2, hard_age=2, priority=1,vlan_tci=0x0001/0x0fff,dl_dst=fa:16:3e:c3:65:0b actions=load:0->NXM_OF_VLAN_TCI[],load:0x3e9->NXM_NX_TUN_ID[],output:2
     cookie=0x0, duration=1523.641s, table=22, n_packets=13, n_bytes=1086, idle_age=993, priority=0 actions=drop
     cookie=0x0, duration=1521.093s, table=22, n_packets=21, n_bytes=2021, idle_age=965, dl_vlan=1 actions=strip_vlan,set_tunnel:0x3e9,output:2

[root@juno2f21 ~]# ovs-vsctl show

69f2ec26-d257-4526-9833-c293d194d481
    Bridge br-tun
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port br-tun
            Interface br-tun
                type: internal
        Port "vxlan-c0a8007f"
            Interface "vxlan-c0a8007f"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="192.168.0.137", out_key=flow, remote_ip="192.168.0.127"}
    Bridge br-ex
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port br-ex
            Interface br-ex
                type: internal
    Bridge br-int
        fail_mode: secure
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port br-int
            Interface br-int
                type: internal
        Port "qvo9011e236-b2"
            tag: 1
            Interface "qvo9011e236-b2"
        Port "qvoe9287677-30"
            tag: 1
            Interface "qvoe9287677-30"
        Port "qvo626944aa-5e"
            tag: 1
            Interface "qvo626944aa-5e"
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
    ovs_version: "2.3.1"
edit flag offensive delete link more

Comments

Thanks, I know this, but why don't i see any traffic on br-int or br-tun when i ping from one VM to another. I only see traffic on tap interface and eth5, when i capture this traffic i don't see any VXLAN header. How do i see VXLAN header in wireshark capture?

Ashish Jain gravatar imageAshish Jain ( 2015-01-14 23:36:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-01-14 06:18:33 -0500

Seen: 646 times

Last updated: Jan 14 '15