Yes, odd that that "yum repolist" show the status of the xCAT repos to be "enabled: 0" although in the .repo files it is "enabled=1" Have you tried "yum clean all" ? Mark Gurevich Poughkeepsie Development Lab HPC Software Development - xCAT "If we knew what it was we were doing, it would not be called research, would it?" --Albert Einstein From: "Mesbah Mohamady" <mesbahmoham...@gmail.com> To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net> Date: 12/29/2021 11:47 AM Subject: [EXTERNAL] Re: [xcat-user] OTHERPKGS Issue Yes, yum is installed: [root@xcat-comp08 ~]# rpm -qa | grep -i yum yum-plugin-fastestmirror-1.1.31-53.el7.noarch yum-metadata-parser-1.1.4-10.el7.x86_64 yum-3.4.3-167.el7.centos.noarch When trying to install manually on the compute node, the yum command fails due to trying to fetch the CentOS internet repositories while there is no internet access on the compute node: [root@xcat-comp08 ~]# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#7 - "Failed to connect to 2604:1380:1001:6c00::1: Network is unreachable" Loading mirror speeds from cached hostfile Loading mirror speeds from cached hostfile Loading mirror speeds from cached hostfile Loading mirror speeds from cached hostfile Loading mirror speeds from cached hostfile repo id repo name status base/7/x86_64 CentOS-7 - Base 0 extras/7/x86_64 CentOS-7 - Extras 0 updates/7/x86_64 CentOS-7 - Updates 0 xCAT-centos7.8-path0 xCAT-centos7.8-path0 0 xcat-otherpkgs0 xcat-otherpkgs0 0 repolist: 0 [root@xcat-comp08 ~]# yum install vim -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#7 - "Failed to connect to 2604:1380:2001:d00::3: Network is unreachable" One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=<repoid> ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable <repoid> or subscription-manager repos --disable=<repoid> 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true Cannot find a valid baseurl for repo: base/7/x86_64 Also it is strange that "yum repolist" show the status of the xCAT repos to be "enabled: 0" although in the .repo files it is "enabled=1" [root@xcat-comp08 ~]# cat /etc/yum.repos.d/xCAT-otherpkgs0.repo [xcat-otherpkgs0] name=xcat-otherpkgs0 baseurl=http://192.168.14.231:80/install/post/otherpkgs/centos7.8/x86_64/ enabled=1 gpgcheck=0 skip_if_unavailable=True [root@xcat-comp08 ~]# cat /etc/yum.repos.d/xCAT-centos7.8-path0.repo [xCAT-centos7.8-path0] name=xCAT-centos7.8-path0 baseurl=http://192.168.14.231:80/install/centos7.8/x86_64 enabled=1 gpgcheck=0 skip_if_unavailable=True On Wed, Dec 29, 2021 at 3:06 AM <aaronhc...@gmail.com> wrote: From the log entry, yum does not appear to be installed. Have you verified on a node with rpm -qa|grep yum On Tue, Dec 28, 2021 at 4:47 PM Mesbah Mohamady <mesbahmoham...@gmail.com > wrote: Dears, I have an issue when configuring a directory for "otherpkgs" on the management node to be used by compte nodes to download new RPMs: I have used the below approach: - On management node: # mkdir -p /install/post/otherpkgs/centos7.8/x86_64 # cd /install/post/otherpkgs/centos7.8/x86_64 # yumdownloader traceroute.x86_64 --resolve # createrepo . # vim otherpkg.pkglist traceroute # chdef -t osimage centos7.8-x86_64-install-compute otherpkglist=/install/post/otherpkgs/centos7.8/x86_64/otherpkg.pkglist # lsdef -t osimage centos7.8-x86_64-install-compute Object name: centos7.8-x86_64-install-compute imagetype=linux osarch=x86_64 osdistroname=centos7.8-x86_64 osname=Linux osvers=centos7.8 otherpkgdir=/install/post/otherpkgs/centos7.8/x86_64 otherpkglist=/install/post/otherpkgs/centos7.8/x86_64/otherpkg.pkglist pkgdir=/install/centos7.8/x86_64 pkglist=/opt/xcat/share/xcat/install/centos/compute.centos7.pkglist profile=compute provmethod=install template=/opt/xcat/share/xcat/install/centos/compute.centos7.tmpl # updatenode xcat-comp08 -P "otherpkgs" xcat-comp08: =============updatenode starting==================== xcat-comp08: trying to download postscripts... xcat-comp08: postscripts downloaded successfully xcat-comp08: trying to get mypostscript from 192.168.14.231... xcat-comp08: useradd: user 'mesbah' already exists xcat-comp08: groupadd: group 'admins' already exists xcat-comp08: postscript start..: otherpkgs xcat-comp08: pkgsarray: vim-enhanced bash-completion telnet, 3 xcat-comp08: yum: 1, apt: 0, zypper: 0 xcat-comp08: Loaded plugins: fastestmirror xcat-comp08: Cleaning repos: base extras updates xCAT-centos7.8-path0 xcat-otherpkgs0 xcat-comp08: Warning: the packages vim-enhanced* bash-completion* telnet* could not be found in the yum/apt repository, falling back to rpm/dpkg command. If you want your packages to be installed with yum/apt, verify yum/apt is installed and createrepo/dpkg-scanpackages has been run. xcat-comp08: postscript end....: otherpkgs exited with code 3 xcat-comp08: Running of postscripts has completed. xcat-comp08: =============updatenode ending==================== So what is the issue here?? Thanks in advance, Mesbah Mohamady _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user