landscape-client blocks boot with no ec2 metadata service

Bug #726947 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
landscape-client (Ubuntu)
Fix Released
Low
Scott Moser

Bug Description

Binary package hint: landscape-client

When booting a UEC image outside of EC2 or UEC (where there is no metadata service), the sysvinit process is blocked on the 'landscape-client' init script that is running 'landscape-is-cloud-managed'. This takes 5 minutes to time out.

It can be worked around by setting CLOUD=0 in /etc/default/landscape-client:
$ sudo cat /etc/default/landscape-client
CLOUD=1

However, its annoying to have to change that.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: landscape-client 11.01-0ubuntu0.11.04.0
ProcVersionSignature: User Name 2.6.38-5.32-virtual 2.6.38-rc6
Uname: Linux 2.6.38-5-virtual i686
Architecture: i386
Date: Tue Mar 1 02:39:43 2011
Ec2AMI: ami-4a669523
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: t1.micro
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: landscape-client

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Thomas Herve (therve) wrote :

I would argue that CLOUD=1 means that the metadata service is available. We also have that docstring in our code:

    This is necessary because the networking init script on Ubuntu is
    asynchronous; the network may not actually be up by the time the
    landscape-client init script is invoked.

Is there another way to know if the network is up or not?

Revision history for this message
Thomas Herve (therve) wrote :

The easiest fix is to put CLOUD=0 in natty (or keep the default value, really), as Landscape now supports cloud-init startup and it will prevent that problem.

Revision history for this message
Scott Moser (smoser) wrote :

Thanks, therve. I had not realized/forgotton that vmbuilder was writing that template file. I will have it not do so in natty.

Revision history for this message
Scott Moser (smoser) wrote :

marking this as 'Fix Released'
The natty images from 20100302 and larger do not have the file /etc/default/landscape .

Changed in landscape-client (Ubuntu):
importance: Undecided → Low
status: New → Fix Released
assignee: nobody → Scott Moser (smoser)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers