Skip to content
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

fix bug with container add #656

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

fix bug with container add #656

wants to merge 4 commits into from

Conversation

vsoch
Copy link
Member

@vsoch vsoch commented Jul 1, 2023

and expose keep_path to add

@dipietrantonio
Copy link
Contributor

dipietrantonio commented Jul 6, 2023

Hi @vsoch , I did some experiments

$shpc add /scratch/pawsey0001/cdipietrantonio/tensorflow.sif amdih:tensorflow:latest
SINGULARITY is not installed, functionality might be limited.
Registry entry amdih was added! Before shpc install, edit:
/software/projects/pawsey0001/cdipietrantonio/setonix/python/lib/python3.9/site-packages/singularity_hpc-0.1.24-py3.9.egg/registry/amdih/container.yaml
$ ls /software/projects/pawsey0001/cdipietrantonio/setonix/python/lib/python3.9/site-packages/singularity_hpc-0.1.24-py3.9.egg/registry/amdih/
container.yaml
$ ls /scratch/pawsey0001/cdipietrantonio/cbase/
amdih  pawsey  sha256:153ff47d5dfac0807504b5c29c7ecd7d9ea6b7736ceb0d5876a1b0c1a980e0c1.sif

So as you can see the container is not copied anymore into the same directory of container.yaml, but directly under container_base, as indeed the code instructs to do.

I was wondering whether it would be better to recreate a directory structure for the container, containing registry and software name. In our case container_base/amdih/tensorflow.

Also, is the path field in container.yaml relative to container_base ?

@vsoch
Copy link
Member Author

vsoch commented Jul 6, 2023

Looks like we have some bugs! I’ll take a look tomorrow. Thanks for testing it out!

vsoch added 2 commits July 6, 2023 07:33
and expose keep_path to add

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
and expose keep_path to add

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the fix/bug-with-container-add branch from d576925 to 2226cc0 Compare July 6, 2023 13:33
@vsoch
Copy link
Member Author

vsoch commented Jul 6, 2023

hey @dipietrantonio good morning! I just pushed (hopefully) a fix so that the container path includes container_base and the module name (that was a bug) and want to answer your question.

Also, is the path field in container.yaml relative to container_base ?

The container.yaml is part of the registry, so this is derived from a filesystem registry path, e.g., self.settings.filesystem_registry

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the fix/bug-with-container-add branch from 2226cc0 to 4553cc4 Compare July 6, 2023 13:36
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch
Copy link
Member Author

vsoch commented Jul 6, 2023

There is still a bug - will work on it later today after work!

@dipietrantonio
Copy link
Contributor

dipietrantonio commented Aug 9, 2023

Hi @vsoch, how is the work on this PR going?

@vsoch
Copy link
Member Author

vsoch commented Aug 9, 2023

I'm trying to remember what the bug is - looking at what I was doing, I was changing container add to have the container go under the container_base. But this is in correct - a container add isn't an install, and should be added alongside the container.yaml config (or not moved at all) since the user isn't actually installing it.

@vsoch
Copy link
Member Author

vsoch commented Aug 9, 2023

So I'm tempted to say this is not a bug - a container add should not be installing to the containers base, because it is simply just creating a container.yaml that then should be installed.

@vsoch vsoch added the wontfix This will not be worked on label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants