Race in DataSourceNoCloudNet with kvm

Bug #812646 reported by Tim Potter
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Unassigned
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Hi there. I'm trying to configure a 11.04 KVM instance using nocloud-net and it sometimes works, sometimes not.

I have configured kernel args of init=/usr/lib/cloud-init/uncloud-init ds=nocloud-net;s=http://192.168.122.1/;h=blah and have a user-data and meta-data file at the address above. Most of the time things work and the VM starts up properly.

Some time, usually the very first boot of the VM, I get "get_data of DataSourceNoCloudNet raised <urlopen error [Errno 101] Network is unreachable> and cloud-init falls through to (non-existent) DataSourceEc2. A power down and power up again usually fixes this.

This looks like a race, though I can't figure exactly how the upstart jobs run.

init: plymouth-splash main process (276) terminated with status 2
cloud-init start-local running: Tue, 19 Jul 2011 01:27:10 +0000. up 9.83 seconds
no instance data found in start-local
init: cloud-init-local main process (242) terminated with status 1
cloud-init start running: Tue, 19 Jul 2011 01:27:10 +0000. up 10.12 seconds
2011-08-19 01:27:10,371 - __init__.py[WARNING]: get_data of DataSourcenoCloudNet raised <urlopenerror [Errno 101] Network is unreachable>
2011-07-19 01:27:10,415 - DataSourceEc2.py[WARNING]: waiting for metadata service at http://169.254.159.254/2009-04-04/meta-data/instance-id
....

A successful boot looks like this:

init: plymouth-splash main process (339) terminated with status 2
cloud-init start running: Tue, 19 Jul 2011 02:00:56 +0000. up 2.50 seconds
found data source: DataSourceNoCloud [seed=cmdline,http://192.168.122.1/]
....

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: cloud-init (not installed)
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Tue Jul 19 11:52:48 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007.1)
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: Upgraded to natty on 2011-05-18 (61 days ago)

Related branches

Dave Walker (davewalker)
Changed in cloud-init (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

I think this is not a race per say, but too small of a timeout.

Scott Moser (smoser)
Changed in cloud-init:
importance: Undecided → Medium
status: New → Fix Committed
Changed in cloud-init (Ubuntu):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.6.1-0ubuntu12

---------------
cloud-init (0.6.1-0ubuntu12) oneiric; urgency=low

  * do not give trace on failure to resize in lxc container (LP: #800856)
  * increase the timeout on url gets for "seedfrom" values (LP: #812646)
  * do not write entries for ephemeral0 on t1.micro (LP: #744019)

  [Adam Gandalman]
  * improve the updating of /etc/hosts with correct fqdn when possible
    (LP: #812539)

  [Avishai Ish-Shalom]
  * add chef support (cloudinit/CloudConfig/cc_chef.py) (LP: #798844)
 -- Scott Moser <email address hidden> Thu, 21 Jul 2011 05:51:03 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.