instances can't connect whit remote host (169.254.169.254) network is unreachable
Hi everyone
I have 2 nodes
ControllerNode: 172.31.15.167. It has all nova services include nova-compute
ComputeNode: 172.31.15.165. It has installed only nova-api and nova-compute
I have images:
# nova image-list
+------
| ID | Name | Status | Server |
+------
| bfc16412-
I can run an instance
# nova boot cirros1 --image bfc16412-
# nova list
+------
| ID | Name | Status | Networks |
+------
| 809b9b15-
+------
The relevant output of nova console-log is
.......
.......
Starting network...
udhcpc (v1.18.5) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
WARN: /etc/rc3.
cloud-setup: checking http://
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 1/30: up 11.03. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 2/30: up 12.05. request failed
......
......
############ debug start ##############
### /etc/rc.
/etc/rc3.
route: fscanf
### ifconfig -a
eth0 Link encap:Ethernet HWaddr FA:16:3E:29:EF:7A
inet6 addr: fe80::f816:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1706 (1.6 KiB) TX bytes:1224 (1.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
### route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
route: fscanf
### cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
### gateway not found
/etc/rc3.
.......
.......
===== cloud-final: system completely up in 42.36 seconds ====
wget: can't connect to remote host (169.254.169.254): Network is unreachable
wget: can't connect to remote host (169.254.169.254): Network is unreachable
wget: can't connect to remote host (169.254.169.254): Network is unreachable
instance-id:
public-ipv4:
local-ipv4 :
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-userdata: failed to read instance id
WARN: /etc/rc3.
I can't ping the instance
# ping 10.0.3.2
PING 10.0.3.2 (10.0.3.2) 56(84) bytes of data.
From 10.0.3.1 icmp_seq=1 Destination Host Unreachable
# ping 172.31.15.209
PING 172.31.15.209 (172.31.15.209) 56(84) bytes of data.
From 172.31.15.209 icmp_seq=1 Destination Host Unreachable
This is my nova.conf file present in the cloud controller and compute node
##Network Config
--dhcpbridge_
--dhcpbridge=
--network_
--flat_
--flat_
--flat-
--flat_
--public_
--fixed_range= 10.0.3.0/24
--network_size=256
--logdir=
--state_
--lock_
--sql_connectio
--force_
--iscsi_
--libvirt_
--connection_
--root_helper=sudo nova-rootwrap
--verbose
--ec2_private_
--s3_host=
--rabbit_
--ec2_host=
--ec2_dmz_
--image_
--glance_
--auto_
--scheduler_
--metadata_
--api-paste_
--keystone_ec2_url=http://
--auth_
The firewall nat rules are
# iptables -t nat -S
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-N nova-api-OUTPUT
-N nova-api-
-N nova-api-PREROUTING
-N nova-api-float-snat
-N nova-api-snat
-N nova-compute-OUTPUT
-N nova-compute-
-N nova-compute-
-N nova-compute-
-N nova-compute-snat
-N nova-network-OUTPUT
-N nova-network-
-N nova-network-
-N nova-network-
-N nova-network-snat
-N nova-postroutin
-A PREROUTING -j nova-compute-
-A PREROUTING -j nova-network-
-A PREROUTING -j nova-api-PREROUTING
-A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.31.15.167:8773
-A OUTPUT -j nova-compute-OUTPUT
-A OUTPUT -j nova-network-OUTPUT
-A OUTPUT -j nova-api-OUTPUT
-A POSTROUTING -j nova-compute-
-A POSTROUTING -j nova-network-
-A POSTROUTING -j nova-api-
-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-postroutin
-A nova-api-snat -j nova-api-float-snat
-A nova-compute-snat -j nova-compute-
-A nova-network-OUTPUT -d 172.31.15.211/32 -j DNAT --to-destination 10.0.0.5
-A nova-network-OUTPUT -d 172.31.15.209/32 -j DNAT --to-destination 10.0.3.2
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-
-A nova-network-snat -j nova-network-
-A nova-network-snat -s 10.0.3.0/24 -j SNAT --to-source 172.31.15.167
-A nova-postroutin
-A nova-postroutin
-A nova-postroutin
The network config in CloudController is:
# cat /etc/network/
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 172.31.15.167
netmask 255.255.255.0
network 172.31.15.0
broadcast 172.31.15.255
gateway 172.31.15.251
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 200.31.6.34
auto br100
iface br100 inet static
address 10.0.3.1
netmask 255.255.255.0
bridge_stp off
bridge_fd 0
The network config in computeNode is
# cat /etc/network/
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static
address 172.31.15.165
netmask 255.255.255.0
network 172.31.15.0
broadcast 172.31.15.255
gateway 172.31.15.251
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.31.15.106
In the nova log files there aren't error messages. and I don't know why the instances doesn't have IP.
Please Help me
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Daniel Nunez E. for more information if necessary.