Ask Your Question
0

Two networks, one is reachable, the other is not. Why?

asked 2012-05-15 01:38:42 -0500

guestly gravatar image

I have created two networks under the Nova+Quantum+Openvswitch. 10.10.10.0/24 and 8.8.8.0/24, I created VM under both of the tow networks. But 10.10.10.0 network is reachable, the other is not. My configuration is as below:

1) Nova services:

nova-manage service list

2012-05-15 09:30:38 DEBUG nova.utils [req-6daf33ee-b4cb-48fd-bf9f-6e346faf3bbf None None] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=9555) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658 Binary Host Zone Status State Updated_At nova-compute cc202 nova enabled :-) 2012-05-15 01:30:29 nova-network cc202 nova enabled :-) 2012-05-15 01:30:37 nova-scheduler cc202 nova enabled :-) 2012-05-15 01:30:37 nova-consoleauth cc202 nova enabled :-) 2012-05-15 01:30:37

2) Nova networks:

nova-manage network list

id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid
2012-05-15 09:31:53 DEBUG nova.utils [req-a83b7b23-bc86-42f1-a67e-52c09951ff2e None None] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=9820) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658 10 10.10.10.0/24 None 10.10.10.2 8.8.4.4 None None None 9bfef0dc-e1d6-41fa-bf0c-4ed7db2a2f70 11 8.8.8.0/24 None 8.8.8.2 8.8.4.4 None None None 590be7b5-0d57-4a11-82ae-0bdc94dfd34c

3) VMs:

nova list

+--------------------------------------+----------------------------+--------+-------------------+ | ID | Name | Status | Networks | +--------------------------------------+----------------------------+--------+-------------------+ | 2ed0ae69-8e90-4bc0-985b-9452a1b14521 | ubuntu1204_ci_amd64 | ACTIVE | public=10.10.10.2 | | 81b0c4fe-4ab3-4897-a4d4-ad434f5b0e95 | ubuntu1204_ci_amd64_02 | ACTIVE | public=10.10.10.3 | | 8ed69dd6-c0a2-4273-93d5-fd3fd8b2d146 | ubuntu1204_ci_amd64_public | ACTIVE | public=8.8.8.2 | +--------------------------------------+----------------------------+--------+-------------------+

4) Network connectivity: root@cc202:/var/log/nova# ping 10.10.10.2 PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data. 64 bytes from 10.10.10.2: icmp_req=1 ttl=64 time=0.261 ms 64 bytes from 10.10.10.2: icmp_req=2 ttl=64 time=0.328 ms 64 bytes from 10.10.10.2: icmp_req=3 ttl=64 time=0.293 ms 64 bytes from 10.10.10.2: icmp_req=4 ttl=64 time=0.292 ms

ping 8.8.8.2

PING 8.8.8.2 (8.8.8.2) 56(84) bytes of data. From 10.131.0.244 icmp_seq=1 Destination Host Unreachable From 10.131.0.244 icmp_seq=2 Destination Host Unreachable From 10.131.0.244 icmp_seq=3 Destination Host Unreachable ^C --- 8.8.8.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4999ms pipe 3

But,

ping 8.8.8.1

PING 8.8.8.1 (8.8.8.1) 56(84) bytes of data. 64 bytes from 8.8.8.1: icmp_req=1 ttl=64 time=0.055 ms 64 bytes from 8.8.8.1: icmp_req=2 ttl=64 time=0.045 ms 64 bytes from 8.8.8.1: icmp_req=3 ttl=64 time=0.045 ms ^C --- 8.8.8.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms

I wonder how this ... (more)

edit retag flag offensive close merge delete

15 answers

Sort by ยป oldest newest most voted
0

answered 2012-05-17 05:49:36 -0500

guestly gravatar image

To Somik Behera, Thanks for your reply. To Dan, still waiting for your reply.~

edit flag offensive delete link more
0

answered 2012-05-16 17:20:01 -0500

somikbehera gravatar image

Hi Havent,

Based on your environment details, you two shared networks:

1) 10.10.10.0/24 -> gateway @ 10.10.10.1 2) 8.8.8.0/24 ->gateway @ 8.8.8.1

Since you have created both of these networks as "shared"/public networks, any VM on any network can ping the gateways, which is what you are seeing.

Second, the VMs on 10.10.10.0/24 network, dont seem to have an IP on 8.8.8.0/24 network based on your 'nova list' output. This can be due to incompatibility with your guest image or the way you are spinning up the VMs the command or API call to launch the VM. It would be helpful if you can provide that command or API call as well.

I also noticed that you were using FlatDHCPManager before QuantumManager, in order to migrate from FlatDHCPManager to QuantumManager, you are required to delete all network and VMs created using FlatDHCPManager before re-launching nova-network with QuantumManager.

Another question for you, are you using Nova DHCP or Fixed IP for IP assignment?

Thanks,

s0mik

================== Your environment=======

nova list

+--------------------------------------+----------------------------+--------+-------------------+ | ID | Name | Status | Networks | +--------------------------------------+----------------------------+--------+-------------------+ | 2ed0ae69-8e90-4bc0-985b-9452a1b14521 | ubuntu1204_ci_amd64 | ACTIVE | public=10.10.10.2 | | 81b0c4fe-4ab3-4897-a4d4-ad434f5b0e95 | ubuntu1204_ci_amd64_02 | ACTIVE | public=10.10.10.3 | | 8ed69dd6-c0a2-4273-93d5-fd3fd8b2d146 | ubuntu1204_ci_amd64_public | ACTIVE | public=8.8.8.2 | +--------------------------------------+----------------------------+--------+-------------------+

4) Network connectivity: root@cc202:/var/log/nova# ping 10.10.10.2 PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data. 64 bytes from 10.10.10.2: icmp_req=1 ttl=64 time=0.261 ms 64 bytes from 10.10.10.2: icmp_req=2 ttl=64 time=0.328 ms 64 bytes from 10.10.10.2: icmp_req=3 ttl=64 time=0.293 ms 64 bytes from 10.10.10.2: icmp_req=4 ttl=64 time=0.292 ms

ping 8.8.8.2

PING 8.8.8.2 (8.8.8.2) 56(84) bytes of data. From 10.131.0.244 icmp_seq=1 Destination Host Unreachable From 10.131.0.244 icmp_seq=2 Destination Host Unreachable From 10.131.0.244 icmp_seq=3 Destination Host Unreachable ^C --- 8.8.8.2 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4999ms pipe 3

But,

ping 8.8.8.1

PING 8.8.8.1 (8.8.8.1) 56(84) bytes of data. 64 bytes from 8.8.8.1: icmp_req=1 ttl=64 time=0.055 ms 64 bytes from 8.8.8.1: icmp_req=2 ttl=64 time=0.045 ms 64 bytes from 8.8.8.1: icmp_req=3 ttl=64 time=0.045 ms ^C --- 8.8.8.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms

I wonder how this situation happened? Thanks.

edit flag offensive delete link more
0

answered 2012-05-17 02:09:21 -0500

somikbehera gravatar image

When you list output of nova-manage network list, there appears to be 'None' in the project field, therefore the networks defaulted to be being shared/public networks.

To create private networks, check out Quantum admin guide - http://docs.openstack.org/trunk/openstack-network/admin/content/index.html (http://docs.openstack.org/trunk/opens...)

Similarly, for DHCP to work, you need to use a flag quantum_use_dhcp=True in your nova.conf on nova-network node. The admin guide linked above should have those instructions as well.

Thanks, Somik

edit flag offensive delete link more
0

answered 2012-05-24 16:28:53 -0500

somikbehera gravatar image

Hi Haven't,

In my experience, I haven't seen your issue in production style deployment without devstack. In those scenarios, nova-network runs on a dedicated server, and nova-compute runs on separate servers. If you can try to create a production set-up as your testing production topologies, and see if you that solves the issue you have encountered.

Thanks, Somik

edit flag offensive delete link more
0

answered 2012-07-06 01:06:40 -0500

guestly gravatar image

Thanks Somik Behera, that solved my question.

edit flag offensive delete link more

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: 2012-05-15 01:38:42 -0500

Seen: 139 times

Last updated: Jul 06 '12