Ask Your Question
0

openstack cannot ping router & instance cannot ping router

asked 2016-03-31 23:52:00 -0500

you00360842 gravatar image

updated 2016-04-06 12:27:34 -0500

Hi everybody my english is pool , so i can speak chinese

Environment Ubuntu 14.4 LTS

1 Controller , 1 Compute Node nic1 openstack manage nic2 192.168.1.194 (controller) , 192.168.1.123(compute)

Hardware

controller compute

----------------------------------------> Internet | nic1 ---------- nic1 <--- (openstack manage) | router(physical) I nic2 ----------- nic2 192.168.1.194 192.168.1.123

如題所說 我按照openstack install docs 步驟
I follow Openstack install docs. 創建的instance 無法ping
created instance cannot ping router e.g.

+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                            |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| 1ca6a3a2-d480-4786-ae2c-b36d4d6ae243 |      | fa:16:3e:0a:23:90 | {"subnet_id": "012e3d05-eb2a-48c0-b578-d5161af12605", "ip_address": "192.168.48.61"} |
| d7cb117e-2f6b-4c22-84c0-04e6691a8264 |      | fa:16:3e:d6:f1:99 | {"subnet_id": "f99fde42-f6bb-49ab-8eaf-bb74b4e800b7", "ip_address": "172.16.1.1"}    |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
root@Controller:/home/jason/Desktop/Openstack#
root@Controller:/home/jason/Desktop/Openstack#
root@Controller:/home/jason/Desktop/Openstack# ping -c 4 192.168.48.61
PING 192.168.48.61 (192.168.48.61) 56(84) bytes of data.
^C
--- 192.168.48.61 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms

後續步驟也是 VM 也無法對外上網 也不知道要找哪邊的log資訊 看nova , compute log 都找不到什麼錯誤

VM connot ping outside network I don't know where to find log info. nova- * log(Comtroller Node), nova-compute log (Compute Node) cannot find related error.

-----------------------------------------nova-api.log(Controller)-----------------------------------------

2016-03-31 20:33:10.483 14342 INFO nova.osapi_compute.wsgi.server [req-953e4ffb-84a8-4dd0-8feb-a1f075f03b09 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0567269
2016-03-31 20:33:20.942 14343 INFO nova.osapi_compute.wsgi.server [req-48a71608-eaf2-45b5-8eb1-af3223b0dfd4 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0700409
2016-03-31 20:33:31.380 14342 INFO nova.osapi_compute.wsgi.server [req-dc10f627-59c8-48b3-b827-332f4bac1606 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0808971
2016-03-31 20:33:41.809 14342 INFO nova.osapi_compute.wsgi.server [req-c8ed3920-c95e-46e1-93dd-d85eace42fcc 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0558131
2016-03-31 20:33:52.234 14343 INFO nova.osapi_compute.wsgi.server [req-1b706f5c-df48-4c78-8136-061673081500 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0569470
2016-03-31 20:34:02.682 14342 INFO nova.osapi_compute.wsgi.server [req-211b1c11-0972-433f-b4bd-63b58c8a304d 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0707290
2016-03-31 20:34:13.242 14342 INFO nova.osapi_compute.wsgi.server [req-2456d6cb-b8d1-488b-b833-e2aa5699d0cb 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0631590
2016-03-31 20:34:23.692 14342 INFO nova.osapi_compute.wsgi.server [req-92522e02-49c4-4eb9-a3c5-a680ff7fc408 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2/70e4e96a5cd1447a9a8db9fa1e80460d/servers/detail?project_id=70e4e96a5cd1447a9a8db9fa1e80460d HTTP/1.1" status: 200 len: 211 time: 0.0644882
2016-03-31 20:34:34.136 14343 INFO nova.osapi_compute.wsgi.server [req-4ba88f98-02f0-4178-a642-5c6adf9926e4 2d340c3b1d1c4cfa9eb5e4a889fc64ca 70e4e96a5cd1447a9a8db9fa1e80460d - - -] 192.168.1.194 "GET /v2 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-04-04 02:37:19 -0500

hkominos gravatar image

updated 2016-04-08 08:58:50 -0500

You cannot ping the router from the controller. The controller has the router as an other namespace. Try pinging from outside

--edit-- You can actually ping from the Controller your router. The above info is wrong so ignore

Start with these 2. http://docs.openstack.org/liberty/net... http://www.yet.org/2014/09/openvswitc...

edit flag offensive delete link more
0

answered 2016-04-05 00:35:25 -0500

you00360842 gravatar image

updated 2016-04-08 00:54:59 -0500

I solved it.

I set wrong gateway.
god ...

hkominos , thank you very much.

but,I have a new quention.

It's an error of creation instance(VM) .

I failed to create VM with big specification.

Openstack has 5 specification,

flavor

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

| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |

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

| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |

| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |

| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |

| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |

| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |

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

I cann't creat ID>2 specification

I add "scheduler_default_filters=AllHostsFilter" to nova.conf

can create 1~4 specification.

But still cann't create name is " m1.xlarge " VM specification.

I don't know what is wrong.

edit flag offensive delete link more

Comments

http://docs.openstack.org/liberty/networking-guide/intro_network_namespaces.html (http://docs.openstack.org/liberty/net...) http://www.yet.org/2014/09/openvswitch-troubleshooting/ (http://www.yet.org/2014/09/openvswitc...)

start with these 2

hkominos gravatar imagehkominos ( 2016-04-05 02:25:21 -0500 )edit

Good to know that you made it work. you should upvote the answer so others can find it and close the question

hkominos gravatar imagehkominos ( 2016-04-08 09:01:11 -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

1 follower

Stats

Asked: 2016-03-31 23:52:00 -0500

Seen: 374 times

Last updated: Apr 08 '16