Cannot PING virtual machine created by Openstack

Hi Guys
I have a issue, I created some of Virtual Machine via Openstack , which are associated with either private network or public network. But I cannot ping them from the host locally. I suppose I missed something to make them to route each other, but I do not know how to make it, could you offer me some clues ? thanks 

Lester 

[root@laas-pikecoa-course:~]# openstack server list 
+--------------------------------------+-----------+--------+--------------------+--------+---------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+-----------+--------+--------------------+--------+---------+
| e037f372-433f-4182-b288-904cf5c95cee | VM2 | ACTIVE | private=10.0.0.12 | | m1.tiny |
| e986ec0f-dccd-4e52-a6c7-5bdb989f1339 | VM1 | ACTIVE | private=10.0.0.10 | | m1.tiny |
| a52d3909-2552-4918-ac27-64d8ce1dbaaf | Appserver | ACTIVE | public=172.24.4.4 | cirros | m1.tiny |
| 42179b77-f7a2-4e64-a2a4-642ec029e8bc | Webserver | ACTIVE | public=172.24.4.12 | cirros | m1.tiny |
+--------------------------------------+-----------+--------+--------------------+--------+---------+


[root@laas-pikecoa-course:~]# ping 172.24.4.4

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

^C

--- 172.24.4.4 ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 999ms

[root@laas-pikecoa-course:~]# ping 172.24.4.12

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

^C

--- 172.24.4.12 ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 999ms

[root@laas-pikecoa-course:~]# ping 10.0.0.12

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

^C

--- 10.0.0.12 ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 999ms

[root@laas-pikecoa-course:~]# ping 10.0.0.10

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

^C

--- 10.0.0.10 ping statistics ---

2 packets transmitted, 0 received, 100% packet loss, time 999ms

[root@laas-pikecoa-course:~]# 







 
  • post-author-pic
    Amy M
    11-26-2018

    Have you created a security group rule to allow you to ping? Also, can you confirm which lab you're currently in?

  • post-author-pic
    Lester T
    11-27-2018

    Hi Amy; I use "manage openstack policy" lab to create VMs without enabling security group. Actually, I use other labs to create the VMs, but the result is same --- cannot ping VM from the local host.  

  • post-author-pic
    Amy M
    11-27-2018

    That particular lab from the Deploying and Managing OpenStack Pike course is running on CentOS7, even with a security group rule in place to allow ping you would need to use namespaces (netns) in order to access the VM.  This is reviewed in this lecture from the new COA course:

    https://linuxacademy.com/cp/courses/lesson/course/1925/lesson/10/module/194

    And this lab from that course will allow you to use namespaces or IP to connect to an instance.

    https://linuxacademy.com/cp/livelabs/view/id/498

  • post-author-pic
    Lester T
    11-28-2018

    Thanks, Amy. I am going to check it following this guide. 

Looking For Team Training?

Learn More