-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS 8.3 xCAT 3.0 copycds can't recognize cumulus image #6947
Comments
Hi, this problem is due to changes in the output of the file command between RHEL 7 and RHEL 8. xCAT uses the On RHEL 7 (and related OSes), the output returned looks like:
On RHEL 8 (and related OSes), the output returned looks like:
We will implement a permanent fix, but you should be able to use a workaround like this on your current MN:
|
Thanks for workaround.
From: besawn ***@***.***>
Sent: April 27, 2021 10:04
To: xcat2/xcat-core ***@***.***>
Cc: davisgoodman ***@***.***>; Author ***@***.***>
Subject: Re: [xcat2/xcat-core] CentOS 8.3 xCAT 3.0 copycds can't recognize cumulus image (#6947)
Hi, this problem is due to changes in the output of the file command between RHEL 7 and RHEL 8.
xCAT uses the file command inside of copycds to try to determine the type of file that is being passed in to take the appropriate code path.
On RHEL 7 (and related OSes), the output returned looks like:
***@***.*** ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
***@***.*** ~]# rpm -q --whatprovides /usr/bin/file
file-5.11-33.el7.ppc64le
***@***.*** ~]# file /mnt/xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin
/mnt/xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin: data
On RHEL 8 (and related OSes), the output returned looks like:
***@***.*** cumulus_mlx]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)
***@***.*** cumulus_mlx]# rpm -q --whatprovides /usr/bin/file
file-5.33-8.el8.ppc64le
***@***.*** cumulus_mlx]# file /xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin
/xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin: POSIX shell script executable (binary data)
We will implement a permanent fix, but you should be able to use a workaround like this on your current MN:
***@***.*** cumulus_mlx]# copycds cumulus-linux-3.5.3-bcm-armel.bin
Error: [boston02]: copycds was unable to mount /xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin to /var/run/xcat/mountpoint/40ed357bf0047cd99f260de083598e61.
***@***.*** cumulus_mlx]# cp -p /opt/xcat/lib/perl/xCAT_plugin/copycds.pm /opt/xcat/lib/perl/xCAT_plugin/copycds.pm.orig
***@***.*** cumulus_mlx]# vi /opt/xcat/lib/perl/xCAT_plugin/copycds.pm
***@***.*** cumulus_mlx]# diff /opt/xcat/lib/perl/xCAT_plugin/copycds.pm /opt/xcat/lib/perl/xCAT_plugin/copycds.pm.orig
118c118
< if (grep /$file: .* data/, @filestat) {
---
if (grep /$file: data/, @filestat) {
***@***.*** cumulus_mlx]# copycds cumulus-linux-3.5.3-bcm-armel.bin
Copying media to /install/cumulus3.5.3/armel
Media copy operation successful
The image cumulus3.5.3-armel is created.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6947 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AI7MAZX6FDVUPKM5DS7R2L3TK2753ANCNFSM43EK7F2A> . <https://github.com/notifications/beacon/AI7MAZWKA2JE4FCLMCLCPS3TK2753A5CNFSM43EK7F2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGFKKWTQ.gif>
|
The workaround works fine.
Could we face the same issue here while trying to set the osimage for the switch?
***@***.*** bin]# nodeset l-hpc101-u23 osimage=cumulus4.2.1-armel
Error: [cdw-mgmt-hpc]: The image '/install/cumulus4.2.1/armel/cumulus-linux-4.2.1-bcm-armel.bin' is invalid
From: besawn ***@***.***>
Sent: April 27, 2021 10:04
To: xcat2/xcat-core ***@***.***>
Cc: davisgoodman ***@***.***>; Author ***@***.***>
Subject: Re: [xcat2/xcat-core] CentOS 8.3 xCAT 3.0 copycds can't recognize cumulus image (#6947)
Hi, this problem is due to changes in the output of the file command between RHEL 7 and RHEL 8.
xCAT uses the file command inside of copycds to try to determine the type of file that is being passed in to take the appropriate code path.
On RHEL 7 (and related OSes), the output returned looks like:
***@***.*** ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
***@***.*** ~]# rpm -q --whatprovides /usr/bin/file
file-5.11-33.el7.ppc64le
***@***.*** ~]# file /mnt/xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin
/mnt/xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin: data
On RHEL 8 (and related OSes), the output returned looks like:
***@***.*** cumulus_mlx]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)
***@***.*** cumulus_mlx]# rpm -q --whatprovides /usr/bin/file
file-5.33-8.el8.ppc64le
***@***.*** cumulus_mlx]# file /xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin
/xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin: POSIX shell script executable (binary data)
We will implement a permanent fix, but you should be able to use a workaround like this on your current MN:
***@***.*** cumulus_mlx]# copycds cumulus-linux-3.5.3-bcm-armel.bin
Error: [boston02]: copycds was unable to mount /xcat/iso/cumulus/cumulus_mlx/cumulus-linux-3.5.3-bcm-armel.bin to /var/run/xcat/mountpoint/40ed357bf0047cd99f260de083598e61.
***@***.*** cumulus_mlx]# cp -p /opt/xcat/lib/perl/xCAT_plugin/copycds.pm /opt/xcat/lib/perl/xCAT_plugin/copycds.pm.orig
***@***.*** cumulus_mlx]# vi /opt/xcat/lib/perl/xCAT_plugin/copycds.pm
***@***.*** cumulus_mlx]# diff /opt/xcat/lib/perl/xCAT_plugin/copycds.pm /opt/xcat/lib/perl/xCAT_plugin/copycds.pm.orig
118c118
< if (grep /$file: .* data/, @filestat) {
---
if (grep /$file: data/, @filestat) {
***@***.*** cumulus_mlx]# copycds cumulus-linux-3.5.3-bcm-armel.bin
Copying media to /install/cumulus3.5.3/armel
Media copy operation successful
The image cumulus3.5.3-armel is created.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#6947 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AI7MAZX6FDVUPKM5DS7R2L3TK2753ANCNFSM43EK7F2A> . <https://github.com/notifications/beacon/AI7MAZWKA2JE4FCLMCLCPS3TK2753A5CNFSM43EK7F2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGFKKWTQ.gif>
|
This seems to have fix it:
|
The section of "Full Install" at https://xcat-docs.readthedocs.io/en/stable/advanced/networks/onie_switches/os_cumulus/upgrade.html provides the commands to upgrade ONIE switches with new Cumulus Linux versions. Note that rinstall is not used here. |
When trying to create an osimage of the cumulus binary I get this error:
[root@cdw-mgmt-hpc ~]# copycds -i /install/custom/sw_os/cumulus/cumulus-linux-4.1.1-bcm-armel.bin
Error: [cdw-mgmt-hpc]: copycds was unable to mount /install/custom/sw_os/cumulus/cumulus-linux-4.1.1-bcm-armel.bin to /var/run/xcat/mountpoint/e60719fdefbde196d401de800e9caa18.
Was on CentOS 8.2 and had the same issue
The text was updated successfully, but these errors were encountered: