<p>I have created following yaml files</p>
<ul>
<li>fc-pod.yaml</li>
<li>fc-pvc.yaml</li>
</ul>
<p>when i create fc pod it always goes to ContainerCreating state and give me the following error when i describe the pod.</p>
<blockquote>
<p>Warning  FailedAttachVolume  83s<br />
attachdetach-controller  AttachVolume.Attach failed for volume
&quot;csiunity-d93a52838d&quot; : rpc error: code = InvalidArgument desc =
runid=95 Cannot publish volume as protocol in the Storage class is
'FC' but the node has no valid FC initiators   Warning  FailedMount<br />
29s                    kubelet                  Unable to attach or
mount volumes: unmounted volumes=[dy-fc-unity], unattached
volumes=[dy-fc-unity kube-api-access-psrcp]: timed out waiting for the
condition   Warning  FailedAttachVolume  19s<br />
attachdetach-controller  AttachVolume.Attach failed for volume
&quot;csiunity-d93a52838d&quot; : rpc error: code = InvalidArgument desc =
runid=96 Cannot publish volume as protocol in the Storage class is
'FC' but the node has no valid FC initiators</p>
</blockquote>
<p>I have created pvc, storage classes and secrets etc.
I have already created nfs and iscsi pods with the same method and they are created.</p>
<p>please check my fc-pod.yaml file below</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: dynamic-fc-pod
  namespace: unity
spec:
  containers:
  - name: container
    image: nginx
    ports:
      - containerPort: 80
        name: &quot;http-server&quot;
    volumeMounts:
      - mountPath: &quot;/usr/share/nginx/html&quot;
        name: dy-fc-unity
  volumes:
    - name: dy-fc-unity
      persistentVolumeClaim:
        claimName: dynamic-fc-pvc
</code></pre>

majid asad
<p>I found that I have fc connectivity issue on the backend. thats why FC pods were not creating.</p>
<p>If you faced similar problem, solve it with</p>
<ol>
<li>Change nginx image tag.</li>
<li>Check fc connectivity</li>
<li>Check protocol in storage class</li>
<li>Delete the pvc and pod</li>
<li>When creating again change container name</li>
</ol>
