Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

os_server: Error reporting with floating IP yet resources are still created #1981

Closed
lowwalker opened this issue Aug 28, 2015 · 12 comments
Closed

Comments

@lowwalker
Copy link
Contributor

Issue Type:
  • Bug Report
Ansible Version:
➜  luket-testing  ansible --version
ansible 2.0.0 (devel 5ba3452b7e) last updated 2015/08/27 09:58:27 (GMT -400)
  lib/ansible/modules/core: (detached HEAD 85ddb1b902) last updated 2015/08/25 08:53:22 (GMT -400)
  lib/ansible/modules/extras: (detached HEAD 7a0bfd91bb) last updated 2015/08/25 08:53:23 (GMT -400)
  v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated 2015/08/10 09:31:46 (GMT -400)
  v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated 2015/08/10 09:31:53 (GMT -400)
  config file =
  configured module search path = None
Ansible Configuration:

Whatever is provided by "source ./hacking/env-setup"

Environment:

OSX 10.10.4 for the control machine, if needed I'll track down the specific Openstack version,

Summary:

If there is no configured floating-ip networks the auto_floating_ip option set to true causes the below error, however the instance is still created.

➜  luket-testing  ap -i hosts ostack_inital.yml

PLAY ***************************************************************************

TASK [setup] *******************************************************************
ok: [127.0.0.1]

TASK [Launch instance] *********************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "extra_data": null, "failed": true, "msg": "unable to bind a floating ip to server 52f5b0fb-b18f-44ad-8d2b-f50b7d555829: External network 8f3508a9-d4f5-4f9c-a5da-fd7f04059303 is not reachable from subnet 6734ec38-0611-49ed-8007-9fdb1631befc.  Therefore, cannot associate Port f5ae8af1-6871-4ea2-b9fa-8ba10c67885d with a Floating IP."}

PLAY RECAP *********************************************************************
127.0.0.1                  : ok=1    changed=0    unreachable=0    failed=1
Steps To Reproduce:

Simple playbook to launch instance.

    - name: Launch instance
      os_server:
        state: present
        auth:
          auth_url: https://somereallycoolurl.com:5678/v2.0
          username: ltislow
          password: FixItNowBENNO!
          project_name: initial-testing
        name: luke-console-ansible
        region_name: region-3
        image: 3b0673fb-8ca5-4a52-b5f5-c728e709cd9d
        key_name: Luke Tislow Laptop
        timeout: 300
        flavor: Medium
        security_groups: default
        auto_floating_ip: yes
Expected Results:

When failure from network configuration options, do not create the instance. Or improve error message that instance was created yet not able to complete the network configuration.

Actual Results:

Instance is still created, if the playbook is ran again the same error message is provided and no further instances are created.

@abadger abadger changed the title Error reporting with floating IP yet resources are still created os_server: Error reporting with floating IP yet resources are still created Sep 1, 2015
@abadger
Copy link
Contributor

abadger commented Sep 1, 2015

/cc @emonty

@emonty
Copy link
Contributor

emonty commented Sep 2, 2015

Oh yuck. Thanks - will work up a fix.

@gregdek
Copy link
Contributor

gregdek commented Sep 15, 2015

Also cc: @Shrews @dguerri @juliakreger @j2sol @rcarrillocruz

Just in case :)

@ansibot
Copy link

ansibot commented Aug 1, 2016

@emonty, @Shrews, @juliakreger, @j2sol, @rcarrillocruz, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Sep 12, 2016

@emonty, @Shrews, @juliakreger, @j2sol, @rcarrillocruz, ping. This issue is still waiting on your response.
click here for bot help

@bcoca bcoca removed the P3 label Sep 13, 2016
@ansibot
Copy link

ansibot commented Oct 6, 2016

@emonty, @Shrews, @juliakreger, @j2sol, @rcarrillocruz, ping. This issue is still waiting on your response.
click here for bot help

2 similar comments
@ansibot
Copy link

ansibot commented Oct 22, 2016

@emonty, @Shrews, @juliakreger, @j2sol, @rcarrillocruz, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Nov 6, 2016

@emonty, @Shrews, @juliakreger, @j2sol, @rcarrillocruz, ping. This issue is still waiting on your response.
click here for bot help

@ansibot
Copy link

ansibot commented Nov 22, 2016

@emonty, @Shrews, @juliakreger, @j2sol, @rcarrillocruz, @Thingee, ping. This issue is still waiting on your response.
click here for bot help

@herlo
Copy link

herlo commented Dec 1, 2016

https://review.openstack.org/#/c/393884 This review is merged and supposedly addresses the floating_ip issue. @emonty

@ansibot
Copy link

ansibot commented Dec 7, 2016

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.

@Thingee
Copy link

Thingee commented Dec 21, 2016

This issue was moved to ansible/ansible#19613

@ansibot ansibot closed this as completed Jan 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants