Skip to content

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

Description

@ocebr

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions