[Openstack-operators] [Nova] Unable to login to instance

Warad, Manjunath (Nokia - SG) manjunath.warad at nokia.com
Fri Sep 16 00:44:49 UTC 2016


Any workarounds to overcome this issue? I am basically stuck with this...

I cannot access via ssh as well, tried with private and public network to launch instance...

1. With private network:

- dhcp can assign an IP address successfully, but the subnet doesn't exist on host so I'm unable to access the instance.
Logs from instance launch...
------------------------------------
no results found for mode=local. up 15.72. searched: nocloud configdrive ec2
Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending select for 10.0.0.3...
Lease of 10.0.0.3 obtained, lease time 86400
route: SIOCADDRT: File exists
WARN: failed: route add -net "0.0.0.0/0" gw "10.0.0.1"
cirros-ds 'net' up at 17.90
checking http://169.254.169.254/2009-04-04/instance-id
successful after 1/20 tries: up 18.65. iid=i-00000003
failed to get http://169.254.169.254/2009-04-04/meta-data/public-keys
warning: no ec2 metadata for public-keys
failed to get http://169.254.169.254/2009-04-04/user-data
warning: no ec2 metadata for user-data


=== network info ===
if-info: lo,up,127.0.0.1,8,::1
if-info: eth0,up,10.0.0.3,24,fe80::f816:3eff:fe44:7613
ip-route:default via 10.0.0.1 dev eth0 
ip-route:10.0.0.0/24 dev eth0  src 10.0.0.3 
ip-route:169.254.169.254 via 10.0.0.1 dev eth0 
=== datasource: ec2 net ===
 -------------------------------------

IP addresses on the host machine (devstack)
Interface     	IP Addr
br-ex           	172.24.4.1 
enp0s3		172.16.1.71
virbr0		192.168.122.1

devstack at devstack:~/devstack$ route
Kernel IP routing table
Destination     	Gateway         	Genmask         	Flags 	Metric 		Ref    	Use 	Iface
default         	home            	0.0.0.0         	UG    	0      		0        	0 	enp0s3
10.0.0.0        	172.24.4.4      	255.255.255.0   	UG    	0      		0        	0 	br-ex
172.16.0.0      	*               	255.255.0.0     	U     	0      		0        	0 	enp0s3
172.24.4.0      	*               	255.255.255.0   	U     	0      		0        	0 	br-ex
192.168.122.0   	*               	255.255.255.0   	U     	0      		0        	0 	virbr0

2. With public network:

- failed to get dhcp IP address assigned..

Logs from instance launch...
------------------------------
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


=== network info ===
if-info: lo,up,127.0.0.1,8,::1
if-info: eth0,up,,8,fe80::f816:3eff:fe74:3c4b
=== datasource: None None ===
=== cirros: current=0.3.4 uptime=250.37 ===
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:74:3C:4B  
          inet6 addr: fe80::f816:3eff:fe74:3c4b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 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:608 (608.0 B)  TX bytes:1132 (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:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1020 (1020.0 B)  TX bytes:1020 (1020.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
/sbin/cirros-status: line 1: can't open /etc/resolv.conf: no such file
### pinging nameservers
### uname -a
Linux cirros 3.2.0-80-virtual #116-Ubuntu SMP Mon Mar 23 17:28:52 UTC 2015 x86_64 GNU/Linux
### lsmod
Module                  Size  Used by    Not tainted
nls_iso8859_1          12713  0 
nls_cp437              16991  0 
vfat                   17585  0 
fat                    61512  1 vfat
isofs                  40259  0 
ip_tables              27473  0 
x_tables               29891  1 ip_tables
pcnet32                42119  0 
8139cp                 27360  0 
ne2k_pci               13691  0 
8390                   18856  1 ne2k_pci
e1000                 108589  0 
acpiphp                24231  0 
### dmesg | tail
[    4.426901] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[    4.476572] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend at alpha.franken.de
[    4.525105] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.966370] kjournald starting.  Commit interval 5 seconds
[    5.967498] EXT3-fs (vda): mounted filesystem with ordered data mode
[    6.488994] kjournald starting.  Commit interval 5 seconds
[    6.598656] EXT3-fs (vda): using internal journal
[    6.598764] EXT3-fs (vda): mounted filesystem with ordered data mode
[   12.889627] EXT3-fs (vda): using internal journal
[   30.121342] eth0: no IPv6 routers present
### tail -n 25 /var/log/messages
Sep 15 04:10:47 cirros kern.info kernel: [    4.274717] acpiphp: Slot [18] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.274956] acpiphp: Slot [19] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.275178] acpiphp: Slot [20] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.275451] acpiphp: Slot [21] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.275676] acpiphp: Slot [22] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.275989] acpiphp: Slot [23] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.276246] acpiphp: Slot [24] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.276682] acpiphp: Slot [25] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.276935] acpiphp: Slot [26] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.280297] acpiphp: Slot [30] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.280703] acpiphp: Slot [31] registered
Sep 15 04:10:47 cirros kern.info kernel: [    4.324304] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
Sep 15 04:10:47 cirros kern.info kernel: [    4.324685] e1000: Copyright (c) 1999-2006 Intel Corporation.
Sep 15 04:10:47 cirros kern.info kernel: [    4.382339] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
Sep 15 04:10:47 cirros kern.info kernel: [    4.426901] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
Sep 15 04:10:47 cirros kern.info kernel: [    4.476572] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend at alpha.franken.de
Sep 15 04:10:47 cirros kern.info kernel: [    4.525105] ip_tables: (C) 2000-2006 Netfilter Core Team
Sep 15 04:10:47 cirros kern.info kernel: [    5.966370] kjournald starting.  Commit interval 5 seconds
Sep 15 04:10:47 cirros kern.info kernel: [    5.967498] EXT3-fs (vda): mounted filesystem with ordered data mode
Sep 15 04:10:47 cirros kern.info kernel: [    6.488994] kjournald starting.  Commit interval 5 seconds
Sep 15 04:10:47 cirros kern.info kernel: [    6.598656] EXT3-fs (vda): using internal journal
Sep 15 04:10:47 cirros kern.info kernel: [    6.598764] EXT3-fs (vda): mounted filesystem with ordered data mode
Sep 15 04:10:47 cirros kern.info kernel: [   12.889627] EXT3-fs (vda): using internal journal
Sep 15 04:11:03 cirros kern.debug kernel: [   30.121342] eth0: no IPv6 routers present
Sep 15 04:14:41 cirros authpriv.info dropbear[305]: Running in background
############ debug end   ##############
------------------------------

I would be happy to provide more info if required.

Any help is much appreciated.

Regards,
M


-----Original Message-----
From: Vincent Legoll (IdGC) [mailto:vincent.legoll at idgrilles.fr] 
Sent: Wednesday, 14 September, 2016 5:33 AM
To: Kostiantyn.Volenbovskyi at swisscom.com; openstack-operators at lists.openstack.org
Subject: Re: [Openstack-operators] [Nova] Unable to login to instance

> To follow what Vincent said - maybe you can -download cirros-0.3.4-x86_64-disk.img [3] and see.

I think 0.3.4 also has the bug, but you could try with one from:

http://download.cirros-cloud.net/daily/20160722/

The password may have changed to letsplay2, c.f.:

https://code.launchpad.net/~smoser/cirros/trunk.letsplay2/+merge/298652

-- 
Vincent Legoll
EGI FedCloud task force
Cloud Computing at IdGC
France Grilles / CNRS / IPHC

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators



More information about the OpenStack-operators mailing list