Ask Your Question
0

instance cannot access internet [closed]

asked 2017-11-14 05:57:10 -0600

chtsalid gravatar image

updated 2017-12-09 15:05:46 -0600

Hi all,

I am running pike in centos7 and the fedora instance that I have create cannot access internet. Here are some logs.

nova list

+--------------------------------------+-----------+--------+------------+-------------+----------------------------+

| ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-----------+--------+------------+-------------+----------------------------+

| 1261aa9a-413d-47c1-84a9-f96d4b512d54 | instance1 | ACTIVE | - | Running | int=10.0.0.8, 10.0.100.100 |

+--------------------------------------+-----------+--------+------------+-------------+----------------------------+

neutron net-show 405275df-5828-44ea-b6bb-c013929e8270

neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.

+---------------------------+--------------------------------------+

| Field                     | Value                                |
+---------------------------+--------------------------------------+

| admin_state_up            | True                                 |

| availability_zone_hints   |                                      |

| availability_zones        | nova                                 |

| created_at                | 2017-11-13T16:36:45Z                 |

| description               |                                      |

| id                        | 405275df-5828-44ea-b6bb-c013929e8270 |

| ipv4_address_scope        |                                      |

| ipv6_address_scope        |                                      |

| mtu                       | 1450                                 |

| name                      | int                                  |

| port_security_enabled     | True                                 |

| project_id                | 66a02dd6ffd544b5a3cbc9d2844cca8e     |

| provider:network_type     | vxlan                                |

| provider:physical_network |                                      |

| provider:segmentation_id  | 32                                   |

| revision_number           | 3                                    |

| router:external           | False                                |

| shared                    | False                                |

| status                    | ACTIVE                               |

| subnets                   | b1b9920d-d640-43a4-9fc7-a148015dc36e |

| tags                      |                                      |

| tenant_id                 | 66a02dd6ffd544b5a3cbc9d2844cca8e     |

| updated_at                | 2017-11-13T16:36:46Z                 |

+---------------------------+--------------------------------------+

neutron net-show a709f90b-9f9c-4963-badc-b0f588188a08

neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.

+---------------------------+--------------------------------------+

| Field                     | Value                                |

+---------------------------+--------------------------------------+

| admin_state_up            | True                                 |

| availability_zone_hints   |                                      |

| availability_zones        | nova                                 |

| created_at                | 2017-11-13T20:14:57Z                 |

| description               |                                      |

| id                        | a709f90b-9f9c-4963-badc-b0f588188a08 |

| ipv4_address_scope        |                                      |

| ipv6_address_scope        |                                      |

| is_default                | False                                |

| mtu                       | 1450                                 |

| name                      | ext                                  |

| port_security_enabled     | True                                 |

| project_id                | 66a02dd6ffd544b5a3cbc9d2844cca8e     |

| provider:network_type     | vxlan                                |

| provider:physical_network |                                      |

| provider:segmentation_id  | 15                                   |

| revision_number           | 6                                    |

| router:external           | True                                 |

| shared                    | False                                |

| status                    | ACTIVE                               |

| subnets                   | 714dc6f1-b50c-4ec5-91ef-51903214cd88 |

| tags                      |                                      |

| tenant_id                 | 66a02dd6ffd544b5a3cbc9d2844cca8e     |

| updated_at                | 2017-11-13T20:15:21Z                 |

+---------------------------+--------------------------------------+

ip netns exec qrouter-23b2109e-fa2e-422f-b359-2c1858d7bda3 ssh -i key1 fedora@10.0.100.100

Last login: Tue Nov 14 11:35:31 2017 from 10.0.100.101

[fedora@instance1 ~]$ exit

logout

Connection to 10.0.100.100 closed.

ip netns exec qrouter-23b2109e-fa2e-422f-b359-2c1858d7bda3 ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever

11: qr-813d7579-0c: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN qlen 1000
    link/ether fa:16:3e:fb:f5:3f brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/24 brd 10.0.0.255 scope global qr-813d7579-0c
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fefb:f53f/64 scope link
       valid_lft forever preferred_lft forever

12: qg-26b0144c-44: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UNKNOWN qlen 1000
    link/ether fa:16:3e:82:6c:fc brd ff:ff:ff:ff:ff:ff
    inet 10.0.100.101/24 brd 10.0.100.255 scope global qg-26b0144c-44
       valid_lft forever preferred_lft forever
    inet 10.0.100.100/32 brd 10.0.100.100 scope global qg-26b0144c-44
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe82:6cfc/64 scope link
       valid_lft forever preferred_lft forever

ip netns exec qrouter-23b2109e-fa2e-422f-b359-2c1858d7bda3 ssh -i key1 fedora@10.0.100.100

Last login: Tue Nov 14 11:50:41 2017 from 10.0.100.101

[fedora@instance1 ~]$


ping 10.0.0.1

PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.

64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=2.85 ms

64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=0.854 ms



ping 10.0.100.100

PING 10.0 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by chtsalid
close date 2017-12-14 06:21:05.413092

Comments

Hi, did you tried adding few security group rules ?

Praveen N gravatar imagePraveen N ( 2017-12-10 09:39:46 -0600 )edit

Thanks for your help Praveen! The problem below is the same, I answered you below.

chtsalid gravatar imagechtsalid ( 2017-12-10 11:56:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-12-08 10:25:29 -0600

chtsalid gravatar image

updated 2017-12-14 06:19:56 -0600

Finally I resolved this. My external network had a vlan network type, and therefore had a segmentation id, but my physial router where I have bridged this connection doesnt have any vlan. So to resolve this I created a flat network.

edit flag offensive delete link more

Comments

Hi chtsalid, Could please tell me how you have installed openstack on CentOS7 ? Is it with Packstack or installed manually (single node or multi-node?)

Praveen N gravatar imagePraveen N ( 2017-12-10 09:32:30 -0600 )edit

Hi Praveen, many thanks for your help! I used packstack and configured two nodes, node1(Compute) and node2(all the rest services). My openstack version is pike.

chtsalid gravatar imagechtsalid ( 2017-12-10 11:51:27 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2017-11-14 05:57:10 -0600

Seen: 169 times

Last updated: Dec 14 '17