Ask Your Question

Revision history [back]

Hello everyone, I've got the same problem than Richard. I'm trying (hard) to setup a Nova on Single Node, with just one NIC.

I can create, and run instances, but: - I'm not able to ping this instances from Cloud Controller / NOva host - This instances consoles shows "DataSourceEc2.py[WARNING]: 10:04:11 [ 1/100]: url error [[Errno 113] No route to host]" errors

Below, my configurations:

mgr01:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.10 DISTRIB_CODENAME=maverick DISTRIB_DESCRIPTION="Ubuntu 10.10"

==============================================================================

mgr01:~# cat /etc/nova/nova.conf --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --s3_host=188.138.101.59 --rabbit_host=188.138.101.59 --cc_host=188.138.101.59 --ec2_url=http://188.138.101.59:8773/services/Cloud --fixed_range=192.168.0.0/24 --network_size=256 --FAKE_subdomain=ec2 --routing_source_ip=188.138.101.59 --verbose --sql_connection=mysql://root:pass@188.138.101.59/nova --network_manager=nova.network.manager.FlatDHCPManager --flat_network_dhcp_start=192.168.0.2 --flat_interface=eth0 --flat_injected=False --public_interface=eth0

============================================================================== mgr01:~# ip addr 1: lo: <loopback,up,lower_up> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet 169.254.169.254/32 scope link lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP qlen 1000 link/ether 00:19:99:9a:9c:04 brd ff:ff:ff:ff:ff:ff inet6 fe80::219:99ff:fe9a:9c04/64 scope link valid_lft forever preferred_lft forever 3: br100: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN link/ether 00:19:99:9a:9c:04 brd ff:ff:ff:ff:ff:ff inet 188.138.101.59/24 brd 188.138.101.255 scope global br100 inet 192.168.0.1/26 brd 192.168.0.63 scope global br100 inet6 fe80::219:99ff:fe9a:9c04/64 scope link valid_lft forever preferred_lft forever 4: virbr0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN link/ether e2:6b:78:fa:f5:8c brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0

============================================================================== mgr01:~# nova-manage service list mgr01.cloudzen.com.ar nova-network enabled :-) 2011-08-13 03:56:12 mgr01.cloudzen.com.ar nova-compute enabled :-) 2011-08-13 03:56:12 mgr01.cloudzen.com.ar nova-scheduler enabled :-) 2011-08-13 03:56:10

============================================================================== mgr01:~# nova list +----+----------+--------+-----------+-------------+ | ID | Name | Status | Public IP | Private IP | +----+----------+--------+-----------+-------------+ | 1 | Server 1 | ACTIVE | | 192.168.0.2 | | 2 | Server 2 | ACTIVE | | 192.168.0.3 | | 3 | Server 3 | ACTIVE | | 192.168.0.4 | +----+----------+--------+-----------+-------------+

============================================================================== mgr01:~# iptables -t nat -L -v Chain PREROUTING (policy ACCEPT 1548 packets, 246K bytes) pkts bytes target prot opt in out source destination
1548 246K nova-compute-PREROUTING all -- any any anywhere anywhere
1548 246K nova-network-PREROUTING all -- any any anywhere anywhere

Chain POSTROUTING (policy ACCEPT 1543 packets, 243K bytes) pkts bytes target prot opt in out source destination
1544 243K nova-compute-POSTROUTING all -- any any anywhere anywhere
1544 243K nova-network-POSTROUTING all -- any any anywhere anywhere
1543 243K nova-postrouting-bottom all -- any any anywhere anywhere
0 0 MASQUERADE tcp -- any any 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535 0 0 MASQUERADE udp -- any any 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535 0 0 MASQUERADE all -- any any 192.168.122.0/24 !192.168.122.0/24

Chain OUTPUT (policy ACCEPT 3 packets, 204 bytes) pkts bytes target prot opt in out source destination
3 204 nova-compute-OUTPUT all -- any any anywhere anywhere
3 204 nova-network-OUTPUT all -- any any anywhere anywhere

Chain nova-compute-OUTPUT (1 references) pkts bytes target prot opt in out source destination

Chain nova-compute-POSTROUTING (1 references) pkts bytes target prot opt in out source destination

Chain nova-compute-PREROUTING (1 references) pkts bytes target prot opt in out source destination

Chain nova-compute-floating-snat (1 references) pkts bytes target prot opt in out source destination

Chain nova-compute-snat (1 references) pkts bytes target prot opt in out source destination
1543 243K nova-compute-floating-snat all -- any any anywhere anywhere

Chain nova-network-OUTPUT (1 references) pkts bytes target prot opt in out source destination

Chain nova-network-POSTROUTING (1 references) pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- any any 192.168.0.0/24 10.128.0.0/24
1 84 ACCEPT all -- any any 192.168.0.0/24 192.168.0.0/24

Chain nova-network-PREROUTING (1 references) pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- any any anywhere 169.254.169.254 tcp dpt:www to:188.138.101.59:8773

Chain nova-network-floating-snat (1 references) pkts bytes target prot opt in out source destination

Chain nova-network-snat (1 references) pkts bytes target prot opt in out source destination
1543 243K nova-network-floating-snat all -- any any anywhere anywhere
0 0 SNAT all -- any any 192.168.0.0/24 anywhere to:188.138.101.59

Chain nova-postrouting-bottom (1 references) pkts bytes target prot opt in out source destination
1543 243K nova-compute-snat all -- any any anywhere anywhere
1543 243K nova-network-snat all -- any any anywhere anywhere

============================================================================== mgr01:~# brctl show bridge name bridge id STP enabled interfaces br100 8000.0019999a9c04 no eth0 vnet0 vnet1 vnet2 virbr0 8000.000000000000 yes

============================================================================== mgr01:~# curl http://169.254.169.254 <html><body>

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

</body></html>

==============================================================================

Any help, or suggestions please!? I could connect to the VMs consoles using virsh console command :S