+ Reply to Thread
Results 1 to 7 of 7

Thread: Not able to build kit using buildkit

  1. #1
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Question Not able to build kit using buildkit

    I have successfully installed compute node. I am trying to add a kit for sun gride engine(sge).

    I have a the tarball sge-6.0u7_1-bin-lx24-x86 as the source for sge. Following is the structure of my build.kit file

    ----------------------------------------------------------------------------------------------------------------------------

    # build.kit template

    # Define your packages here by using a correct packageprofile class.
    # Available types are SourcePackage(), RPMPackage(), SRPMPackage(),
    # DistroPackage(), BinaryPackage()

    pkg1 = SourcePackage()
    pkg1.name = 'sge'
    pkg1.version = '6.0'
    pkg1.release = '1'
    pkg1.installroot = '/opt/sge'
    pkg1.filename = 'sge-6.0u7_1-bin-lx24-x86.tar.gz'

    # define a default component
    comp = DefaultComponent()
    comp.name = 'master_sge'
    comp.description = 'sge component for CentOS 5.'
    comp.ngtypes = ['installer']


    # Add any packages defined earlier by using the comp.addDep method
    comp.addDep(pkg1)


    # define a default kit
    k = DefaultKit()
    k.name = 'sge kit'
    k.description = 'sge kit.'
    k.arch = 'x86'

    # Adding the component defined earlier
    k.addComponent(comp)


    # Add post install script. You can modify this shell script or add new ones in the
    # sources directory
    k.addScript('00-post-script.sh',mode='post')

    # Add post uninstall script. You can modify this shell script or add new ones in the
    # sources directory
    k.addScript('00-postun-script.sh',mode='postun')

    ----------------------------------------------------------------------------------------------------------------------------

    i have added the tarbal in the /sources directory.

    when i run the command

    buildkit make kit=sge

    i get the following error:

    -----------------------------------------------------------------------------------------------------------------------------------------

    [root@alexander205 kits]# buildkit make kit=sge
    Verifying the Kit Source directory found in /depot/kits/sge..
    Setting up BuildProfile for this kit..
    Setting up a proper .rpmmacros for building this kit
    Looking for the kitscript build.kit..
    Found kitscript. Loading it..
    Building the package(s)..
    Traceback (most recent call last):
    File "/opt/kusu/bin/buildkit", line 471, in ?
    app.run()
    File "/opt/kusu/bin/buildkit", line 195, in run
    handler(self.actionargs)
    File "/opt/kusu/bin/buildkit", line 342, in _make
    self.bkinst.handlePackages(packages,bp)
    File "/opt/kusu/lib/python/kusu/buildkit/tool.py", line 97, in handlePackages
    p.configure()
    File "/opt/kusu/lib/python/kusu/buildkit/builder.py", line 288, in configure
    return self.wrapper.configure(**kwargs)
    File "/opt/kusu/lib/python/kusu/buildkit/builder.py", line 408, in configure
    configP = subprocess.Popen(cmd,shell=True,cwd=self.buildsrc)
    File "/usr/lib/python2.4/subprocess.py", line 542, in __init__
    errread, errwrite)
    File "/usr/lib/python2.4/subprocess.py", line 975, in _execute_child
    raise child_exception
    OSError: [Errno 2] No such file or directory: '/depot/kits/sge/tmp/sge-6.0u7_1-bin-lx24-x86'

    -----------------------------------------------------------------------------------------------------------------------------

    can someone help?

  2. #2
    George Goh is offline Project Moderator
    Join Date
    February 29th, 2008
    Location
    Singapore
    Posts
    26
    Blog Entries
    5
    Downloads
    16
    Uploads
    11

    Default

    Hi Abishek,

    Can you tell us your build number?

    You can find out on the command line:

    # cat /etc/kusu-release

  3. #3
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    I am using 0.6_devel. Due to some downloading issues at my end i am not able to download the latest release.

  4. #4
    George Goh is offline Project Moderator
    Join Date
    February 29th, 2008
    Location
    Singapore
    Posts
    26
    Blog Entries
    5
    Downloads
    16
    Uploads
    11

    Default

    <quoting Liming's reply in the bug tracker>
    Tsai Li Ming - 29/Apr/08 10:12 PM
    Hi

    I would recommend posting on http://www.hpccommunity.org. There will be more developers on that forum to assist you.

    If I remember correctly, SGE uses aimk instead of autoconf tools. If you can build the SGE manually and have the binaries in a tar ball, you can use BinaryPackage() instead of SourcePackage().

    These links might help:
    http://www.osgdc.org/blog/?p=32
    http://mail.osgdc.org/pipermail/kusu...ry/000015.html

    <end quote>

    Abishek,
    Can you build the binary tarball as Liming suggested?

  5. #5
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Smile

    I figured out the problem. it arised due to the tarball i am using for sge. the tarball got extracted in 4 different directories.

    I then integrated the 4 directories in a parent directory and generated a new tarball. So now the tarbal untars in a single directory.

    I have successfully generated the iso for my sge now..

  6. #6
    beowulf's Avatar
    beowulf is offline Member
    Join Date
    February 29th, 2008
    Location
    Singapore
    Posts
    55
    Blog Entries
    7
    Downloads
    4
    Uploads
    0

    Smile

    Hi abhishek

    If you have a working sge kit, appreciate if you can share with the kusu community. We would be happy to put it up for download. Do include some basic readme and documentation.

    Thanks!
    ---
    Laurence Liew
    Next-generation HPC and Clouds
    www.1degreenorth.com

  7. #7
    abhishek is offline Junior Member
    Join Date
    April 29th, 2008
    Posts
    12
    Downloads
    0
    Uploads
    0

    Unhappy

    I am sorry i cannot share that because i am not using the opensource version of SGE.. I am using the enterprise version

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts