Changes between Version 2 and Version 3 of GpoLab/MyplcPackageInstallationTips

05/06/11 08:28:30 (8 years ago)



  • GpoLab/MyplcPackageInstallationTips

    v2 v3  
    5050Installed dependencies may be different on different systems, and this may not work.
     52== Debugging monitoring package dependencies ==
     54This section contains specific tips for downloading the five dependency packages required by [wiki:PlasticSlices/MonitoringRecommendations/PlnodeConfiguration the Plastic Slices monitoring configuration on MyPLC PlanetLab nodes], which are:
     56rrdtool-python rrdtool-perl perl-File-Find-Rule perl-XML-Writer perl-libwww-perl
     59=== Try yumdownloader ===
     61IF you used [wiki:GpoLab/MyplcPackageInstallationTips#UseyumdownloadertodownloadpackagesanddependenciesontheMyPLC yumdownloader] to cache the RPMs on your MyPLC, copy them over now, install them by hand, and check that it worked:
     63cd ~/rpms
     64sudo rpm -iv *.rpm
     65rpm -q rrdtool-python rrdtool-perl perl-File-Find-Rule perl-XML-Writer perl-libwww-perl
     67Note that these RPMs were collected on a different machine, so there may still be dependency problems you need to resolve by hand.
     69=== Try noderepo ===
     71In principle, you should be able to install noderepo on your MyPLC very simply, and this should allow !PlanetLab nodes attached to that MyPLC to get !PlanetLab-related packages directly from the MyPLC, and other packages from a Fedora repository.  However, we have found a number of issues with this, such as:
     72 * On some MyPLC versions, it doesn't work, because the stock `.repo` files distributed on the !PlanetLab nodes are missing or incorrect, so even when they can get the PL-specific repository from the server, they still can't get other packages.
     73 * If you have made any manual changes to your nodes, such as force-downgrading a package, you will lose those changes once the node can successfully upgrade.  If this applies to you and you don't know how to forcibly hold packages versions in yum, ask GPO.
     75That notwithstanding, if this works, it is easy: on your MyPLC host itself, run:
     77sudo yum install noderepo-planetlab-<osver>-<arch>
     79(e.g. `noderepo-planetlab-f12-i386`).
     81If that allows you to install packages on the nodes via yum, great.
     83=== Try configuring yum without noderepo ===
     85If noderepo doesn't work for you out of the box, Aaron Rosen suggested the following steps for getting a node to run yum successfully ''without'' the !PlanetLab repos.  He tried these on a node running F12 with relevant package versions:
     91If your node looks similar, this may work for you too.  GPO has not tested this.
     93 * Create the stock `yum.repos.d`:
     95mkdir /etc/yum.repos.d/
     97 * Copy the `fedora.repo` file from your myplc to the node, creating
     101 * Download and install some newer versions of perl by hand to resolve discrepancies:
     105rpm -e  --nodeps perl-5.10.0-91.fc12.i686 perl-libs-5.10.0-91.fc12.i686
     106rpm -i perl-5.10.0-82.fc12.i686.rpm       perl-libs-5.10.0-82.fc12.i686.rpm
     109After that, he was able to use `yum install` to install the monitoring dependencies.