[Thincrust-devel] Problem creating ec2Appliance

Cameron Ross cross at symbotica.net
Fri Sep 18 12:26:02 UTC 2009


Hi Marek,

I'm using a fully updated version of Fedora 11 with
appliance-tools-004.4-2.fc11.noarch.  Output from uname -a is:
    Linux localhost.localdomain 2.6.30.5-43.fc11.x86_64 #1 SMP Thu Aug 27
21:39:52 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

To summarize, for issue 1 my process outputs:
    Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is not
fatal)
    Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not
fatal)

Whereas your process outputs:
    Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  28 sectors are
embedded.
    succeeded

Your process also performs several tasks once the grub setup is complete.
Not sure where to do from here?


For issue 2, the ec2-convert script calls a thincrust script called
rpmcheck.py.  It looks like this script checks to see if the openssh-server
and curl packages are included within the package set for the appliance.  If
not then the script issues the error I'm seeing.  So,  it looks like the
ec2Appliance kickstart file is missing openssh-server which is simple enough
to fix.  However, it does raise the question as to whether or not an EC2
image generated using the ec2Appliance kiskstart file has ever been tested.
Has anyone tried this yet?  Should I submit a patch adding openssh-server
and possibly curl, to ec2Appliance.ks?

Thanks,
Cameron.


On Fri, Sep 18, 2009 at 5:34 AM, Marek Goldmann <mgoldman at redhat.com> wrote:

> Hi Cameron,
>
> On Sep 18, 2009, at 4:13 AM, Cameron Ross wrote:
>
>  Hi,
>>
>> I'm trying to create the ec2Appliance defined within the ace git
>> repository and I'm having two issues.
>>
>>
>> 1) When I run appliance creator I get then following output:
>> ...
>> grub> setup
>> --stage2=/var/tmp/imgcreate-4i76sn/install_root/boot/grub/stage2
>> --prefix=/boot/grub  (hd0)
>>  Checking if "/boot/grub/stage1" exists... yes
>>  Checking if "/boot/grub/stage2" exists... yes
>>  Checking if "/boot/grub/e2fs_stage1_5" exists... yes
>>  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... failed (this is not
>> fatal)
>>  Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not
>> fatal)
>>  Running "install
>> --stage2=/var/tmp/imgcreate-4i76sn/install_root/boot/grub/stage2
>> /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/grub.conf "...
>> succeeded
>> Done.
>> grub> quit
>> Finished
>>
>> Can I safely ignore the failures that are generated?
>>
>
> This looks strange to me. I'm getting (but with my custom kickstart file)
> this:
>
> Installing grub to /dev/loop0
> Probing devices to guess BIOS drives. This may take a long time.
>
>
>    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
>
>  [ Minimal BASH-like line editing is supported.  For the first word, TAB
>   lists possible command completions.  Anywhere else TAB lists the possible
>   completions of a device/filename.]
> grub> device (hd0) /dev/loop0
> grub> root (hd0,0)
>  Filesystem type is ext2fs, partition type 0x83
> grub> setup
> --stage2=/home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/install_root/boot/grub/stage2
> --prefix=/boot/grub  (hd0)
>  Checking if "/boot/grub/stage1" exists... yes
>  Checking if "/boot/grub/stage2" exists... yes
>  Checking if "/boot/grub/e2fs_stage1_5" exists... yes
>  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  28 sectors are
> embedded.
> succeeded
>  Running "install
> --stage2=/home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/install_root/boot/grub/stage2
> /boot/grub/stage1 (hd0) (hd0)1+28 p (hd0,0)/boot/grub/stage2
> /boot/grub/grub.conf"... succeeded
> Done.
> grub> quit
> Unmounting directory
> /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/install_root/
> Removing compat symlinks
> Unmapping /dev/loop0
> Losetup remove /dev/loop0
> moving disks to stage location
> moving
> /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/tmp-1Yk7Ja/httpd-appliance-sda.raw
> to
> /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/out/httpd-appliance-sda.raw
> writing image XML to
> /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/out/httpd-appliance.xml
> creating destination dir: build/appliances/i386/fedora/11/httpd-appliance
> moving
> /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/out/httpd-appliance.xml
> to build/appliances/i386/fedora/11/httpd-appliance/httpd-appliance.xml
> moving
> /home/oddthesis/jboss-cloud/build/tmp/imgcreate-GzcY5I/out/httpd-appliance-sda.raw
> to build/appliances/i386/fedora/11/httpd-appliance/httpd-appliance-sda.raw
> Finished
>
>
>  2) When I run ec2-creator I get the following error:
>> ...
>> This filesystem will be automatically checked every 31 mounts or
>> 180 days, whichever comes first.  Use tune2fs -c or -i to override.
>> error: cannot open Packages index using db3 - No such file or directory
>> (2)
>> error: cannot open Packages database in
>> /var/tmp/ec2-convert-u91eq0vl/var/lib/rpm
>> error: cannot open Packages database in
>> /var/tmp/ec2-convert-u91eq0vl/var/lib/rpm
>> Package(s): openssh-server not installed, exiting
>> Please install openssh-server and rerun ec2-converter
>> Or add --rpmcheck=no option
>> Conversion failed
>>
>
> Maybe this has something to do with:
>
>        https://bugzilla.redhat.com/show_bug.cgi?id=507188
>
> What OS are you using? What is your appliance-tools version?
>
> --Marek
>
>
>> Any advice is greatly appreciated.
>> Cameron.
>>
>
> --
> Marek Goldmann
>
> JBoss by Red Hat
>
> _______________________________________________
> Thincrust-devel mailing list
> Thincrust-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/thincrust-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/thincrust-devel/attachments/20090918/d9ce61b1/attachment.htm>


More information about the Thincrust-devel mailing list