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

Archive *.tar.zst not written to shared cache via cifs and kas 4.3 #125

Open
ocebr opened this issue Jul 18, 2024 · 0 comments
Open

Archive *.tar.zst not written to shared cache via cifs and kas 4.3 #125

ocebr opened this issue Jul 18, 2024 · 0 comments

Comments

@ocebr
Copy link

ocebr commented Jul 18, 2024

I'm trying to run a yocto build using kas in Gitlab CI/CD. The build target is an AKS (Azure Kubernetes service) For that, I have configured a gitlab runner, PVC and bitbake hash server.

Gitlab runner config :

 config: |
   [[runners]]
     [runners.kubernetes]
       cpu_request = "6"
      [[runners.kubernetes.volumes.pvc]]
        name = "sstate-cache"
        mount_path = "/sstate-cache"
      [[runners.kubernetes.volumes.pvc]]
        name = "downloads"
        mount_path = "/downloads"

PVC :

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: sstate-cache
  namespace: test
spec:
  accessModes:
  - ReadWriteMany 
  storageClassName: azurefile-csi-zrs
  resources:
    requests:
      storage: 150Gi


---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: downloads
  namespace: test
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 150Gi
  storageClassName: azurefile-csi-zrs

Cache variables such as SSTATE_DIR and DL_DIR has been set up respectively to /sstate-cache and /downloads

Yet, build still take too much time to complete, everything is being rebuilt, and no archive file of type .tar.zst exists in cache. only *.tar.zst.siginfo are in cache.

When changing shared cache location to /tmp on the pod, archive are successfully created. I think the problem is related to cifs.

For some reasons, I'm not able at the very the moment to switch to nfs. Does someone already encouters such issue or could even think why this happen ?

@ocebr ocebr changed the title Archive *.tar.zst not written to shared cache via cifs Archive *.tar.zst not written to shared cache via cifs and kas 4.3 Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant