xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
360 stars 171 forks source link

nodeset not properly creating autoinst file for repo #3572

Open sfishback opened 7 years ago

sfishback commented 7 years ago
# rpm -qa | grep xcat
ipmitool-xcat-1.8.17-1.x86_64
conserver-xcat-8.1.16-10.x86_64
elilo-xcat-3.14-4.noarch
grub2-xcat-2.02-0.16.el7.snap201506090204.noarch
syslinux-xcat-3.86-2.noarch

# nodeset -v
Version 2.13.4 (git commit 6ee3741498768994e4bb10d2a77c9699bcabde90, built Tue May 16 10:03:13 EDT 2017)

Concentration on the "/install/software/rhel-7-server" repo pkgdir item:

# tabedit linuximages 
"compute","/install/templates/compute/compute.tmpl",,,"/install/templates/compute/compute.pkglist","/install/rhels7.3/x86_64,/install/software/otherpkgs,/install/software/saltstack,/install/software/epel,/install/software/rhel-7-server,/install/software/rhel-7-server-optional-rpms",,,,,,,,,,,,,,,,,,

# nodeset c-209-15 osimage=compute
# less /install/autoinst/c-209-15
<snip>
echo 'repo --name=pkg4 --baseurl=http://'$nextserver'//install/software/rhel-7-server-rpms' >> /tmp/repos

echo 'repo --name=pkg5 --baseurl=http://'$nextserver'//install/software/rhel-7-server-optional-rpms' >> /tmp/repos
<snip>

cat >/etc/yum.repos.d/local-repository-4.repo << 'EOF'
EOF

cat >/etc/yum.repos.d/local-repository-5.repo << 'EOF'
[local-rhels7.3-x86_64--install-software-rhel-7-server-optional-rpms]
name=xCAT configured yum repository for /install/software/rhel-7-server-optional-rpms
baseurl=http://172.22.212.203//install/software/rhel-7-server-optional-rpms
enabled=1
gpgcheck=0

EOF

Now the workaround. Looking at "rhel7server" this time. Removing the dashes ("-") from the name fixes my 'nodeset' issue:

"compute","/install/templates/compute/compute.tmpl",,,"/install/templates/compute/compute.pkglist","/install/rhels7.3/x86_64,/install/software/otherpkgs,/install/software/saltstack,/install/software/epel,/install/software/rhel7server,/install/software/rhel-7-server-optional-rpms",,,,,,,,,,,,,,,,,,

# nodeset c-209-15 osimage=compute

# less /install/autoinst/c-209-15

cat >/etc/yum.repos.d/local-repository-4.repo << 'EOF'
[local-rhels7.3-x86_64--install-software-rhel7server]
name=xCAT configured yum repository for /install/software/rhel7server
baseurl=http://172.22.212.203//install/software/rhel7server
enabled=1
gpgcheck=0

EOF

cat >/etc/yum.repos.d/local-repository-5.repo << 'EOF'
[local-rhels7.3-x86_64--install-software-rhel-7-server-optional-rpms]
name=xCAT configured yum repository for /install/software/rhel-7-server-optional-rpms
baseurl=http://172.22.212.203//install/software/rhel-7-server-optional-rpms
enabled=1
gpgcheck=0

EOF
whowutwut commented 7 years ago

@immarvin Can anyone take a look at this?

immarvin commented 6 years ago

hi @sfishback , sorry for late response, how is "/install/software/rhel-7-server" generated? please provide the content of file "/install/postscripts/repos//install/software/rhel-7-server/local-repository.tmpl" if convenient, thanks

sfishback commented 6 years ago

I don’t think I ever got this resolved. It was so long ago I don’t fully recall the details now.

I experimented with removing “-“ dashes and the problem moved to another area. The contents of one of the “rhel-7-server” repo file would be empty but “rhel7server” got populated. This caused the next repo in the table “linuximages” list to be empty. Note “rhel-7-server-optional-rpms” is populated then empty.

Contents of the tmpl file was empty. [root@dogwood-frontend bin]# cat /install/postscripts/repos/install/software/rhel-7-server/local-repository.tmpl

[root@dogwood-frontend bin]# ls -l /install/postscripts/repos/install/software//.tmpl -rw-r--r-- 1 root root 163 Jun 29 15:32 /install/postscripts/repos/install/software/epel/local-repository.tmpl -rw-r--r-- 1 root root 0 Jul 31 15:36 /install/postscripts/repos/install/software/foobar/local-repository.tmpl -rw-r--r-- 1 root root 178 Jun 27 13:41 /install/postscripts/repos/install/software/otherpkgs/local-repository.tmpl

-rw-r--r-- 1 root root 0 Jul 31 20:33 /install/postscripts/repos/install/software/rhel-7-server/local-repository.tmpl -rw-r--r-- 1 root root 184 Jul 31 20:29 /install/postscripts/repos/install/software/rhel7server/local-repository.tmpl

-rw-r--r-- 1 root root 232 Jun 29 16:50 /install/postscripts/repos/install/software/rhel-7-server-optional-rpms/local-repository.tmpl -rw-r--r-- 1 root root 0 Aug 2 15:13 /install/postscripts/repos/install/software/rhel7server-optional-rpms/local-repository.tmpl

-rw-r--r-- 1 root root 0 Jul 31 13:42 /install/postscripts/repos/install/software/rhel-7-server-rpms/local-repository.tmpl -rw-r--r-- 1 root root 178 Jun 30 00:42 /install/postscripts/repos/install/software/rhel-epel/local-repository.tmpl -rw-r--r-- 1 root root 0 Jun 29 16:46 /install/postscripts/repos/install/software/rhel-optional/local-repository.tmpl -rw-r--r-- 1 root root 178 Jun 27 13:41 /install/postscripts/repos/install/software/saltstack/local-repository.tmpl

From: yangsong [mailto:notifications@github.com] Sent: Tuesday, October 31, 2017 3:59 AM To: xcat2/xcat-core xcat-core@noreply.github.com Cc: Fishback, Steven C fishback@email.unc.edu; Mention mention@noreply.github.com Subject: Re: [xcat2/xcat-core] nodeset not properly creating autoinst file for repo (#3572)

hi @sfishbackhttps://github.com/sfishback , sorry for late response, how is "/install/software/rhel-7-server" generated? please provide the content of file "/install/postscripts/repos//install/software/rhel-7-server/local-repository.tmpl" if convenient, thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/xcat2/xcat-core/issues/3572#issuecomment-340687372, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABytEQSquziwR0jTenn6XCEIFEskwgqaks5sxtNEgaJpZM4OpHJu.

sfishback commented 6 years ago

I forgot to answer one of the questions. How is /install/software/ created?

//# Sync the RHN Satellite repos reposync --gpgcheck -l --repoid=rhel-7-server-rpms --download_path=/install/software --downloadcomps --download-metadata cd /install/software/rhel-7-server-rpms createrepo -c cachedir --update .

reposync --gpgcheck -l --repoid=rhel-7-server-optional-rpms --download_path=/install/software --downloadcomps --download-metadata cd /install/software/rhel-7-server-optional-rpms createrepo -c cachedir --update .

immarvin commented 6 years ago

fixed in https://github.com/xcat2/xcat-core/pull/4769

chuckbrazie commented 6 years ago

I am out of the office until 07/16/2018.

I am out of the office until Monday July 16.

Note: This is an automated response to your message "Re: [xcat2/xcat-core] nodeset not properly creating autoinst file for repo (#3572)" sent on 7/11/18 3:32:49 AM.

This is the only notification you will receive while this person is away.

chuckbrazie commented 6 years ago

I am out of the office until 07/16/2018.

I am out of the office until Monday July 16.

Note: This is an automated response to your message "Re: [xcat2/xcat-core] nodeset not properly creating autoinst file for repo (#3572)" sent on 7/11/18 2:41:59 AM.

This is the only notification you will receive while this person is away.