Skip to content

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

Description

@neoXsys

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions