Hi DongInn,

Yes, our own yum config file is used so our /tftpboot/{oscar,distro}/ local 
repos are taken into account.
This config file also avoid exotic repos that may have been enabled. Only repos 
from /etc/oscar/supported-distros.txt are used (plus local ones).

This is more robust to conflicts. This avoids conflicts that could occur if non 
oscar repo is enabled like rpmforge.

Best Regards,

Olivier.
--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu]
Date d'envoi : jeudi 28 novembre 2013 20:29
À : Devel OSCAR
Objet : Re: [Oscar-devel] RE : RE : distro URL file (e.g., 
redhat-el-6-x86_64.url)

Any reason that we want to use our own yum config file to the command “yum”? 
(e.g., /usr/bin/yum -c $name)

The wrongfully generated config file, which does not have the proper distro 
repo URL, makes yum fail with the following errors:

Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/dhcp" and/or "*bin/dhcp" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/gd" and/or "*bin/gd" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/nfs-utils" and/or "*bin/nfs-utils" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/xinetd" and/or "*bin/xinetd" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php" and/or "*bin/php" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/zlib-devel" and/or "*bin/zlib-devel" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php-gd" and/or "*bin/php-gd" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php-mysql" and/or "*bin/php-mysql" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php-mbstring" and/or "*bin/php-mbstring" to get that behaviour
ERROR: Impossible to execute "LC_ALL=C yum -c /tmp/fileftTexV provides 
php-mbstring";
       Some packages are not available: (-y, install, dhcp, gd, nfs-utils, 
xinetd, php, zlib-devel, php-gd, php-mysql, php-mbstring) at /usr/bin/yume line 
330.
ERROR during execution 65280
ERROR: -1 error(s) occured for prereq dhcp, gd, nfs-utils, xinetd, php, 
zlib-devel, php-gd, php-mysql, php-mbstring at /usr/bin/install_prereq line 81
        main::handle_smart_pkgs(0, 'dhcp', 'gd', 'nfs-utils', 'xinetd', 'php', 
'zlib-devel', 'php-gd', 'php-mysql', ...) called at /usr/bin/install_prereq 
line 408
        main::install_prereq('redhat-el', 6, 'x86_64', 'ARRAY(0xdccaf8)', 
'rpm') called at /usr/bin/install_prereq line 474
ERROR: The following packages were NOT installed:
dhcp, gd, nfs-utils, xinetd, php, zlib-devel, php-gd, php-mysql, php-mbstring
 at /usr/bin/install_prereq line 416
        main::install_prereq('redhat-el', 6, 'x86_64', 'ARRAY(0xdccaf8)', 
'rpm') called at /usr/bin/install_prereq line 474
ERROR: Impossible to install the prereqs at /usr/bin/install_prereq line 475.
ERROR: impossible to install base ( /usr/bin/install_prereq  --smart 
/usr/share/oscar/prereqs/base).
 at /usr/bin/oscar-config line 99
ERROR: impossible to install base prereqs (/usr/share/oscar/prereqs/base)
 at /usr/bin/oscar-config line 99
ERROR: Impossible to complete stage 2 of the bootstrap.
 at /usr/bin/oscar-config line 99
ERROR: Impossible to bootstrap OSCAR at /usr/bin/oscar-config line 100
        main::bootstrap() called at /usr/bin/oscar-config line 331
ERROR: Impossible to bootstrap OSCAR at /usr/bin/oscar-config line 332.

I tried to not use the yum config file and the default one instead and I could 
go further (i.e., the missing packages (php-mbstring, php-mysql,…) could be 
installed). And I hit the oda perl module-not-found error.

--> Prereqs status (/usr/share/oscar/prereqs/perl-Qt):
-->     perl-Qt:                        is installed
--> Executing: /usr/bin/oda --init mysql
Can't locate OSCAR/oda.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /lib 
/lib/OSCAR /usr/local/lib64/perl5 /usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 
/usr/share/perl5 .) at /usr/share/perl5/vendor_perl/OSCAR/Database_generic.pm 
line 86.
BEGIN failed--compilation aborted at 
/usr/share/perl5/vendor_perl/OSCAR/Database_generic.pm line 86.
Compilation failed in require at /usr/bin/oda line 43.
BEGIN failed--compilation aborted at /usr/bin/oda line 43.
ERROR: Impossible to execute /usr/bin/oda --init mysql at /usr/bin/oscar-config 
line 99
ERROR: Impossible to install the server side of OSCAR
 at /usr/bin/oscar-config line 99
