Excerpts from Matt Jia's message of 2014-09-15 14:56 +10:00:
I am working on bug[1] and have created a task to provision guest
recipes with cloud images.
An example job can be found here[2] and its using RHEL7 image. There
is one issue that the hostname
on guest recipe is not resolved properly from dhcp server.It only
shows ip address and it may be required
further investigation. Other than that, everything is looking fine.
The source code is located at my personal repo[3]. If you have any
questions, please let me know.
Nice work Matt!
It's a shame to inherit so much of the mess from
/distribution/virt/install, looking at it all again really makes me
think it would be worthwhile doing a rewrite targetting RHEL6+ only (or
even RHEL7+ only?) to eliminate some of the unnecessary workarounds and
simplify.
One minor issue in your get_user_data.py, it looks like the chpasswd
invocation will not work properly if the root password is encrypted in
the kickstart (which it normally is). Pykickstart can probably tell you
if --crypted was in the kickstart and if so just pass -e to chpasswd to
tell it the password is already encrypted.
Also, it would probably be more efficient to install all packages in
a single yum transaction instead of emitting a separate yum install
command for each line in %packages.
As for the missing FQDN... This is where it goes bad (from console.log):
cloud-init[974]: +++ hostname -f
cloud-init[974]: hostname: Name or service not known
The guest IP address *should* be resolvable in DNS, so most likely
/etc/resolv.conf is missing or wrong somehow. Can you log in to the
guest and check?
--
Dan Callaghan <dcallagh(a)redhat.com>
Software Engineer, Hosted & Shared Services
Red Hat, Inc.