Openstack - auto_floating_ip

95 views
Skip to first unread message

Scott MacCormack

unread,
Dec 12, 2014, 6:41:37 AM12/12/14
to ansible...@googlegroups.com
I'm have a playbook which creates an instance in openstack.  I have used the auto_floating_ip = yes to get a public IP address created and assigned but this fails with "msg: Unable to create floating ip: Floating ip pool not found".  

I then thought that I needed to assign the floating_ip_pools setting but this then errors "msg: parameters are mutually exclusive: ['auto_floating_ip', 'floating_ip_pools']"  which I'm assuming means you cannot use these two variables together.  I cannot see how to state what pool to use even though in my setup I have only one pool:

nova floating-ip-pool-list
+---------+
| name    |
+---------+
| ext-net |
+---------+

I suppose I could manually create the IP in a different role rather than in the instance create, but this I think should work without the need to do that.

I'm using ansible 1.8.2 and ubuntu openstack nova version 2.19.0.

Any help on getting the auto ip working would be great.


Kari Skyttä

unread,
May 7, 2015, 8:24:21 AM5/7/15
to ansible...@googlegroups.com
I have exactly the same problem..Did you already managed to solve this? 

Jonathan Davila

unread,
May 8, 2015, 4:52:53 PM5/8/15
to ansible...@googlegroups.com
Hey guys, for now I'd suggest using the modules currently in the pull request queue, the ones made by emonty. https://github.com/ansible/ansible-modules-core/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+openstack

Just download any or all of them into your $PLAYBOOK_ROOT/library directory and you should be able to use them.

Would also be awesome if you let us know via github if they work well for you.
Reply all
Reply to author
Forward
0 new messages