# os\_server\_volume module - Can not find server to attach volume to

**URL:** <https://forum.ansible.com/t/os-server-volume-module-can-not-find-server-to-attach-volume-to/31365>\
**Category:** Ansible Project\
**Created:** [September 26, 2019, 8:56am UTC](https://forum.ansible.com/t/os-server-volume-module-can-not-find-server-to-attach-volume-to/31365 "2019-09-26T08:56:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maiken\_Pedersen](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Maiken\_Pedersen](https://forum.ansible.com/u/Maiken_Pedersen)\
**Post date:** [September 26, 2019, 8:56am UTC](https://forum.ansible.com/t/os-server-volume-module-can-not-find-server-to-attach-volume-to/31365/1 "2019-09-26T08:56:19Z")

</div>

Hi,

I am facing a puzzling error.

I have earlier used os\_volume and os\_server\_volume modules to create and attach openstack volumes to openstack instances.

I have successfully created the volume with the os\_volume module and can see it with the openstack client using

`  
(openstack\_venv) [centos@grid-adm ~]$ openstack volume list

---

<div class="post-metadata">

**Author:** ![Maiken\_Pedersen](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Maiken\_Pedersen](https://forum.ansible.com/u/Maiken_Pedersen)\
**Post date:** [September 26, 2019, 9:19am UTC](https://forum.ansible.com/t/os-server-volume-module-can-not-find-server-to-attach-volume-to/31365/2 "2019-09-26T09:19:25Z")

</div>

Forgot to add that I believe it is the server it cannot find since if I check the code line 107 corresponds to:

[https://github.com/ansible/ansible/blob/stable-2.8/lib/ansible/modules/cloud/openstack/os\_server\_volume.py#L107](https://github.com/ansible/ansible/blob/stable-2.8/lib/ansible/modules/cloud/openstack/os_server_volume.py#L107)

`dev = cloud.get_volume_attach_device(volume, server.id)`
