user-data via CDROM

Shahar Havivi shaharh at redhat.com
Mon Dec 17 15:06:53 UTC 2012


On 16.12.12 17:04, Dennis Gregorovic wrote:
> On Sun, 2012-12-16 at 15:33 +0200, Shahar Havivi wrote:
> > On 16.12.12 15:15, Shahar Havivi wrote:
> > > On 14.12.12 21:22, Dennis Gregorovic wrote:
> > > > On Thu, 2012-12-13 at 16:29 -0500, Dennis Gregorovic wrote:
> > > > > On Mon, 2012-12-10 at 13:43 -0500, Perry Myers wrote:
> > > > > > On 12/10/2012 01:41 PM, Jay Greguske wrote:
> > > > > > > On 12/10/2012 12:07 PM, Shahar Havivi wrote:
> > > > > > >> On 10.12.12 12:03, Perry Myers wrote:
> > > > > > >>> On 12/10/2012 12:00 PM, Shahar Havivi wrote:
> > > > > > >>>> On 10.12.12 10:55, jvlcek wrote:
> > > > > > >>>>> Shahar,
> > > > > > >>>>>
> > > > > > >>>>> It's complaining about the ec2-user not being there?
> > > > > > >>>>>
> > > > > > >>>>> Are you specifying the ec2-user in the cloud-init.conf file or are you just
> > > > > > >>>>> using root?
> > > > > > >>>> No,
> > > > > > >>>> Where is this file suppose to be?
> > > > > > >>>
> > > > > > >>> That version of cloud-init should be released with the RHEL 6.4 public
> > > > > > >>> beta last week.
> > > > > > >>>
> > > > > > >>> It could be that the file is not properly showing up on the beta
> > > > > > >>> channel.  If you have access to the 6.4 Beta channels, there's the core
> > > > > > >>> channel, optional, supplementary and then there should be a new RHEL
> > > > > > >>> Common channel where cloud-init lives.
> > > > > > >>>
> > > > > > >>> Can you see if you have access to this channel?
> > > > > > >>>
> > > > > > >>> (adding some add'l folks to help with details on how to get access to
> > > > > > >>> that channel)
> > > > > > >>>
> > > > > > >>> Perry
> > > > > > >> Thank you,
> > > > > > >> I will try to get 6.4
> > > > > > > 
> > > > > > > The 6.4 Beta AMIs do not have cloud-init in them. They were targeted to,
> > > > > > > but that didn't happen for one reason or another. They should get it in
> > > > > > > a future snapshot, and certainly before the RC.
> > > > > > 
> > > > > > Ah ok.  Thanks for clarifying.  What about availability to just grab the
> > > > > > cloud-init package from the 6.4 beta channel?  Should that work as well?
> > > > > > 
> > > > > > Shahar is working with oVirt and cloud-init, so grabbing from RHN/CDN
> > > > > > would be sufficient.  Doesn't need to be in an AMI
> > > > > > 
> > > > > > Perry
> > > > > 
> > > > > The beta channels with cloud-init should be available through RHN
> > > > > tomorrow or Monday.
> > > > > 
> > > > > Cheers
> > > > > -- Dennis
> > > What is the channel name that include the cloud-init (I couldn't fine a
> > > channel with cloud-init in its name).
> > Found it in the common channel, 
> > I have a problem installing it because I get glibc-common dependency
> > mismatch...
> > Is there other channel that I need my host to be register to?
> You probably need the Red Hat Enterprise Linux Server Beta channel as
> well.
> 
> Cheers
> -- Dennis
Thanks Dennis!
I manage to install the cloud-init in Rhel 6.4
The hostname can be set via nocloud CDROM but not the ip or the mac address.
also cloud init try for 5 minutes to call for this address:
url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: http error [404]
which for my understanding it shouldn't because I try to config it via the
drive (CDROM in this case).

When I try to set it via openstack, I use the "config-2" label in the CDROM
and set json file at this path:
openstack/latest/meta-data.json

at the log I am getting the line:
[CLOUDINIT] DataSourceAltCloud.py[DEBUG]: cloud_type: UNKNOWN
which indicate that its not recognize the the type (openstack).

Am I doing something wrong?
> > 
> > > > 
> > > > The channels should be available now.
> > > > 
> > > > -- Dennis
> > > > 
> 
> 


More information about the cloud mailing list