Hi Olivier,
I have resolved my issue with the image building using
local repo. Some package were not included in my local repo : after I
ran the update online from centos 6.4 to 6.5 on my oscar server, I have
moved some updated package for centos from /var/cache/yum to
/tfptboot/distro/centos-6-x86_84/packages and run createrepo
/tfptboot/distro/centos-6-x86_84/. But some oscar-client packages
required others dependencies, so I downloaded them by hand.
But I
confirm that the format baseurl=file:///tftpboot/blabla when yume wrote
tempory file in /tmp may help yume to find new packages recently put in
the local repo. The command createrepo after updating the local repo
does not allow yume to detect new packages,and obviously you need to
correct the syntax above to detect them.
And yes, adding a epel local
repo help me too for siome oscar_client package too (may be for c3, I
don't remenber).
I'm running the deployment through pxe booting now.
Best regard
Jerome
Le 28.01.2014 19:11, jlefe...@mls.nc a écrit :
> Hi Olivier,
>
> After digging and playing with yume, I found,
maybe one error, but I'm not sure ...
>
> When you want to set a local
repo, the convention for a local repo is to declare it with the form :
>
> file:///tftpboot/my_path_to_distro (note the 3 ///)
>
> But when
yume did the job, by setting a temporary file in /tmp like
/tmp/fileabcxyz, the url for the local distro remains unchanged, with
the form :
>
> baseurl=file:/tftpboot/my_path_to_distro
>
> Then, I
would suggest to make this correction in yume :
>
> =========SNIP //
SNIP===========
>
> # chop trailing slashes from repository names
>
> foreach (@repos) {
> s:/$::;
> }
>
> for my $repo (@repos) {
> if
(($repo !~ /^(file|ftp|http|mirror)/) && -d $repo && ($repo=~/^//)) {
>
# $repo = "file:".$repo;
> # MY SUGGESTED CORRECTION :
> $repo =
"file://".$repo;
> }
> my $base=basename($repo);
> my
$dir=basename(dirname($repo));
> print $fh "[$dir"."_"."$base]n";
>
print $fh "name=$base package repositoryn";
> if ($repo =~
/^mirror:(.*)$/) {
> my $url = $1;
> print $fh "mirrorlist=$urlnn";
> }
else {
> print $fh "baseurl=$reponn";
> }
> }
> close $fh;
> ==========
SNIP // SNIP
>
> The behavior from yume seems to be right now after
that correction and yume is able to find perl-Tk and other required
packages from my local repo. Does this make sense ?
>
> Ok, but now I
have an other error, which seems to be linked to the version of glibc
and glibc-common (see below). My guess, this is because after the
installation of centOS 6.4 and just before to install oscar, I run yum
update. May be some oscar and SIS packages were ready to go with centOS
6.4 and not centOS 6.5 after I run yum update ???
>
> May be I should
to reinstall the oscar server with centOS 6.4 again ?
>
> Many thanks
>
> Jerome
>
> [ACTION] Creating the basic golden image...
>
>
------------- snip// snip --------------
>
> - zlib-devel
> Repository
Manager Status:
> Repos:
file:/tftpboot/distro/centos-6-x86_64,file:/tftpboot/oscar/rhel-6-x86_64
>
Distro: centos-6-x86_64
> Format: rpm
> Packman status:
> Format: RPM
>
Associated distro: centos-6-x86_64
> ChRoot:
/var/lib/systemimager/images/image_v1
> Number of repos: 2
> List of
repos: file:/tftpboot/oscar/rhel-6-x86_64,
file:/tftpboot/distro/centos-6-x86_64
> Installing packages in
/var/lib/systemimager/images/image_v1:
> [INFO] Array: 1 element(s):
> -
opkg-yume-client
> Repository Manager Status:
> Repos:
file:/tftpboot/distro/centos-6-x86_64,file:/tftpboot/oscar/rhel-6-x86_64
>
Distro: centos-6-x86_64
> Format: rpm
> Packman status:
> Format: RPM
>
Associated distro: centos-6-x86_64
> ChRoot:
/var/lib/systemimager/images/image_v1
> Number of repos: 2
> List of
repos: file:/tftpboot/oscar/rhel-6-x86_64,
file:/tftpboot/distro/centos-6-x86_64
> Error: Package:
glibc-2.12-1.107.el6.i686 (distro_centos-6-x86_64)
> Requires:
glibc-common = 2.12-1.107.el6
> Installed:
glibc-common-2.12-1.132.el6.x86_64
(@distro_centos-6-x86_64/$releasever)
> glibc-common = 2.12-1.132.el6
>
Available: glibc-common-2.12-1.107.el6.x86_64 (distro_centos-6-x86_64)
>
glibc-common = 2.12-1.107.el6
> ERROR during execution 256
> WARNING:
Impossible to install opkg-yume-client
>
> ------------- snip// snip
--------------
>
>
---------------------------------------------------------------------------------------------------------------------------
>
> Le 28.01.2014 01:50, LAHAYE Olivier a écrit :
>
>> Hi
Jerome,
>>
>> This is strange, did you enabled EPEL repository?
>> if
not, please install epel-repo
>>
>> sudo rpm -Uvh
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
>>
>> Best regards,
>>
>> Olivier.
>>
>> --
>> Olivier LAHAYE
>> CEA
DRT/LIST/DIR
>>
>> -------------------------
>>
>> DE :
jlefe...@mls.nc [jlefe...@mls.nc]
>> DATE D'ENVOI : lundi 27 janvier
2014 09:29
>> À : oscar-users@lists.sourceforge.net
>> OBJET :
[Oscar-users] OSCAR : CentOS 6.4/6.5 : error with OSCAR dependencies,
image stage
>>
>> Hi,
>>
>> I use OSCAR for a while to manage our old
opteron cluster, and I would adress a big thanks to OSCAR developpers.
>>
>> Now I want to install OSCAR 6 with centOS-6.4 on a modern Dell
cluster.
>>
>> First, I manage to create and populate local
directories for CentOs, epel and oscar packages (after rsyncing from
http://svn.oscar.openclustergroup.org/repos/unstable/rhel-6-x86_64/) to
avoid spending time with downloading along the image creation.
>>
>>
The Oscar server is up and I have made some checking. The image creation
is running smoothly, the image is growing with a right tree, but at the
final stage, when OSCAR packages for client nodes should be installed, I
have a lot of dependencies error (see below). May be some package are
missing ( perl(TK::), perl(SIS::), perl(Systeminstaller) etc ...) but
they are installed on my head node and they are also in the local repo,
where the oscar stuff is lying : /tftpboot/oscar/rhel-6-x86_64
>>
>>
How I can manage to test and debug ? Something wrong with packages ?
>>
>> Many thanks, cheers, Jerome
>>
>> [ACTION] Creating the basic
golden image...
>> [ACTION] About to run: mksiimage -A --name image_v1
--filename /usr/share/oscar/oscarsamples/centos-6-x86_64.rpmlist --arch
x86_64 --path /var/lib/systemimager/images/image_v1 --distro
centos-6-x86_64 --verbose --verbose
>> [INFO] Adding the
repositories:
>> [INFO] Array: 1 element(s):
>> -
file:/tftpboot/distro/centos-6-x86_64
>> [INFO] Adding valid local repo
(file:/tftpboot/distro/centos-6-x86_64)
>> [INFO] Adding
file:/tftpboot/distro/centos-6-x86_64 in
/tftpboot/distro/centos-6-x86_64.url
>> [INFO] About to add
"file:/tftpboot/distro/centos-6-x86_64" to
/tftpboot/distro/centos-6-x86_64.url
>> [INFO] Line already present in
file. File unmodified.
>> [INFO] Select valid local repo
file:/tftpboot/distro/centos-6-x86_64
>> [INFO] Adding the
repositories:
>> [INFO] Array: 2 element(s):
>> -
file:/tftpboot/oscar/rhel-6-x86_64
>> -
file:/tftpboot/oscar/common-rpms
>> [INFO] Adding valid local repo
(file:/tftpboot/oscar/rhel-6-x86_64)
>> [INFO] Skipping empty local repo
(file:/tftpboot/oscar/common-rpms)
>> [INFO] Adding
file:/tftpboot/oscar/rhel-6-x86_64 in
/tftpboot/oscar/rhel-6-x86_64.url
>> [INFO] About to add
"file:/tftpboot/oscar/rhel-6-x86_64" to
/tftpboot/oscar/rhel-6-x86_64.url
>> [INFO] Line already present in
file. File unmodified.
>> [INFO] Select valid local repo
file:/tftpboot/oscar/rhel-6-x86_64
>> [INFO]
file:/tftpboot/distro/centos-6-x86_64 is in cache
>> [INFO]
file:/tftpboot/oscar/rhel-6-x86_64 is in cache
>> 2014-1-27 16:58:51
[SystemInstaller::Package :: Line 79] ---> Package files:
/usr/share/oscar/oscarsamples/centos-6-x86_64.rpmlist
>>
>> [INFO]
Available core packages:
>> [INFO] Array: 10 element(s):
>> - yume
>> -
sync-files
>> - switcher
>> - sis
>> - sc3
>> - rapt
>> - oda
>> - c3
>>
- base
>> - apitest
>>
>> 2014-1-27 16:58:51 [SystemInstaller::Package
:: Line 96] ---> Core OPKGs: yume sync-files switcher sis sc3 rapt oda
c3 base apitest
>>
>> 2014-1-27 16:58:51 [SystemInstaller::Package ::
Line 101] ---> Package list: arpwatch at atk authconfig autofs
basesystem bash bc beecrypt bind-libs bind-utils binutils bzip2
bzip2-libs centos-release chkconfig compat-gcc-34 compat-gcc-34-g77
compat-libf2c-34 coreutils cpio cpp cracklib cracklib-dicts cronie
cronie-anacron crontabs cyrus-sasl cyrus-sasl-md5 db4 device-mapper
dhclient diffutils dosfstools dracut e2fsprogs ed eject elfutils-libelf
ethtool expat file filesystem findutils finger finger-server fontconfig
freetype ftp gawk gcc gcc-c++ gcc-gfortran gd gdb gdbm gettext glib
glib2 glibc glibc-common glibc-devel glibc-headers gmp gnuplot gpm grep
groff grub gtk2 gzip hdparm hesiod hwdata info initscripts iproute
iptables iputils jwhois kbd kernel krb5-libs less libacl libaio
libaio-devel libart_lgpl libattr libcap libgcc libgcj libgcrypt
libjpeg-turbo libmng libobjc libpng libselinux libsepol libstdc++
libstdc++-devel libtiff libuser libutempter logrotate lsof ltrace lvm2
m4 mailcap mailx make MAKEDEV man man-pages mingetty module-init-tools
mtools mysql ncurses net-tools newt nfs-utils nscd ntp ntsysv openldap
openssh openssh-clients openssh-server openssl pam pango passwd patch
pciutils pcre perl perl-DBD-MySQL perl-DBD-Pg perl-DBI perl-HTML-Parser
perl-HTML-Tagset popt postfix postgresql postgresql-libs procmail procps
psmisc python pyxf86config PyXML quota rdate rdist rdma readline
redhat-logos rootfiles rpcbind rpm rpm-libs rsh rsh-server rsync rsyslog
screen sed setserial setup setuptool shadow-utils slang strace tar tcl
tcpdump tcp_wrappers tcsh telnet telnet-server time tmpwatch traceroute
ttmkfdir tzdata udev units upstart usbutils usermode util-linux-ng
vim-common vim-enhanced vim-minimal which words xinetd
xorg-x11-fonts-misc xorg-x11-font-utils xorg-x11-twm xorg-x11-xauth
xorg-x11-xinit ypbind zip zlib zlib-devel opkg-yume-client
opkg-sync-files-client opkg-switcher-client opkg-sis-client
opkg-sc3-client opkg-rapt-client opkg-oda-client opkg-c3-client
opkg-base-client opkg-apitest-client
>> Installing packages in
/var/lib/systemimager/images/image_v1:
>> [INFO] Array: 1 element(s):
>>
- arpwatch
>> Repository Manager Status:
>> Repos:
file:/tftpboot/distro/centos-6-x86_64,file:/tftpboot/oscar/rhel-6-x86_64
>>
Distro: centos-6-x86_64
>> Format: rpm
>> Packman status:
>> Format:
RPM
>> Associated distro: centos-6-x86_64
>> ChRoot:
/var/lib/systemimager/images/image_v1
>> Number of repos: 2
>> List of
repos: file:/tftpboot/oscar/rhel-6-x86_64,
file:/tftpboot/distro/centos-6-x86_64
>> [INFO] Bootstrapping the
image...
>>
>> ---------------- SNIP // SNIP
-----------------------------------
>>
>> [INFO] Array: 1
element(s):
>> - zlib-devel
>> Repository Manager Status:
>> Repos:
file:/tftpboot/distro/centos-6-x86_64,file:/tftpboot/oscar/rhel-6-x86_64
>>
Distro: centos-6-x86_64
>> Format: rpm
>> Packman status:
>> Format:
RPM
>> Associated distro: centos-6-x86_64
>> ChRoot:
/var/lib/systemimager/images/image_v1
>> Number of repos: 2
>> List of
repos: file:/tftpboot/oscar/rhel-6-x86_64,
file:/tftpboot/distro/centos-6-x86_64
>> Installing packages in
/var/lib/systemimager/images/image_v1:
>> [INFO] Array: 1 element(s):
>>
- opkg-yume-client
>> Repository Manager Status:
>> Repos:
file:/tftpboot/distro/centos-6-x86_64,file:/tftpboot/oscar/rhel-6-x86_64
>>
Distro: centos-6-x86_64
>> Format: rpm
>> Packman status:
>> Format:
RPM
>> Associated distro: centos-6-x86_64
>> ChRoot:
/var/lib/systemimager/images/image_v1
>> Number of repos: 2
>> List of
repos: file:/tftpboot/oscar/rhel-6-x86_64,
file:/tftpboot/distro/centos-6-x86_64
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(Tk::DialogBox)
>> Error: Package:
configurator-1.0.6-2.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk)
>> Error: Package: oscar-base-scripts-6.1.2r10441-1.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(SIS::NewDB)
>> Error: Package:
oscar-base-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(SIS::NewDB)
>> Error: Package: oscar-base-lib-6.1.2r10441-1.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(Tk::Tree)
>> Error: Package:
systemimager-server-4.3.0-0.16.el6.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(Tk::ProgressBar)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Log)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(Net::IPv4Addr)
>> Error: Package:
configurator-1.0.6-2.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk::Pane)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Tk::Image)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Tk::Common)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Tk::AddClients)
>> Error: Package:
configurator-1.0.6-2.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk::Menu)
>> Error: Package: perl-Tk-TextANSIColor-0.16-1.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(Tk::ROText)
>> Error: Package:
systemimager-server-4.3.0-0.16.el6.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(Tk)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Env)
>> Error: Package:
systemimager-server-4.3.0-0.16.el6.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(Tk::ROText)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Machine)
>> Error: Package:
oscar-base-lib-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk::LabEntry)
>> Error: Package:
perl-Tk-TextANSIColor-0.16-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk)
>> Error: Package: systemimager-server-4.3.0-0.16.el6.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(Tk::ItemStyle)
>> Error:
Package: systemimager-server-4.3.0-0.16.el6.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(Tk::HList)
>> Error: Package:
oscar-base-lib-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk)
>> Error: Package: systemimager-server-4.3.0-0.16.el6.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(Tk::Label)
>> Error: Package:
oscar-base-lib-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk::Dialog)
>> Error: Package: oscar-base-lib-6.1.2r10441-1.noarch
(oscar_rhel-6-x86_64)
>> Requires: perl(Net::IPv4Addr)
>> Error:
Package: oscar-base-lib-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SystemInstaller::Utils)
>> Error: Package:
oscar-base-scripts-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>>
Requires: perl(SIS::Adapter)
>> Error: Package:
oscar-base-lib-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(SystemInstaller::Tk::Common)
>> Error: Package:
oscar-base-lib-6.1.2r10441-1.noarch (oscar_rhel-6-x86_64)
>> Requires:
perl(Tk::Pretty)
>> ERROR during execution 256
>> WARNING: Impossible to
install opkg-yume-client (-1, Loaded plugins: dellsysid, fastestmirror,
refresh-packagekit, security
>>
>>
------------------------------------------------------------------------------
>>
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>> Learn
Why More Businesses Are Choosing CenturyLink Cloud For
>> Critical
Workloads, Development Environments & Everything In Between.
>> Get a
Quote or Start a Free Trial Today.
>>
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
[1]
>>
>> _______________________________________________
>>
Oscar-users mailing list
>> Oscar-users@lists.sourceforge.net
>>
https://lists.sourceforge.net/lists/listinfo/oscar-users [2]
>
>
------------------------------------------------------------------------------
>
WatchGuard Dimension instantly turns raw network data into actionable
> security intelligence. It gives you real-time visual feedback on
key
> security issues and trends. Skip the complicated setup - simply
import
> a virtual appliance and go from zero to informed in seconds.
>
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
[3]
>
> _______________________________________________
> Oscar-users
mailing list
> Oscar-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/oscar-users [2]
Links:
------
[1]
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
[2]
https://lists.sourceforge.net/lists/listinfo/oscar-users
[3]
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users