# Rancher 2.4.5 - Longhorn volume attach errors

**URL:** <https://forums.suse.com/t/rancher-2-4-5-longhorn-volume-attach-errors/17907>\
**Category:** SUSE Rancher Prime\
**Created:** [July 7, 2020, 5:00pm UTC](https://forums.suse.com/t/rancher-2-4-5-longhorn-volume-attach-errors/17907 "2020-07-07T17:00:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmcderm](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bmcderm/32/6733_2.png) [@bmcderm](https://forums.suse.com/u/bmcderm)\
**Post date:** [July 7, 2020, 5:00pm UTC](https://forums.suse.com/t/rancher-2-4-5-longhorn-volume-attach-errors/17907/1 "2020-07-07T17:00:24Z")

</div>

I am trying to follow a very basic pvc/pod example with persistent storage. My cluster administrator has configured a 4 node cluster and has setup longhorn for persistent storage. I can successfully create the pvc (from a yaml file) but when I try to create the pod, I am getting an error back:

AttachVolume.Attach failed for volume “pvc-9a369527-6842-473a-8c9b-234c1a92b7f7” : node “gms-dev-rancher3” has no NodeID annotation

Here are my yaml files:

## pvc\_test.yaml

apiVersion: v1  
kind: PersistentVolumeClaim  
metadata:  
name: local-path-pvc  
namespace: dev  
spec:  
accessModes:  
- ReadWriteOnce  
storageClassName: longhorn  
resources:  
requests:  
storage: 2Gi

## pod\_test.yaml

apiVersion: v1  
kind: Pod  
metadata:  
name: volume-test  
namespace: dev  
spec:  
containers:

- name: volume-test  
image: [my-docker-registry.myorg.gov/kubetest/postgres:beckytest](http://my-docker-registry.myorg.gov/kubetest/postgres:beckytest)  
imagePullPolicy: IfNotPresent  
volumeMounts:
  - name: volv  
mountPath: /data  
ports:
  - containerPort: 80  
volumes:

- name: volv  
persistentVolumeClaim:  
claimName: local-path-pvc

$ kubectl apply -f pvc\_test.yaml

$ kubectl apply -f pod\_test.yaml

$ kubectl describe pod volume-test

Gives the attach error above

I have googled this error but haven’t found any clear cut solutions.

Has anyone else seen this problem and overcome it?
