cirros instance cannot get ip address
Hi i am working in an all-in-one VM openstack Juno, i launched the cirros instance (private ip 10.1.0.6) and associate to it a floating ip address (10.0.2.18)
My external network is 10.0.2.0/24
the private network is 10.1.0.0/24
a router between the two networks
from the log of the instance it seems like a dhcp problem as it tried to discover the ip address but in vain.
here is the log :
Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Usage: /sbin/cirros-dhcpc <up|down>
No lease, failing
WARN: /etc/rc3.d/S40-network failed
cirros-ds 'net' up at 194.40
checking http://169.254.169.254/2009-04-04/instance-id
failed 1/20: up 194.85. request failed
failed 2/20: up 197.59. request failed
failed 3/20: up 200.13. request failed
failed 4/20: up 202.43. request failed
failed 5/20: up 204.68. request failed
failed 6/20: up 206.99. request failed
failed 7/20: up 209.60. request failed
failed 8/20: up 213.30. request failed
failed 9/20: up 215.56. request failed
failed 10/20: up 217.84. request failed
failed 11/20: up 220.14. request failed
failed 12/20: up 222.43. request failed
failed 13/20: up 224.70. request failed
failed 14/20: up 227.09. request failed
failed 15/20: up 229.56. request failed
failed 16/20: up 231.89. request failed
failed 17/20: up 234.22. request failed
failed 18/20: up 236.58. request failed
failed 19/20: up 238.88. request failed
failed 20/20: up 241.52. request failed
failed to read iid from metadata. tried 20
no results found for mode=net. up 244.38. searched: nocloud configdrive ec2
failed to get instance-id of datasource
Starting dropbear sshd: generating rsa key... generating dsa key... OK
=== system information ===
Platform: Fedora Project OpenStack Nova
Container: none
Arch: x86_64
CPU(s): 2 @ 2124.159 MHz
Cores/Sockets/Threads: 1/2/1
Virt-type: AMD-V
RAM Size: 995MB
Disks:
NAME MAJ:MIN SIZE LABEL MOUNTPOINT
vda 253:0 10737418240
vda1 253:1 10725765120 cirros-rootfs /
vdb 253:16 134217728
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
-----END SSH HOST KEY KEYS-----
=== network info ===
if-info: lo,up,127.0.0.1,8,::1
if-info: eth0,up,,8,fe80::f816:3eff:febe:2828
=== datasource: None None ===
=== cirros: current=0.3.3 uptime=249.88 ===
route: fscanf
=== pinging gateway failed, debugging connection ===
############ debug start ##############
### /etc/init.d/sshd start
Starting dropbear sshd: OK
route: fscanf
### ifconfig -a
eth0 Link encap:Ethernet HWaddr FA:16:3E:BE:28:28
inet6 addr: fe80::f816:3eff:febe:2828/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1358 (1.3 KiB) TX bytes:1132 ...
try assigning ip address statically and try pinging.
also check this site for similar issues there are solution available.
Please, post
If status is ACTIVE, then run:-
When requested steps will be done , we will continue troubleshooting access to nova-metadata server.