ERROR: Impossible to complete stage 2 of the bootstrap.
 at /usr/bin/oscar-config line 99
ERROR: Impossible to bootstrap OSCAR at /usr/bin/oscar-config line 100
        main::bootstrap() called at /usr/bin/oscar-config line 331
ERROR: Impossible to bootstrap OSCAR at /usr/bin/oscar-config line 332.
[root@rhel64-vm Downloads]#


Regards,

--
- DongInn

On Nov 28, 2013, at 11:13 AM, LAHAYE Olivier 
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:


Excellent.

--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu<mailto:di...@cs.indiana.edu>]
Date d'envoi : jeudi 28 novembre 2013 16:13
À : Devel OSCAR
Objet : Re: [Oscar-devel] RE : distro URL file (e.g., redhat-el-6-x86_64.url)

Hi Olivier,

Thanks but you gave me a wrong directory name. :-)
It should be /tftpboot/distro/redhat-el-6-x86_64 .

Anyway, I could avoid the error by putting the following patch of 
install_prereq.
[07:05] rhel64-vm: scripts $ svn diff
Index: install_prereq
===================================================================
--- install_prereq      (revision 10185)
+++ install_prereq      (working copy)
@@ -363,7 +363,8 @@

         OSCAR::Logger::oscar_log_subsection "Adding repos $oscar_pkg_pool, ".
             "$distro_pkg_pool";
-        my $local_repos = "$oscar_pkg_pool, $distro_pkg_pool";
+        my $local_repos = "$oscar_pkg_pool";
+        $local_repos .= ", $distro_pkg_pool" if $distro_pkg_pool ne "";
         my @repos = split (",", $local_repos);
         OSCAR::Utils::print_array (@repos);
         $pm = PackMan->new;

The main problem is that yume could not resolve the installation of these 
packages (e.g., php-mbstring, php-mysql, … )
 Is there something wrong with "LC_ALL=C yum -c /tmp/file4kdSLr provides 
php-mbstring” ?

Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/dhcp" and/or "*bin/dhcp" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/gd" and/or "*bin/gd" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/nfs-utils" and/or "*bin/nfs-utils" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/xinetd" and/or "*bin/xinetd" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php" and/or "*bin/php" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/zlib-devel" and/or "*bin/zlib-devel" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php-gd" and/or "*bin/php-gd" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php-mysql" and/or "*bin/php-mysql" to get that behaviour
Warning: 3.0.x versions of yum would erroneously match against filenames.
 You can use "*/php-mbstring" and/or "*bin/php-mbstring" to get that behaviour
ERROR: Impossible to execute "LC_ALL=C yum -c /tmp/file4kdSLr provides 
php-mbstring";
       Some packages are not available: (-y, install, dhcp, gd, nfs-utils, 
xinetd, php, zlib-devel, php-gd, php-mysql, php-mbstring) at /usr/bin/yume line 
330.
ERROR during execution 65280
ERROR: -1 error(s) occured for prereq dhcp, gd, nfs-utils, xinetd, php, 
zlib-devel, php-gd, php-mysql, php-mbstring

Regards,

--
- DongInn

On Nov 28, 2013, at 4:15 AM, LAHAYE Olivier 
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:

