Success SSH a tty image but failed SSH UEC image

Asked by Hugo Kou

After a fix dnsmasq issue, dnsmasq is running well now.....
https://answers.launchpad.net/nova/+question/152089

And I got another question, I thought they are all the same problem before, but I know the different now.

Information
========ip addr show====on Nova-network host======
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 pfifo_fast state UP qlen 1000
    link/ether 00:0e:7b:d0:05:ef brd ff:ff:ff:ff:ff:ff
    inet6 fe80::20e:7bff:fed0:5ef/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 00:19:d2:22:70:51 brd ff:ff:ff:ff:ff:ff
4: br100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:0e:7b:d0:05:ef brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.1/24 brd 192.168.2.255 scope global br100
    inet 192.168.1.2/24 brd 192.168.1.255 scope global br100
    inet6 fe80::c4ae:29ff:fe88:609/64 scope link
       valid_lft forever preferred_lft forever
===========================================

I run up several instance as below

[tty image] I can ping and ssh it , but can't connect to remote host (169.254.169.254): Connection timed out

====euca-get-condole-out-put====

### tail -n 25 \/var\/log\/messages
Apr 11 05:31:45 ttylinux_host syslog.info syslogd started: BusyBox v1.17.2
Apr 11 05:31:45 ttylinux_host user.info kernel: [ 1.580412] eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
Apr 11 05:31:55 ttylinux_host user.debug kernel: [ 11.710034] eth0: no IPv6 routers present
Apr 11 05:42:48 ttylinux_host authpriv.info dropbear[358]: Running in background
############ debug end ##############
cloud-setup: failed to read iid from metadata. tried 30
stty: \/dev\/console
sshd is already running.
stty: \/dev\/console
startup inetd [ OK ]
stty: \/dev\/console
startup crond [ OK ]
wget: can't connect to remote host (169.254.169.254): Connection timed out
cloud-userdata: failed to read instance id
===== cloud-final: system completely up in 694.02 seconds ====
wget: can't connect to remote host (169.254.169.254): Connection timed out
wget: can't connect to remote host (169.254.169.254): Connection timed out
wget: can't connect to remote host (169.254.169.254): Connection timed out
  instance-id:
  public-ipv4:
  local-ipv4 :
=> First-Boot Sequence:
setting shared object cache [running ldconfig] [ OK ]
===============================================

With [UEC-image] can not ping or SSH
=========console output===========
 cloud-init start-local running: Mon, 11 Apr 2011 05:39:36 +0000. up 3.41 seconds^M
    298 init: plymouth-splash main process (322) terminated with status 2^M
    299 init: plymouth main process (49) killed by SEGV signal^M
    300 no instance data found in start-local
    301 init: cloud-init-local main process (268) terminated with status 1^M
    302 cloud-init start running: Mon, 11 Apr 2011 05:39:37 +0000. up 4.08 seconds
    303 2011-04-11 05:39:39,075 - DataSourceEc2.py[WARNING]: waiting for metadata service at http:\/\/169.254.169.254\/2009-04-04\/meta-data\/instance-id
    304
    305 2011-04-11 05:39:39,077 - DataSourceEc2.py[WARNING]: 05:39:39 [ 1\/100]: url error [timed out]
    306
    307 2011-04-11 05:39:42,082 - DataSourceEc2.py[WARNING]: 05:39:42 [ 2\/100]: url error [timed out]

~~~~~~
 505 2011-04-11 06:00:28,534 - DataSourceEc2.py[CRITICAL]: giving up on md after 1251 seconds
    506
    507 Traceback (most recent call last):
    508 File "\/usr\/bin\/cloud-init", line 196, in <module>
    509 main()
    510 File "\/usr\/bin\/cloud-init", line 72, in main
    511 cloud.get_data_source()
    512 File "\/usr\/lib\/python2.6\/dist-packages\/cloudinit\/__init__.py", line 270, in get_data_source
    513 log.debug("did not find data source from %s" % dslist)
    514 TypeError: not all arguments converted during string formatting
    515 init: cloud-init main process (351) terminated with status 1^M
    516 mountall: Event failed
    517 init: plymouth-log main process (603) terminated with status 1^M
    518 * Starting AppArmor profiles ^[[80G ^M^[[74G[ OK ]
    519 2011-04-11 06:00:31,422 - DataSourceEc2.py[WARNING]: waiting for metadata service at http:\/\/169.254.169.254\/2009-04-04\/meta-data\/instance-id
    520
    521 2011-04-11 06:00:31,424 - DataSourceEc2.py[WARNING]: 06:00:31 [ 1\/100]: url error [timed out]
    522
    523 2011-04-11 06:00:34,429 - DataSourceEc2.py[WARNING]: 06:00:34 [ 2\/100]: url error [timed out]
~~~~~~~~~
 623 landscape-client is not configured, please run landscape-config.
    624 2011-04-11 06:06:59,931 - DataSourceEc2.py[WARNING]: 06:06:59 [52\/100]: url error [timed out]
    625
    626 2011-04-11 06:07:12,939 - DataSourceEc2.py[WARNING]: 06:07:12 [53\/100]: url error [timed out]
~~~~~~~~
2011-04-11 06:21:20,851 - DataSourceEc2.py[CRITICAL]: giving up on md after 1251 seconds
    726
    727 Traceback (most recent call last):
    728 File "\/usr\/bin\/cloud-init-cfg", line 116, in <module>
    729 main()
    730 File "\/usr\/bin\/cloud-init-cfg", line 63, in main
    731 cc = cloudinit.CloudConfig.CloudConfig(cfg_path)
    732 File "\/usr\/lib\/python2.6\/dist-packages\/cloudinit\/CloudConfig\/__init__.py", line 35, in __init__
    733 self.cloud.get_data_source()
    734 File "\/usr\/lib\/python2.6\/dist-packages\/cloudinit\/__init__.py", line 270, in get_data_source
    735 log.debug("did not find data source from %s" % dslist)
    736 TypeError: not all arguments converted during string formatting
========================================================

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Hugo Kou
Solved:
Last query:
Last reply:
Revision history for this message
Dan Prince (dan-prince) said :
#1

Hi Hugo,

This may be related to this bug:

  https://bugs.launchpad.net/bugs/757293

The fix for the issue should be in this morning (in commit 980).

Can you upgrade to nova trunk revision 980 or greater and try the UEC image again?

Revision history for this message
Hugo Kou (tonytkdk) said :
#2

thanks Dan Prince

test it tomorrow

but I think it a little different issue.

bcz my instance can not get metadata both UEC and TTY image.

I make some test today about iptables on one NIC in nova-network host.

I found a problem with iptables.

It seems iptable PREROUTING do not work while two network bind on one NIC.

whatever , thanks so much

If any suggestion about PREROUTING rule with two network on one NIC , plz tell me.

I think nova-network must have at least 2 NICs. I'm going to leave a message to Vish .

Maybe he has some experience about that.

Thanks

Revision history for this message
Hyunsun Moon (hyunsun-moon) said :
#3

I got the same error with 980.
The instance running on the host where api service is running well booted (without above error), but others fails to boot with the "url error [timed out]".

Revision history for this message
Hugo Kou (tonytkdk) said :
#4
Revision history for this message
Hugo Kou (tonytkdk) said :
#5