Public bug reported:

Right now, cloud-init.py has:
    # parse the user data (ec2-run-userdata.py)
    try:
        cloud.sem_and_run("consume_userdata", "once-per-instance",
            cloud.consume_userdata,[],False)
    except:
        warn("consuming user data failed!\n")
        raise


What that means is that the consume_userdata code only happens once per 
instance.
consume_userdata is what then walks the userdata, with callbacks for each type.
The types at the moment are:
            'text/x-shellscript' : self.handle_user_script,
            'text/cloud-config' : self.handle_cloud_config,
            'text/upstart-job' : self.handle_upstart_job,
            'text/part-handler' : self.handle_handler,
            'text/cloud-boothook' : self.handle_cloud_boothook

if the user-data changes, these will not be called again unless
'consume_userdata' lock has also been removed.

That means that
 * changes to cloud-config dont get realized (old cloud-config would be used)
 * upstart jobs are not re-written
 * handlers are not updated
 * handlers will not be called more than once per instance
 * boothooks are not called more than once (they are documented that they are)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cloud-init 0.6.1-0ubuntu12
ProcVersionSignature: User Name 3.0.0-7.8-virtual 3.0.0
Uname: Linux 3.0.0-7-virtual x86_64
Architecture: amd64
Date: Mon Aug  1 20:29:57 2011
Ec2AMI: ami-318e4858
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1b
Ec2InstanceType: t1.micro
Ec2Kernel: aki-825ea7eb
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug ec2-images oneiric

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/819507

Title:
  consume_userdata is only called once per instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/819507/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to