On other distros, I have a warning with missing repo (the url file exists, but 
not the directoiry. If I create the directory, then, I have a warning saying 
cannot add empty repo.

I think that there is something to fix here, but I did had time to check that 
as for my distros (centos-6, fc-17, fc-18, ubuntu-*) it was not blocking.

Does the following commands fix your problem?
mkdir /tftpboot/distro/redhat-6-x86_64
sudo packman --prepare-repo /tftpboot/distro/redhat-6-x86_64

if yes, that means the when creating the /tftpboot/repos/<distro>.url file we 
should also issue the two above commands.

Best regards,

Olivier.

--
   Olivier LAHAYE
   CEA DRT/LIST

________________________________
De : DongInn Kim [di...@cs.indiana.edu<mailto:di...@cs.indiana.edu>]
Date d'envoi : jeudi 28 novembre 2013 07:15
À : Devel OSCAR
Objet : [Oscar-devel] distro URL file (e.g., redhat-el-6-x86_64.url)

Hi,

/tftpboot/distro/redhat-el-6-x86_64.url can not have any distro repository 
during install_prereq which calls repos_add_urlfile in OSCAR::PackagePath.pm.

I have a following repository setup with rhn and I wonder how to deal with this 
kind of licensed repository.

[root@rhel64-vm ui]# cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release



The missing distro repository entry in /tftpboot/distro/redhat-el-6-x86_64.url 
causes the following trouble.


--> Select online repo 
http://svn.oscar.openclustergroup.org/repos/unstable/rhel-6-x86_64
Adding the repositories: [ file:/tftpboot/distro/redhat-el-6-x86_64 ]
Array: 1 element(s)
--> [WARN] /tftpboot/distro/redhat-el-6-x86_64 does not exist
--> Skipping empty local repo (file:/tftpboot/distro/redhat-el-6-x86_64)
--> [INFO] No repository to be added
--> OSCAR pools: 
http://svn.oscar.openclustergroup.org/repos/unstable/rhel-6-x86_64
--> Distro pools:
--> Prereq paths: /usr/share/oscar/prereqs/Configurator
--> Adding repos 
http://svn.oscar.openclustergroup.org/repos/unstable/rhel-6-x86_64,
[ http://svn.oscar.openclustergroup.org/repos/unstable/rhel-6-x86_64   ]
Array: 2 element(s)
--> Following packages will be removed:
--> Following packages will be installed: configurator
--> Following shell commands will be executed:
--> smartly installing: configurator
--> Packman status: Packman status:
        Format: RPM
        Number of repos: 2
        List of repos:  , 
http://svn.oscar.openclustergroup.org/repos/unstable/rhel-6-x86_64

ERROR: Impossible to detect the architecture of repos: --repo at /usr/bin/yume 
line 102.
ERROR during execution 65280
ERROR: -1 error(s) occured for prereq configurator
WARNING: multiple architecture repos specified.) at /usr/bin/install_prereq 
line 81
        main::handle_smart_pkgs(0, 'configurator') called at 
/usr/bin/install_prereq line 407
        main::install_prereq('redhat-el', 6, 'x86_64', 'ARRAY(0x1d35750)', 
'rpm') called at /usr/bin/install_prereq line 473
ERROR: The following packages were NOT installed:
configurator
 at /usr/bin/install_prereq line 415
        main::install_prereq('redhat-el', 6, 'x86_64', 'ARRAY(0x1d35750)', 
'rpm') called at /usr/bin/install_prereq line 473
ERROR: Impossible to install the prereqs at /usr/bin/install_prereq line 474.
ERROR: impossible to install Configurator ( /usr/bin/install_prereq  --smart 
/usr/share/oscar/prereqs/Configurator).
 at /usr/bin/oscar-config line 99
ERROR: impossible to install Configurator prereqs 
(/usr/share/oscar/prereqs/Configurator)
 at /usr/bin/oscar-config line 99
ERROR: Impossible to complete stage 1 of the bootstrap.
 at /usr/bin/oscar-config line 99
ERROR: Impossible to bootstrap OSCAR at /usr/bin/oscar-config line 100
        main::bootstrap() called at /usr/bin/oscar-config line 331
ERROR: Impossible to bootstrap OSCAR at /usr/bin/oscar-config line 332


If the licensed repository can not be added here, should we expect all the RHEL 
OSCAR users to create a private local repository on it?
Can we ignore the missing distro repository?

Regards,

--
- DongInn

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net<mailto:Oscar-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/oscar-devel

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to