Cannot ping instance after creating vm (using quantum networking)
Hi there,
I attempted to follow the steps outlined here to configure an initial network for a tenant/vm:
http://docs.openstack.org/trunk/openstack-network/admin/content/demo_logical_network_config.html (http://docs.openstack.org/trunk/opens...)
The primary difference I made from the steps is that I setup the external network to be shared.
1) quantum net-create --tenant-id db6ffb835f294f86979998dc65b59b0b net1 --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 1
id = 5ca4b65d-6d54-4b2b-b783-2965702ef1cd
2) quantum subnet-create --tenant-id db6ffb835f294f86979998dc65b59b0b net1 172.16.1.0/24
id = e848983f-dd27-4a33-a833-ebcbd867ab02
3) quantum net-create ext_net --shared --router:external=True
id = 766c713e-3778-4497-bbb5-e816dffc4289
4) quantum subnet-create ext_net --allocation-pool start=1.1.1.130,end=1.1.1.249 --gateway 1.1.1.1 1.1.1.0/24 -- --enable_dhcp=False
id = 03221555-3c1c-4e84-963e-bae1b077f279
5) quantum router-create --tenant_id db6ffb835f294f86979998dc65b59b0b router1
id = 9aa3fb8a-d774-4a7b-9478-b64f12ce7eb9
6) quantum router-interface-add 9aa3fb8a-d774-4a7b-9478-b64f12ce7eb9 e848983f-dd27-4a33-a833-ebcbd867ab02
7) quantum router-gateway-set 9aa3fb8a-d774-4a7b-9478-b64f12ce7eb9 766c713e-3778-4497-bbb5-e816dffc4289
8) Launched a VM (NOTE: For some reason I didn't need to allocated an ip). Here is the VM information:
$ nova list +--------------------------------------+---------+--------+------------------------------------------+ | ID | Name | Status | Networks | +--------------------------------------+---------+--------+------------------------------------------+ | 5fdc74be-b2e3-4bcb-8429-4d8f9f30fbcd | TestVM1 | ACTIVE | ext_net=1.1.1.131; net1=172.16.1.2 | +--------------------------------------+---------+--------+------------------------------------------+
I had a couple of questions
1) According to the quantum documention page, I should have been required to allocate a floating ip first. However, it seems to automatically be allocated when the vm booted. I haven't defined auto_assign_floating_ip, and it appears to be false by default (according to nova-scheduler.log). Is there a reason why didn't I need to allocate a floating ip?
2) I can't ssh or ping this instance. On the nova controller and the quantum network node, I get destination unreachable; on the compute node, I get "ping: sendmsg: Operation not permitted". What step(s) am I potentially missing when configuring this vm's network?
Using cloud archive, OpenStack Folsom.
Thank you in advance! Ed