cloud-init and F16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello All,
I'm looking to provide some feedback on cloud-init and the F16 AMI's. I'm not sure the proper place to file the bug against. I'm attempting to place a simple shell script in user data to perform post-boot configuration. This fails since I'm unable to execute anything within user data. (I'm hoping eventually to use cloud-config syntax)

The cloud-init startup process (sometime after placing the ssh keys) at one point runs: /usr/bin/cloud-init-cfg all final During this stage, run-parts gets run to actually execute the downloaded user data. It fails with the following:

CalledProcessError: Command '['run-parts', '--regex', '.*', '/var/lib/cloud/instance/scripts']

The --regex flag is not accepted by the Fedora version of run-parts. Debian/Ubuntu both have a compiled binary of run-parts that accepts this flag.

Here is a reproduction of it on an already booted machine:
https://gist.github.com/1503054

I've got two solutions that seem to work in initial testing.
1) Backing in a copy of run-parts that accepts the additional arguments into a new ami.
2) Removing the regex flag + _expression_ out of /usr/lib/python2.7/site-packages/cloudinit/util.py

So my question to the group. What is a better fix to peruse, adding functionality to run-parts, or patching util.py to not use the regex?

Thanks!

-- 
Aaron Bento


_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Big List of Linux Books]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux