Ask Your Question

pwd's profile - activity

2018-11-20 12:00:36 -0600 received badge  Famous Question (source)
2018-11-20 12:00:36 -0600 received badge  Notable Question (source)
2018-11-20 12:00:36 -0600 received badge  Popular Question (source)
2018-02-26 04:02:02 -0600 received badge  Famous Question (source)
2017-07-03 07:31:15 -0600 received badge  Notable Question (source)
2017-07-01 14:39:29 -0600 answered a question Getting binding_failed on router to VLAN provider Network (Open Vswitch)

The problem was that I did not use the mapping (used the bridge name) when I

1) created the network

and (and I think that this is important)

2) set the network_vlan_range (at first it was blank then it had br-ovs0 then br-ovs0:70:80

it should be network_vlan_ranges = extnet:70:80

Anyway it is working now and I think that I understand what I did wrong.

thanks for the help

2017-07-01 07:14:45 -0600 received badge  Popular Question (source)
2017-06-30 11:11:29 -0600 commented question Getting binding_failed on router to VLAN provider Network (Open Vswitch)

I tried changing the network_vlan_ranges to br-ovs0:70:80

Deleted and re-created the router and still get the same error (the ID of the port changed of course)

I will edit the original post to add the log output.

2017-06-29 08:41:43 -0600 asked a question Getting binding_failed on router to VLAN provider Network (Open Vswitch)

I am trying to set up a cluster of Openstack systems and started with a single node, on that node that is working I used a flat provider network to keep it simple but I need to set up a vlan provider network.

On the second node that I created for testing like the first as a all-in-one system I first got the OpenVswitch working to support the VLANS on the host computer before even trying to get OpenStack working and have done so. I then created a new Region (wanting to keep my first running stack up for now) and got to the point of creating the first router between an internal network (on the admin project for now) and the provider network (called home-net) I create the router but get. the following on the gateway port.

[pwd@pwd-stack-1 ~(keystone_admin)]$ openstack port show 39ec7053-2d56-4ff6-9ea4-87bc3b1ab170
+-----------------------+---------------------------------------------------------------------------+
| Field                 | Value                                                                     |
+-----------------------+---------------------------------------------------------------------------+
| admin_state_up        | UP                                                                        |
| allowed_address_pairs |                                                                           |
| binding_host_id       | pwd-stack-1.frame.biz                                                     |
| binding_profile       |                                                                           |
| binding_vif_details   |                                                                           |
| binding_vif_type      | binding_failed                                                            |
| binding_vnic_type     | normal                                                                    |
| created_at            | 2017-06-29T12:53:53Z                                                      |
| description           |                                                                           |
| device_id             | 356abdd1-8bbb-4de1-99b8-df9e8d3759a4                                      |
| device_owner          | network:router_gateway                                                    |
| dns_assignment        | None                                                                      |
| dns_name              | None                                                                      |
| extra_dhcp_opts       |                                                                           |
| fixed_ips             | ip_address='10.72.10.2', subnet_id='3aa89106-e623-46b4-8aed-054628035bdd' |
| id                    | 39ec7053-2d56-4ff6-9ea4-87bc3b1ab170                                      |
| ip_address            | None                                                                      |
| mac_address           | fa:16:3e:d4:81:8a                                                         |
| name                  |                                                                           |
| network_id            | 1d935e53-41bd-49cc-be4b-2eb23fe2d738                                      |
| option_name           | None                                                                      |
| option_value          | None                                                                      |
| port_security_enabled | False                                                                     |
| project_id            |                                                                           |
| qos_policy_id         | None                                                                      |
| revision_number       | 4                                                                         |
| security_groups       |                                                                           |
| status                | DOWN                                                                      |
| subnet_id             | None                                                                      |
| updated_at            | 2017-06-29T12:53:56Z                                                      |
+-----------------------+---------------------------------------------------------------------------+

my openvswitch bridge is called br-ovs0 and (clearing comments and blank lines from the config files) I show:

[pwd@pwd-stack-1 ~(keystone_admin)]$ sudo grep -v '#' /etc/neutron/plugin.ini | grep -v -e '^[[:space:]]*$'
[DEFAULT]
[ml2]
type_drivers = vxlan,flat,vlan,gre
tenant_network_types = vxlan
mechanism_drivers =openvswitch
path_mtu = 0
[ml2_type_flat]
flat_networks = *
[ml2_type_geneve]
[ml2_type_gre]
tunnel_id_ranges =
[ml2_type_vlan]
network_vlan_ranges = br-ovs0
[ml2_type_vxlan]
vni_ranges =300:600
vxlan_group = 224.0.0.1
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

[pwd@pwd-stack-1 ~(keystone_admin)]$ sudo grep -v '#' /etc/neutron/neutron.conf | grep -v -e '^[[:space:]]*$'
[DEFAULT]
bind_host=0.0.0.0
auth_strategy=keystone
core_plugin=neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins=router,metering
allow_overlapping_ips=True
notify_nova_on_port_status_changes=True
notify_nova_on_port_data_changes=True
api_workers=24
rpc_workers=24
router_scheduler_driver=neutron.scheduler.l3_agent_scheduler.ChanceScheduler
l3_ha=False
max_l3_agents_per_router=3
debug=False
log_dir=/var/log/neutron
transport_url=rabbit://guest:guest@10.73.1.111:5672/
rpc_backend=rabbit
control_exchange=neutron
[agent]
root_helper=sudo neutron-rootwrap /etc/neutron/rootwrap.conf
[cors]
[cors.subdomain]
[database]
connection=mysql+pymysql://neutron:042fbc2e9ed94b66@10.73.1.111/neutron
[keystone_authtoken]
auth_uri=http://10.73.1.111:5000/v3
auth_type=password
auth_url=http://10.73.1.111:35357
username=neutron
password=XXXXXXXXXXXXXXXXXXXX
user_domain_name=Default
project_name=services
project_domain_name=Default
[matchmaker_redis]
[nova]
region_name=AtlPwd1
auth_url=http://10.73.1.111:35357
auth_type=password
password=XXXXXXXXXXXXXXXXXXXX
project_domain_id=default
project_domain_name=Default
project_name=services
tenant_name=services
user_domain_id=default
user_domain_name=Default
username=nova
[oslo_concurrency]
lock_path=$state_path/lock
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_use_ssl=False
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
policy_file=/etc/neutron/policy.json
[qos]
[quotas]
[ssl]
[service_providers]

[pwd@pwd-stack-1 ~(keystone_admin)]$ openstack router list
+--------------------------------------+-----------+--------+-------+-------------+-------+----------------------------------+
| ID                                   | Name      | Status | State | Distributed | HA    | Project                          |
+--------------------------------------+-----------+--------+-------+-------------+-------+----------------------------------+
| 356abdd1-8bbb-4de1-99b8-df9e8d3759a4 | home-test | ACTIVE | UP    | False       | False | f82c693f83934651bfcb40ae2453b77b |
+--------------------------------------+-----------+--------+-------+-------------+-------+----------------------------------+
[pwd@pwd-stack-1 ~(keystone_admin)]$ openstack router show home-test
+-------------------------+-----------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                     |
+-------------------------+-----------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                        |
| availability_zone_hints |                                                                                                           |
| availability_zones      | nova                                                                                                      |
| created_at              | 2017-06-29T12:53:02Z                                                                                      |
| description             |                                                                                                           |
| distributed             | False                                                                                                     |
| external_gateway_info ...
(more)
2017-06-07 00:37:11 -0600 asked a question openvswitch setup on first node won't allow vlan icmp echo reply.

I am trying to set up VLAN networking for an OpenStack Node using a switch interface that has a few VLANS comming from the switch. The switch is set to tag the packets with the VLAN ID (72, 73, and 74). I have install Open VSwitch but NOT openstack nor ceph yet, I want to get the networking working before going on to the other parts of the system.

Port em1 is set to a simple interface network and works fine for everything (ping, ssh, scp, etc) that I have tried.

When I Ping 10.72.1.111, 10.73.1.111, or 10.74.1.111 I can see the counters go up AND when I capture packets on that interface (vl72, vl73, or vl74) I can use wireshark to view the packets and see ICMP Echo with every sequence number but no traffic outbound.

I am not sure what I have mis-configured This is on openvswitch 1:2.6.1-4.1.git20161206.el7 from the openstack-ocata repro.

This is on a Centos 7 with kernal 3.10.0-514.21.1.el7.x86_64 yum update run clean.

Below is my configuration. I include ip addr and ip route and some of the ovs-* show commands along with netstat -i output.

::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-em1

The Working Interface (NO VLAN)
::::::::::::::
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="em1"
UUID="1405df78-0de3-4744-b249-4b07d35a1873"
DEVICE="em1"
ONBOOT="yes"
IPADDR="10.0.71.111"
PREFIX="24"
GATEWAY="10.0.71.1"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
DOMAIN="mdtsoft.com frame.biz nb-me.org"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-em2

The interface with the vlan going to the bridge
::::::::::::::
DEVICE=em2
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSPort
OVS_BRIDGE=br-ovs0
BOOTPROTO=none
HOTPLUG=no
::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-vl72

vlan 72 interface
::::::::::::::
DEVICE=vl72
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
BOOTPROTO=static
IPADDR=10.72.1.111
NETMASK=255.255.0.0
OVS_BRIDGE=br-ovs0
OVS_OPTIONS="tag=72"
OVS_EXTRA="set Interface $DEVICE external-ids:iface-id=$(hostname -s)-$DEVICE-vif"
HOTPLUG=no


::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-vl73

vlan 73 interface
::::::::::::::
DEVICE=vl73
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
BOOTPROTO=static
IPADDR=10.73.1.111
NETMASK=255.255.0.0
OVS_BRIDGE=br-ovs0
OVS_OPTIONS="tag=73"
OVS_EXTRA="set Interface $DEVICE external-ids:iface-id=$(hostname -s)-$DEVICE-vif"
HOTPLUG=no

::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-vl74

vlan 74 interface
::::::::::::::
DEVICE=vl74
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSIntPort
BOOTPROTO=static
IPADDR=10.74.1.111
NETMASK=255.255.0.0
OVS_BRIDGE=br-ovs0
OVS_OPTIONS="tag=74"
OVS_EXTRA="set Interface $DEVICE external-ids:iface-id=$(hostname -s)-$DEVICE-vif"
HOTPLUG=no

::::::::::::::
/etc/sysconfig/network-scripts/ifcfg-br-ovs0

The Bridge
::::::::::::::
DEVICE=br-ovs0
ONBOOT=yes
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
HOTPLUG=no

==============================================================================
[pwd@pwd-stack-1 ~]$ sudo ovs-vsctl show
dd85e8eb-f374-403e-9b03-e186617b9bd6
    Bridge "osvbr0"
        Port "osvbr0"
            Interface "osvbr0"
                type: internal
    Bridge "br-ovs0"
        Port "vl73"
            tag: 73
            Interface "vl73"
                type: internal
        Port "br-ovs0"
            Interface "br-ovs0"
                type: internal
        Port "vl72"
            tag: 72
            Interface "vl72"
                type: internal
        Port "em2"
            Interface "em2"
        Port "vl74"
            tag ...
(more)