Openstack : Is it possible to Ping VM created with Fake Nova drivers ?

asked 2017-09-20 08:51:12 -0600

anonymous user

Anonymous

updated 2017-09-20 09:00:09 -0600

Hi,

I have created few instances, on Nova compute with "fake.FakeDriver" nova driver. they are working fine.They have proper IP assigned from dnsmasq. I would like to ping the IPAddress Assigned to each of those VMs. Problem is though VMs are active, Neutron is showing ports are down for each VM (Fake VM).

Just for info, I am able to ping dnsmasq ip (10.0.0.2, in my case), from network namespace.

[root@stack ~(keystone_admin)]# ip netns exec qdhcp-de6b5939-1b7f-43f6-8204-a275138ac0d7 ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.049 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.068 ms
^C
--- 10.0.0.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.049/0.058/0.068/0.012 ms

I thought, i can Mimic the Network with by enabling "fake_network = True". however that didnt help either.

[root@stack ~(keystone_admin)]# neutron port-show 93faa332-9be5-4e1a-83f6-9ac997d0d61e
+-----------------------+---------------------------------------------------------------------------------+
| Field                 | Value                                                                           |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up        | True                                                                            |
| allowed_address_pairs |                                                                                 |
| binding:host_id       | stack.lab                                                                       |
| binding:profile       | {}                                                                              |
| binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}                                  |
| binding:vif_type      | ovs                                                                             |
| binding:vnic_type     | normal                                                                          |
| created_at            | 2017-09-20T13:25:55                                                             |
| description           |                                                                                 |
| device_id             | 89f61d39-00c7-4d02-bafb-3f442837b7af                                            |
| device_owner          | compute:nova                                                                    |
| extra_dhcp_opts       |                                                                                 |
| fixed_ips             | {"subnet_id": "1ef76b0b-734b-487b-b679-d6394ea5a326", "ip_address": "10.0.0.7"} |
| id                    | 93faa332-9be5-4e1a-83f6-9ac997d0d61e                                            |
| mac_address           | fa:16:3e:90:1d:c7                                                               |
| name                  |                                                                                 |
| network_id            | de6b5939-1b7f-43f6-8204-a275138ac0d7                                            |
| security_groups       | 21523874-d5ec-42bb-b77b-4b54884dea9e                                            |
| status                | DOWN                                                                            |
| tenant_id             | f1ae9b9f44f947709b8535201a007693                                                |
| updated_at            | 2017-09-20T13:25:55                                                             |
+-----------------------+---------------------------------------------------------------------------------+

Is there a way we can spawn VM with Fake nova driver, and ping the IP of that VM ?

edit retag flag offensive close merge delete