> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/failed-to-create-iscsi-target-for-volume.md).

# Failed To Create ISCSI Target For Cinder Volume

## Problem

* The Hypervisor requesting to attach volume fails to create ISCSI target to the Cinder host
* The below messages could be seen in the cinder logs for the mentioned volume on the host where the volume resides

{% tabs %}
{% tab title="Bash" %}

```bash
less /var/log/pf9/cindervolume-base.log | grep -i 55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd
2022-05-04 09:24:25.996 INFO cinder.volume.flows.manager.create_volume [req-1d2f6876-f8a2-45e8-9b0b-d47aab8764b0 None devops-sla] Volume 55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd: being created as raw with specification: {'status': 'creating', 'volume_name': 'volume-55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd', 'volume_size': 1}
2022-05-04 09:24:28.520 INFO cinder.volume.flows.manager.create_volume [req-1d2f6876-f8a2-45e8-9b0b-d47aab8764b0 None devops-sla] Volume volume-55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd (55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd): created successfully
2022-05-04 09:25:45.173 WARNING cinder.volume.targets.tgt [req-1f13bf94-8a3b-417f-ab36-b7b12bdb00e2 None devops-sla] Failed to create iscsi target for Volume ID: volume-55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd. It could be caused by problem with concurrency. Also please ensure your tgtd config file contains 'include /opt/pf9/pf9-cindervolume-base/state/volumes/*'
2022-05-04 09:25:47.251 WARNING cinder.volume.targets.tgt [req-1f13bf94-8a3b-417f-ab36-b7b12bdb00e2 None devops-sla] Failed to create iscsi target for Volume ID: volume-55dbd6ac-1842-4c0a-bcde-d07e2c5e39fd. It could be caused by problem with concurrency. Also please ensure your tgtd config file contains 'include /opt/pf9/pf9-cindervolume-base/state/volumes/*'
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack

## Cause

\<The reason for the problem, if known.>

## Resolution

{% tabs %}
{% tab title="Bash" %}

```bash
cat /opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder_overrides.conf files.

[lvm-backend]
target_protocol = iscsi
lvm_type = default
volume_backend_name = <Node>
```

{% endtab %}
{% endtabs %}

Additional Information

< Links to supporting documentation, caveats, or other helpful background information that’s not strictly a problem, environment, cause, or resolution. >


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/solution/failed-to-create-iscsi-target-for-volume.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
