# os\_server module rerun always fails

**URL:** <https://forum.ansible.com/t/os-server-module-rerun-always-fails/26749>\
**Category:** Ansible Project\
**Created:** [February 15, 2018, 5:58pm UTC](https://forum.ansible.com/t/os-server-module-rerun-always-fails/26749 "2018-02-15T17:58:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sven\_Leupold](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sven\_Leupold](https://forum.ansible.com/u/Sven_Leupold)\
**Post date:** [February 15, 2018, 5:58pm UTC](https://forum.ansible.com/t/os-server-module-rerun-always-fails/26749/1 "2018-02-15T17:58:15Z")

</div>

Hi

I wonder if you experience the same problem with os\_server if you run an openstack playbook twice or more.

If I run os\_server after the initial vm setup was successful, it always fails. Destroying vm’s with state: absent is working. Uh!

Any idea or is this just “normal” behaviour in os\_server?

Thanks in advance

Sven

---

<div class="post-metadata">

**Author:** ![Sven\_Leupold](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sven\_Leupold](https://forum.ansible.com/u/Sven_Leupold)\
**Post date:** [February 15, 2018, 6:05pm UTC](https://forum.ansible.com/t/os-server-module-rerun-always-fails/26749/2 "2018-02-15T18:05:31Z")

</div>

`

---

<div class="post-metadata">

**Author:** ![Sven\_Leupold](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sven\_Leupold](https://forum.ansible.com/u/Sven_Leupold)\
**Post date:** [February 15, 2018, 6:10pm UTC](https://forum.ansible.com/t/os-server-module-rerun-always-fails/26749/3 "2018-02-15T18:10:49Z")

</div>

`

`

The full traceback is:  
Traceback (most recent call last):  
File “/tmp/ansible\_4Xgtwd/ansible\_module\_os\_server.py”, line 773, in   
main()  
File “/tmp/ansible\_4Xgtwd/ansible\_module\_os\_server.py”, line 761, in main  
\_get\_server\_state(module, cloud)  
File “/tmp/ansible\_4Xgtwd/ansible\_module\_os\_server.py”, line 677, in \_get\_server\_state  
(ip\_changed, server) = \_check\_ips(module, cloud, server)  
File “/tmp/ansible\_4Xgtwd/ansible\_module\_os\_server.py”, line 621, in \_check\_ips  
if server[‘interface\_ip’]:  
KeyError: ‘interface\_ip’

`

`
