lmorandini opened a new issue #947: Permission error on a OpenStack/Cinder 
persistent volume while creating a temporary dir
URL: https://github.com/apache/camel-k/issues/947
 
 
   While adding my first integration (examples/Sample.java) the builder 
objected, stating:
   
   > kubectl logs camel-k-kit-bm3c5ovisftb3f6lsq80-builder
   {"level":"info","ts":1569112916.446735,"logger":"camel-k.builder","msg":"Go 
Version: go1.12.7"}
   {"level":"info","ts":1569112916.4468539,"logger":"camel-k.builder","msg":"Go 
OS/Arch: linux/amd64"}
   
{"level":"info","ts":1569112916.4468768,"logger":"camel-k.builder","msg":"Camel 
K Version: 1.0.0-M2-SNAPSHOT"}
   {"level":"error","ts":1569112916.595498,"logger":"camel-k","msg":"Unexpected 
error while creating a temporary dir","error":"mkdir 
/workspace/builder-933634098: permission 
denied","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/lmorandini/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\ngithub.com/apache/camel-k/pkg/util/log.Logger.Error\n\t/home/lmorandini/git/camel-k/pkg/util/log/log.go:75\ngithub.com/apache/camel-k/pkg/util/log.Error\n\t/home/lmorandini/git/camel-k/pkg/util/log/log.go:196\ngithub.com/apache/camel-k/pkg/builder.(*defaultBuilder).Build\n\t/home/lmorandini/git/camel-k/pkg/builder/builder.go:66\nmain.main\n\t/home/lmorandini/git/camel-k/cmd/builder/main.go:80\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"}
   
   I started a K8s cluster on OpenStack, with a Cinder volume attached as 
ReadWriteOnce (with a StorageClass set to default for Camel-K to pick it up).
   
   More in detail, the PV definitioln is:
   apiVersion: "v1"
   kind: "PersistentVolume"
   metadata:
     name: "cinder-test"
   spec:
     capacity:
       storage: "30Gi"
     storageClassName: standard
     accessModes:
       - "ReadWriteOnce"
     cinder:
       fsType: "ext4"
       volumeID: ${VOLUMEID}
   
   ...while the Storage Class definition is:
   apiVersion: storage.k8s.io/v1
   kind: StorageClass
   metadata:
     name: standard
     annotations:
       storageclass.kubernetes.io/is-default-class: "true"
   provisioner: kubernetes.io/cinder
   
   The Persistent Volume Claim that Camel-K (successfully) created during 
installation is:
   > kubectl describe pvc camel-k
   Name:          camel-k
   Namespace:     default
   StorageClass:  standard
   Status:        Bound
   Volume:        cinder-test
   Labels:        app=camel-k
   Annotations:   pv.kubernetes.io/bind-completed: yes
                  pv.kubernetes.io/bound-by-controller: yes
   Finalizers:    [kubernetes.io/pvc-protection]
   Capacity:      30Gi
   Access Modes:  RWO
   Mounted By:    <none>
   Events:        <none>
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to