You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Procedure for reinstalling software with the bot (and preventing chown/chmod issues in the container) #312
Easybuild crashed because it could not chown/chmod some /cvmfs/... paths. Most likely this is only while the bot is rebuilding something otherwise this error would have been seen while we build anything. easybuild-9ukb1c3n.log
I have seen it before, mostly in cases where we were updating the existing compatibility layer. That was often because the original installation was done with for instance a different user id. I don't think the latter is the case here, as we're doing all installation with the bot. Instead, I think this is due to the --read-only-installdir that we added a few months ago: #245.
I'm not sure what the right move here is. I think the use of --read-only-installdir is a good idea to protect our installations from accidental changes. In the case of @satishskamath, he is looking to rebuild an existing installation, which one would expect to be a rare case.
In #295, there is a discussion about what the workflow should be in that scenario. Perhaps the use of --fakeroot should be part of that workflow? Perhaps there should be a special easystack file for rebuilds so that the impact can be contained and recorded?
It's always possible to do this, but you have then changed the path, so the old location is still available
Also can such a local build be ingested?
Not in the correct location. Trying to "move" an installation can very easily be problematic (because of CMake paths, pkgconfig, not to mention what the package itself may do)
Looking into this again now, since it's also an issue for #404 where we need to replace the OpenMPI installation. This looks similar to containers/fuse-overlayfs#377 and containers/fuse-overlayfs#374. I'm not sure how we can easily work around this, but the --fakeroot option is still the only workaround that I've found so far. We could consider adding a rebuild command to the bot, which will then set this. It will also need to run eb with --allow-use-as-root-and-accept-consequences, though, as otherwise EB will complain (You seem to be running EasyBuild with root privileges which is not wise, so let's end this here.). Not sure if this has any other implications for the way we build and ingest things, e.g. in terms of ownership.
changed the title [-]Easybuild crashed because it could not `chown/chmod` some `/cvmfs/...` paths. Most likely this is only while the bot is rebuilding something otherwise this error would have been seen while we build anything.[/-][+]Procedure for reinstalling software with the bot (and preventing `chown`/`chmod` issues in the container)[/+]on Feb 26, 2024
After discussing this a bit with @akesandgren on Slack, I now have another workaround/solution to hide an existing software installation from the container: you can make a character special file using mknod <path to file/dir> c 0 0 in the overlay's upper directory. For instance, if we want to hide some OpenMPI version, you can do the following:
cd /tmp/eessi.fu3sWt8xpS/overlay-upper
mkdir -p versions/2023.06/software/linux/x86_64/amd/zen3/software/OpenMPI
mknod versions/2023.06/software/linux/x86_64/amd/zen3/software/OpenMPI/4.1.5-GCC-12.3.0 c 0 0
Looks like it has to be done before launching the container, though.
Letting the bot's build script do that is still not that easy, though, as it would need to figure out which things to delete/hide before even entering the container, i.e. before calling EasyBuild. So the bot will have to provide this info to the build scripts in some way, which brings me to another point: how do we even want to specify that we need to rebuild something? We've done that before with ReFrame, and then we (temporarily) added rebuild: True to the easystack, and removed that before merging the PR. That's also a bit cumbersome...
While thinking about possible ways to do it and wondering if you could make an empty PR where you just tell the bot to rebuild OpenMPI-......eb for arch ... and repo ..., I realized that it's better anyway to log this in some file that can be updated by a PR. Similar to the known issues YAML file, we could make a YAML file for all installations that ever had to be rebuilt, with maybe a date and/or link to an issue to make clear when and why it was done. The build script called by the bot should then check if this PR is changing this particular YAML file, and it that case only rebuild the easyconfig(s) that was added to the file in this PR. It should then be clear which directory has to be hidden in the overlay.
I've tried to use a Debian 12 container with newer FUSE libraries and various versions of fuse-overlayfs. In all cases, I still got the Permission denied error when trying to do anything with an existing software installation. So it doesn't look like we can work around it that way, unfortunately.
Letting the bot's build script do that is still not that easy, though, as it would need to figure out which things to delete/hide before even entering the container, i.e. before calling EasyBuild. So the bot will have to provide this info to the build scripts in some way, which brings me to another point: how do we even want to specify that we need to rebuild something? We've done that before with ReFrame, and then we (temporarily) added rebuild: True to the easystack, and removed that before merging the PR. That's also a bit cumbersome...
While thinking about possible ways to do it and wondering if you could make an empty PR where you just tell the bot to rebuild OpenMPI-......eb for arch ... and repo ..., I realized that it's better anyway to log this in some file that can be updated by a PR. Similar to the known issues YAML file, we could make a YAML file for all installations that ever had to be rebuilt, with maybe a date and/or link to an issue to make clear when and why it was done. The build script called by the bot should then check if this PR is changing this particular YAML file, and it that case only rebuild the easyconfig(s) that was added to the file in this PR. It should then be clear which directory has to be hidden in the overlay.
I like this idea...
This could boil down to adding a file like easystacks/software.eessi.io/2023.06/rebuilds/20240228-OpenMPI-fix-smcuda.yml?
One thing to keep in mind is that we should somehow try to retain the possibility to "replay" a series of installations for a new CPU target (like x86_64/amd/zen4 soon), not sure how we would do that with the rebuilds in the mix...
Activity
bedroge commentedon Jul 24, 2023
I have seen it before, mostly in cases where we were updating the existing compatibility layer. That was often because the original installation was done with for instance a different user id. I don't think the latter is the case here, as we're doing all installation with the bot. Instead, I think this is due to the
--read-only-installdirthat we added a few months ago: #245.Seems like I'm not allowed to change it in any way, even with a writable overlay.
Comparing it to the older
2021.12pilot, where we didn't use this option, I am allowed to do whatever I want:bedroge commentedon Jul 24, 2023
Using Apptainer's
--fakerootseems to solve the issue:But it probably also defeats the purpose of using
--read-only-installdir;-).ocaisa commentedon Jul 24, 2023
I'm not sure what the right move here is. I think the use of
--read-only-installdiris a good idea to protect our installations from accidental changes. In the case of @satishskamath, he is looking to rebuild an existing installation, which one would expect to be a rare case.In #295, there is a discussion about what the workflow should be in that scenario. Perhaps the use of
--fakerootshould be part of that workflow? Perhaps there should be a special easystack file for rebuilds so that the impact can be contained and recorded?satishskamath commentedon Jul 24, 2023
ebprefix if therebuildoption is given? Then it doesn't need to modify the/cvmfspaths at all. I do agree with the read only install directory in Make sure installations are read only by enabling --read-only-installdir EasyBuild configure option #245 .ocaisa commentedon Jul 24, 2023
It's always possible to do this, but you have then changed the path, so the old location is still available
Not in the correct location. Trying to "move" an installation can very easily be problematic (because of
CMakepaths,pkgconfig, not to mention what the package itself may do)bedroge commentedon Feb 22, 2024
Looking into this again now, since it's also an issue for #404 where we need to replace the OpenMPI installation. This looks similar to containers/fuse-overlayfs#377 and containers/fuse-overlayfs#374. I'm not sure how we can easily work around this, but the
--fakerootoption is still the only workaround that I've found so far. We could consider adding arebuildcommand to the bot, which will then set this. It will also need to runebwith--allow-use-as-root-and-accept-consequences, though, as otherwise EB will complain (You seem to be running EasyBuild with root privileges which is not wise, so let's end this here.). Not sure if this has any other implications for the way we build and ingest things, e.g. in terms of ownership.[-]Easybuild crashed because it could not `chown/chmod` some `/cvmfs/...` paths. Most likely this is only while the bot is rebuilding something otherwise this error would have been seen while we build anything.[/-][+]Procedure for reinstalling software with the bot (and preventing `chown`/`chmod` issues in the container)[/+]bedroge commentedon Feb 26, 2024
After discussing this a bit with @akesandgren on Slack, I now have another workaround/solution to hide an existing software installation from the container: you can make a character special file using
mknod <path to file/dir> c 0 0in the overlay's upper directory. For instance, if we want to hide some OpenMPI version, you can do the following:Looks like it has to be done before launching the container, though.
Letting the bot's build script do that is still not that easy, though, as it would need to figure out which things to delete/hide before even entering the container, i.e. before calling EasyBuild. So the bot will have to provide this info to the build scripts in some way, which brings me to another point: how do we even want to specify that we need to rebuild something? We've done that before with ReFrame, and then we (temporarily) added
rebuild: Trueto the easystack, and removed that before merging the PR. That's also a bit cumbersome...While thinking about possible ways to do it and wondering if you could make an empty PR where you just tell the bot to
rebuild OpenMPI-......eb for arch ... and repo ..., I realized that it's better anyway to log this in some file that can be updated by a PR. Similar to the known issues YAML file, we could make a YAML file for all installations that ever had to be rebuilt, with maybe a date and/or link to an issue to make clear when and why it was done. The build script called by the bot should then check if this PR is changing this particular YAML file, and it that case only rebuild the easyconfig(s) that was added to the file in this PR. It should then be clear which directory has to be hidden in the overlay.bedroge commentedon Feb 27, 2024
I've tried to use a Debian 12 container with newer FUSE libraries and various versions of fuse-overlayfs. In all cases, I still got the
Permission deniederror when trying to do anything with an existing software installation. So it doesn't look like we can work around it that way, unfortunately.boegel commentedon Feb 28, 2024
I like this idea...
This could boil down to adding a file like
easystacks/software.eessi.io/2023.06/rebuilds/20240228-OpenMPI-fix-smcuda.yml?One thing to keep in mind is that we should somehow try to retain the possibility to "replay" a series of installations for a new CPU target (like
x86_64/amd/zen4soon), not sure how we would do that with the rebuilds in the mix...Merge pull request EESSI#312 from trz42/nessi_rebuild_func_code_only