Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I still have the same problem: 2011-04-22 17:29:42,257 - DataSourceEc2.py[WARNING]: waiting for metadata service at http://169.254.169.254/2009-04-04/meta-data/instance-id

2011-04-22 17:29:42,259 - DataSourceEc2.py[WARNING]: 17:29:42 [ 1/100]: url error [[Errno 101] Network is unreachable]

Just to remind, my config is now: $ 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 --libvirt_type=kvm --network_manager=nova.network.manager.FlatDHCPManager --fixed_range=138.96.224/27 --flat_network_dhcp_start=138.96.126.225 --flat_interface=eth0 --flat_injected=False

and iptables-save gives

Generated by iptables-save v1.4.10 on Fri Apr 22 19:31:57 2011

*nat :PREROUTING ACCEPT [0:0] :INPUT ACCEPT [0:0] :OUTPUT ACCEPT [6:360] :POSTROUTING ACCEPT [6:360] :nova-compute-OUTPUT - [0:0] :nova-compute-POSTROUTING - [0:0] :nova-compute-PREROUTING - [0:0] :nova-compute-floating-snat - [0:0] :nova-compute-snat - [0:0] :nova-network-OUTPUT - [0:0] :nova-network-POSTROUTING - [0:0] :nova-network-PREROUTING - [0:0] :nova-network-floating-snat - [0:0] :nova-network-snat - [0:0] :nova-postrouting-bottom - [0:0] -A PREROUTING -j nova-compute-PREROUTING -A PREROUTING -j nova-network-PREROUTING -A OUTPUT -j nova-compute-OUTPUT -A OUTPUT -j nova-network-OUTPUT -A POSTROUTING -j nova-compute-POSTROUTING -A POSTROUTING -j nova-network-POSTROUTING -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535 -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p udp -j MASQUERADE --to-ports 1024-65535 -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE -A POSTROUTING -j nova-postrouting-bottom -A nova-compute-snat -j nova-compute-floating-snat -A nova-network-POSTROUTING -s 138.96.224.0/27 -d 10.128.0.0/24 -j ACCEPT -A nova-network-POSTROUTING -s 138.96.224.0/27 -d 138.96.224.0/27 -j ACCEPT -A nova-network-PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 138.96.126.4:8773 -A nova-network-snat -j nova-network-floating-snat -A nova-network-snat -s 138.96.224.0/27 -j SNAT --to-source 138.96.126.4 -A nova-postrouting-bottom -j nova-compute-snat -A nova-postrouting-bottom -j nova-network-snat COMMIT

Completed on Fri Apr 22 19:31:57 2011

Generated by iptables-save v1.4.10 on Fri Apr 22 19:31:57 2011

*mangle :PREROUTING ACCEPT [15392:1070864] :INPUT ACCEPT [15390:1070800] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [15266:1065332] :POSTROUTING ACCEPT [15266:1065332] -A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill COMMIT

Completed on Fri Apr 22 19:31:57 2011

Generated by iptables-save v1.4.10 on Fri Apr 22 19:31:57 2011

*filter :INPUT ACCEPT [8347:581314] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [8270:577902] :nova-compute-FORWARD - [0:0] :nova-compute-INPUT - [0:0] :nova-compute-OUTPUT - [0:0] :nova-compute-inst-33 - [0:0] :nova-compute-local - [0:0] :nova-compute-sg-fallback - [0:0] :nova-filter-top - [0:0] :nova-network-FORWARD - [0:0] :nova-network-INPUT - [0:0] :nova-network-OUTPUT - [0:0] :nova-network-local - [0:0] -A INPUT -j nova-compute-INPUT -A INPUT -j nova-network-INPUT -A INPUT -i virbr0 -p udp -m udp --dport 53 -j ACCEPT -A INPUT -i virbr0 -p tcp -m tcp --dport 53 -j ACCEPT -A INPUT -i virbr0 -p udp -m udp --dport 67 -j ACCEPT -A INPUT -i virbr0 -p tcp -m tcp --dport 67 -j ACCEPT -A FORWARD -j nova-filter-top -A FORWARD -j nova-compute-FORWARD -A FORWARD -j nova-network-FORWARD -A FORWARD -d 192.168.122.0/24 -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT -A FORWARD -s 192.168.122.0/24 -i virbr0 -j ACCEPT -A FORWARD -i virbr0 -o virbr0 -j ACCEPT -A FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable -A FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable -A OUTPUT -j nova-filter-top -A OUTPUT -j nova-compute-OUTPUT -A OUTPUT -j nova-network-OUTPUT -A nova-compute-inst-33 -m state --state INVALID -j DROP -A nova-compute-inst-33 -m state --state RELATED,ESTABLISHED -j ACCEPT -A nova-compute-inst-33 -s 138.96.126.1/32 -p udp -m udp --sport 67 --dport 68 -j ACCEPT -A nova-compute-inst-33 -s 138.96.126.0/24 -j ACCEPT -A nova-compute-inst-33 -p icmp -j ACCEPT -A nova-compute-inst-33 -p tcp -m tcp --dport 22 -j ACCEPT -A nova-compute-inst-33 -j nova-compute-sg-fallback -A nova-compute-local -d 138.96.126.203/32 -j nova-compute-inst-33 -A nova-compute-sg-fallback -j DROP -A nova-filter-top -j nova-compute-local -A nova-filter-top -j nova-network-local -A nova-network-FORWARD -i br100 -j ACCEPT -A nova-network-FORWARD -o br100 -j ACCEPT COMMIT

Completed on Fri Apr 22 19:31:57 2011

Thanks for your time.