+ Reply to Thread
Results 1 to 4 of 4

Thread: Distributing files in conjuction with kit?

  1. #1
    job+2 Guest

    Default Distributing files in conjuction with kit?

    Hello,

    I'm not really sure how to word this question, but I'd like to understand how the installation of a kit can cause files to be "distributed" by cfm. I'm using the Red Hat HPC solution, which did not come with lava. I obtained it by executing "yum install ocs-kit-lava", and then I executed "/opt/kusu/sbin/install-kit-lava". I noted that cfm distributed several files:

    /etc/cfm/compute-diskless/etc/lava
    /etc/cfm/compute-diskless/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-diskless/etc/lava/conf/lsf.cluster.lava
    /etc/cfm/compute-rhel/etc/lava
    /etc/cfm/compute-rhel/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-rhel/etc/lava/conf/lsf.cluster.lava
    /etc/cfm/compute-imaged/etc/lava
    /etc/cfm/compute-imaged/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-imaged/etc/lava/conf/lsf.cluster.lava

    But how did those files get put into those directories? Was it the kit that put them there, or was it the rpms that were installed when I ran yum?

    Is it possible for a kit that I create to put files in these directories for distribution? Can anyone shed light on this?

    Thank you,

    Job

  2. #2
    ltsai is offline Project Moderator
    Join Date
    March 4th, 2008
    Posts
    61
    Blog Entries
    3
    Downloads
    3
    Uploads
    0

    Default

    Hi

    These files are usually symlinks to some files on the installer node, however they can be actual files.

    These symlinks/files can be deposited in /etc/cfm/<nodegroup name> via scripts or rpms.

    -Liming

  3. #3
    mikem's Avatar
    mikem is offline Project Moderator
    Join Date
    April 10th, 2008
    Posts
    22
    Blog Entries
    9
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by job+2 View Post
    Hello,

    I'm not really sure how to word this question, but I'd like to understand how the installation of a kit can cause files to be "distributed" by cfm. I'm using the Red Hat HPC solution, which did not come with lava. I obtained it by executing "yum install ocs-kit-lava", and then I executed "/opt/kusu/sbin/install-kit-lava". I noted that cfm distributed several files:

    /etc/cfm/compute-diskless/etc/lava
    /etc/cfm/compute-diskless/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-diskless/etc/lava/conf/lsf.cluster.lava
    /etc/cfm/compute-rhel/etc/lava
    /etc/cfm/compute-rhel/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-rhel/etc/lava/conf/lsf.cluster.lava
    /etc/cfm/compute-imaged/etc/lava
    /etc/cfm/compute-imaged/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-imaged/etc/lava/conf/lsf.cluster.lava

    But how did those files get put into those directories? Was it the kit that put them there, or was it the rpms that were installed when I ran yum?

    Is it possible for a kit that I create to put files in these directories for distribution? Can anyone shed light on this?

    Thank you,

    Job
    Here's a quick overview of what happens when you add a kit to your cluster using kitops:
    • all packages are copied to the file system (usually /depot/kits/...)
    • the kit RPM is installed (rpm -ivh ...)

    Of course, installing via yum implies the kit is already installed in a repo your machine has access to, so `yum install ocs-kit-lava` will install the actual RPM packages.

    Those files are either installed directly by one of the lava packages or are symlinked (or perhaps even just created ) in the %post section of one of the packages.

  4. #4
    mblack is offline Junior Member
    Join Date
    April 15th, 2008
    Posts
    11
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by job+2 View Post
    /etc/cfm/compute-imaged/etc/lava
    /etc/cfm/compute-imaged/etc/lava/conf/lsbatch/lava
    /etc/cfm/compute-imaged/etc/lava/conf/lsf.cluster.lava

    But how did those files get put into those directories? Was it the kit that put them there, or was it the rpms that were installed when I ran yum?

    Is it possible for a kit that I create to put files in these directories for distribution? Can anyone shed light on this?
    Those files were put there are part of the Kit rpm installation. The files in the /etc/cfm directory are typically for dynamic files that can/need to change.

    If your kit has config files that change then they should be placed here, so they can be distributed to all the nodes that need them. You might also consider using an addhost plugin, or a genconfig plugin to make the file if it needs information about other nodes in the cluster. The plugins are distributed as part of the kit rpm, and reside in /opt/kusu/lib/plugins/

    M.

+ 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