cant ping neutron router from host

asked 2017-07-19 04:14:23 -0600

nishaa gravatar image

I am using HP prolaint blade. I have installed centos 7 and openstack ocata. I am using vlan tagged switch and I have configured the bridge details while installing openstack using packstack as below.

packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex.111 --os-neutron-ovs-bridge-interfaces=br-ex.111:eno1.111 --os-neutron-ml2-type-drivers=vxlan,flat,vlan --default-password=newsys --os-manila-install='n' --os-ceilometer-install='n' --os-heat-install='n' --os-sahara-install='n' --os-trove-install='n' --os-ironic-install='n'

I have following content in my network-scripts.

/etc/sysconfig/network-scripts/ifcfg-eno1 TYPE=Ethernet BOOTPROTO=none NAME=eno1 DEVICE=eno1 ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-eno1.111 DEVICE=eno1.111 NAME=eno1.111 DEVICETYPE=ovs TYPE=OVSPort OVS_BRIDGE=br-ex.111 ONBOOT=yes BOOTPROTO=none VLAN=yes

/etc/sysconfig/network-scripts/ifcfg-br-ex.111 ONBOOT=yes IPADDR=192.168.111.11 PREFIX=24 GATEWAY=192.168.111.254 DEVICE=br-ex.111 NAME=br-ex.111 DEVICETYPE=ovs OVSBOOTPROTO=none TYPE=OVSBridge OVS_EXTRA="set bridge br-ex.111 fail_mode=standalone"

below is the output of OVS-VSCTL show [root@localhost network-scripts(keystone_admin)]# ovs-vsctl show cbd76fbe-3a1d-46ae-b7f2-a261e9ffb77d Manager "ptcp:6640:127.0.0.1" is_connected: true Bridge br-tun Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port br-tun Interface br-tun type: internal Bridge br-ex Port br-ex Interface br-ex type: internal Bridge br-int Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port "tapf551cd18-38" tag: 2 Interface "tapf551cd18-38" type: internal Port "int-br-ex.111" Interface "int-br-ex.111" type: patch options: {peer="phy-br-ex.111"} Port br-int Interface br-int type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qg-2aafa9db-98" tag: 2 Interface "qg-2aafa9db-98" type: internal Bridge "br-ex.111" Controller "tcp:127.0.0.1:6633" is_connected: true fail_mode: secure Port "phy-br-ex.111" Interface "phy-br-ex.111" type: patch options: {peer="int-br-ex.111"} Port "br-ex.111" Interface "br-ex.111" type: internal Port "eno1.111" Interface "eno1.111" ovs_version: "2.6.1"

Please find information of network and router created

[root@localhost network-scripts(keystone_admin)]# openstack network show external_network +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | nova | | created_at | 2017-07-18T09:23:12Z | | description | | | dns_domain | None | | id | 16bc883a-f758-4fcf-be9e-8af7ca7404d1 | | ipv4_address_scope | None | | ipv6_address_scope | None | | is_default | False | | mtu | 1500 | | name | external_network | | port_security_enabled | False | | project_id | f40d98e444c145fa9cc8a36b6795694d | | provider:network_type | vlan | | provider:physical_network | extnet | | provider:segmentation_id | 111 | | qos_policy_id | None | | revision_number | 8 | | router:external | External | | segments | None | | shared | False | | status | ACTIVE | | subnets | 9d609375-8830-47e3-aaaf-57e0a98a83a1 | | updated_at | 2017-07-18T09:26:54Z | +---------------------------+--------------------------------------+ [root@localhost network-scripts(keystone_admin)]#

[root@localhost network-scripts(keystone_admin)]# openstack router show router1 +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+ | admin_state_up | UP | | availability_zone_hints | | | availability_zones | nova | | created_at | 2017-07-18T09:27:24Z | | description | | | distributed | False | | external_gateway_info | {"network_id": "16bc883a-f758-4fcf-be9e-8af7ca7404d1", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "9d609375-8830-47e3-aaaf- | | | 57e0a98a83a1", "ip_address": "192.168.111.150"}]} | | flavor_id | None | | ha | False | | id | a52f5c91-532a-4c98-b2af-44a45b86504e | | name | router1 | | project_id | f40d98e444c145fa9cc8a36b6795694d | | revision_number | 6 | | routes | | | status | ACTIVE | | updated_at | 2017-07-18T09:27:40Z | +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------+

I have also added ALL ICMP and TCP on port 22 [root@localhost network-scripts(keystone_admin)]# openstack security group show 30532bba-6bf7-4fe9-82ef-ac53fdf92985 +-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | created_at | 2017-07-18T09:23:12Z | | description | Default security group | | id | 30532bba-6bf7-4fe9-82ef-ac53fdf92985 | | name | default | | project_id | f40d98e444c145fa9cc8a36b6795694d | | revision_number | 3 | | rules | created_at='2017-07-18T09:38:10Z', direction='ingress', ethertype='IPv4', id='32a6fcb7-9a8c-443b-8599-43a0b10f9c86', protocol='icmp', | | | remote_ip_prefix='0.0.0.0/0', revision_number='1', updated_at ... (more)

edit retag flag offensive close merge delete