Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Singularity .sif image not found using local.file prefix #380

Open
gensweinb opened this issue Dec 14, 2020 · 0 comments
Open

Singularity .sif image not found using local.file prefix #380

gensweinb opened this issue Dec 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@gensweinb
Copy link

What are the steps to reproduce this issue?

  1. …create deployment (test.yaml) using local.file prefix for container 'image' (image: local.file/local/home/user1/testapp.sif) as per CRI documentation (Thirdly, aiming HPC users needs, Singularity-CRI makes it possible to leverage pre-pulled SIF images to launch pods.
    To use this feature, specify local.file prefix before full SIF image path on host and Singularity-CRI will do the rest.)
  2. …kubectl apply -f test.yaml

What happens?

… Warning Failed 4s (x2 over 18s) kubelet Failed to pull image “local.file/local/home/user1/testapp.sif”: rpc error: code = Internal desc = could not pull image: could not fetch local SIF info: could not open sif image: open /local/home/user1/testapp.sif: no such file or directory.

What were you expecting to happen?

… deployment to be created using the .sif image (I can run it from the command line on the kubernetes cluster)

Any logs, error output, comments, etc?

(If it’s long, please paste a link to the full output here.)
...

Environment?

Cluster information:
Kubernetes version: v1.19.3
Cloud being used: bare-metal
Installation method: manual
Host OS: ubuntu 18.04
CNI and version:
CRI and version: singularity-cri 1.13

I labelled the nodes using:
kubectl label no runtime=singularity

apiVersion: apps/v1
kind: Deployment
metadata:
name: testapp
spec:
replicas: 2
selector:
matchLabels:
app: testapp
template:
metadata:
labels:
app: testapp
spec:
nodeSelector:
runtime: singularity
containers:

  • name: testapp
    image: local.file/local/home/user1/testapp.sif
    ports:
  • containerPort: 8080

apiVersion: v1
kind: Service
metadata:
name: testapp
spec:
type: NodePort
ports:

  • port: 80
    targetPort: 8080
    selector:
    app: testapp

Failed to pull image “local.file/local/home/user1/testapp.sif”: rpc error: code = Internal desc = could not pull image: could not fetch local SIF info: could not open sif image: open /local/home/user1/testapp.sif: no such file or directory.

@gensweinb gensweinb added the bug Something isn't working label Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant