Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK [Assign floating IP to workload instance] failing due to mismatch of API versions #2

Open
neoXsys opened this issue Oct 6, 2020 · 0 comments

Comments

@neoXsys
Copy link

neoXsys commented Oct 6, 2020

Infrared Plugin: cloud-config

Issue:

  • The following task failed while launching workload via infrared cloud-config plugin, it failed to assign the floating ip.

$ infrared cloud-config --deployment-files virt --tasks launch_workload
[...]
TASK [Assign floating IP to workload instance] ***************************************************************************
fatal: [undercloud-0 -> xxx.host.com]: FAILED! => {"changed": false, "extra_data": null, "msg": "ResourceNotFound: 404: Client Error for url: https://10.0.0.101:13774/v2.1/os-floating-ips, Floating IP pool not found."}

Analysis:

  • Ansible module is fetching a floating IP pool list over OSP Compute API version 2.1, which does support only on version 2.0

Workaround:

  • Modify infrared/plugins/cloud-config/tasks/launch_workload_step.yml:191 file
  • replace
    network_name: "{{ install.public.get('net', {}).name|default(pool_name.stdout_lines|last) }}"
  • with
    network_name: "nova"

Require:

  • More sophisticated filter to fetch network name, rather than floating IP pool list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant