Ask Your Question
0

url error [[Errno 101] Network is unreachable]

asked 2011-10-31 07:39:39 -0600

sunny790821 gravatar image

I think, I have problem with DHCP . The compute node doesn't bring ip from dnsmasq-dhcp(from nova-network).

console.log tells me that

cloud-init start running: Mon, 31 Oct 2011 07:12:22 +0000. up 64.47 seconds 2011-10-31 07:12:22,276 - DataSourceEc2.py[WARNING]: waiting for metadata service at http://169.254.169.254/2009-04-04/meta-data/instance-id (http://169.254.169.254/2009-04-04/met...)

2011-10-31 07:12:22,277 - DataSourceEc2.py[WARNING]: 07:12:22 [ 1/30]: url error [[Errno 101] Network is unreachable]

2011-10-31 07:12:23,280 - DataSourceEc2.py[WARNING]: 07:12:23 [ 2/30]: url error [[Errno 101] Network is unreachable]

2011-10-31 07:12:24,284 - DataSourceEc2.py[WARNING]: 07:12:24 [ 3/30]: url error [[Errno 101] Network is unreachable

I have a two node cluster running on Ubuntu 10.04.3 with the Diablo release from ppa:openstack-release/2011.3

Each machine has two NICs, but two NICs is on same network.

I use flatDHCPManager.

Following are the config files of both nodes. This is the cloud controller(nova-api, nova-network, nova-scheduler) configuration. http://pastebin.com/UVBtmvGc

This is the compute node. http://pastebin.com/j582m5rU

Following are network configurations. This is the cloud controllers. http://pastebin.com/w0i42NYP

This is the compute nodes. http://pastebin.com/Tuu8G3zY

The command "ps aux|grep dnsmasq" on compute node shows nobody 1331 0.0 0.0 27708 988 ? S 15:51 0:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253 --dhcp-no-override root 4064 0.0 0.0 7624 928 pts/1 S+ 16:10 0:00 grep --color=auto dnsmasq

The command "ps aux|grep dnsmasq" on controller node shows nobody 7153 0.0 0.0 3968 980 ? S 11:20 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=192.168.100.241 --except-interface=lo --dhcp-range=192.168.100.242,static,120s --dhcp-lease-max=8 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro root 7154 0.0 0.0 3968 412 ? S 11:20 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=192.168.100.241 --except-interface=lo --dhcp-range=192.168.100.242,static,120s --dhcp-lease-max=8 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro root 13110 0.0 0.0 3148 900 pts/3 S+ 16:37 0:00 grep --color=auto dnsmasq

Answer plz.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2011-11-21 02:31:01 -0600

sunny790821 gravatar image

Thanks Vish Ishaya, that solved my question.

edit flag offensive delete link more
0

answered 2011-10-31 08:47:44 -0600

sunny790821 gravatar image

Logs on compute-node Oct 31 17:45:00 server3 kernel: [ 6798.085267] nbd15: unknown partition table Oct 31 17:45:03 server3 kernel: [ 6800.575174] EXT4-fs (nbd15): mounted filesystem with ordered data mode Oct 31 17:45:04 server3 kernel: [ 6801.351280] JBD: barrier-based sync failed on nbd15-8 - disabling barriers Oct 31 17:45:05 server3 kernel: [ 6802.534954] nbd15: NBD_DISCONNECT Oct 31 17:45:05 server3 kernel: [ 6802.535066] nbd15: Receive control failed (result -32) Oct 31 17:45:05 server3 kernel: [ 6802.535116] nbd15: shutting down socket Oct 31 17:45:05 server3 kernel: [ 6802.535120] nbd15: queue cleared Oct 31 17:45:05 server3 kernel: [ 6802.784744] type=1503 audit(1320050705.565:25): operation="open" pid=5902 parent=1229 profile="/usr/lib/libvirt/virt-aa-helper" requested_mask="::r" denied_mask="::r" fsuid=0 ouid=108 name="/var/lib/nova/instances/_base/632667547e7cd3e0466547863e1207a8c0c0c549_sm" Oct 31 17:45:05 server3 kernel: [ 6802.865133] type=1505 audit(1320050705.645:26): operation="profile_load" pid=5903 name="libvirt-8f1bad0d-e80b-48bc-ce21-5fa4875f3ac3" Oct 31 17:45:05 server3 kernel: [ 6802.953215] device vnet1 entered promiscuous mode Oct 31 17:45:05 server3 kernel: [ 6802.953873] br100: port 3(vnet1) entering forwarding state Oct 31 17:45:06 server3 kernel: [ 6803.238066] kvm: 6052: cpu0 unhandled wrmsr: 0x198 data 0 Oct 31 17:45:07 server3 avahi-daemon[932]: Registering new address record for fe80::fc16:3eff:fe27:6e49 on vnet1.*. Oct 31 17:45:16 server3 kernel: [ 6813.390016] vnet1: no IPv6 routers present

edit flag offensive delete link more
0

answered 2011-11-03 18:29:06 -0600

I am also seeing this problem. The compute node dnsmasq appears to be misconfigured.

edit flag offensive delete link more
0

answered 2011-11-03 18:36:32 -0600

vishvananda gravatar image

There were a few bugs in the diablo ppa. If you want to install from packages, i would suggest using oneiric and the canonical packages which have backported bugs.

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: 2011-10-31 07:39:39 -0600

Seen: 1,126 times

Last updated: Nov 21 '11