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

VPC creation "Failed to wait for IPv6 CIDR association" #2363

Closed
1 task done
fabricat-mdb opened this issue Oct 25, 2024 · 0 comments · Fixed by #2374
Closed
1 task done

VPC creation "Failed to wait for IPv6 CIDR association" #2363

fabricat-mdb opened this issue Oct 25, 2024 · 0 comments · Fixed by #2374
Assignees
Labels

Comments

@fabricat-mdb
Copy link

fabricat-mdb commented Oct 25, 2024

Summary

When I try to create a new VPN with amazon.aws.ec2_vpc_net (collection v8.2.1) the VPC is created in AWS but the Ansible task fails (after some time) with this message:

Failed to wait for IPv6 CIDR association

I can get no other details from Ansible

Issue Type

Bug Report

Component Name

ec2_vpc_net

Ansible Version

Ansible is installed via Homebrew.

$ ansible --version
ansible [core 2.17.5]
  config file = /Users/fab/workdir/ansible/ansible.cfg
  configured module search path = ['/Users/fab/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/Cellar/ansible/10.5.0/libexec/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/fab/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/homebrew/bin/ansible
  python version = 3.12.7 (main, Oct  1 2024, 02:05:46) [Clang 15.0.0 (clang-1500.3.9.4)] (/opt/homebrew/Cellar/ansible/10.5.0/libexec/bin/python)
  jinja version = 3.1.4
  libyaml = True

Collection Versions

$ ansible-galaxy collection list
Collection                               Version
---------------------------------------- -------
amazon.aws                               8.2.1
ansible.posix                            1.6.2
community.aws                            8.0.0
community.general                        9.5.0
prometheus.prometheus                    0.19.0

AWS SDK versions

$ pip3.12 show boto boto3 botocore
WARNING: Package(s) not found: boto
Name: boto3
Version: 1.34.109
Summary: The AWS SDK for Python
Home-page: https://github.com/boto/boto3
Author: Amazon Web Services
Author-email:
License: Apache License 2.0
Location: /Users/fab/Library/Python/3.12/lib/python/site-packages
Requires: botocore, jmespath, s3transfer
Required-by:
---
Name: botocore
Version: 1.34.109
Summary: Low-level, data-driven core of boto 3.
Home-page: https://github.com/boto/botocore
Author: Amazon Web Services
Author-email:
License: Apache License 2.0
Location: /Users/fab/Library/Python/3.12/lib/python/site-packages
Requires: jmespath, python-dateutil, urllib3
Required-by: boto3, s3transfer

Configuration

$ ansible-config dump --only-changed
CACHE_PLUGIN(/Users/fab/workdir/ansible/ansible.cfg) = ansible.builtin.jsonfile
CACHE_PLUGIN_CONNECTION(/Users/fab/workdir/ansible/ansible.cfg) = /tmp/ansible_facts
CALLBACKS_ENABLED(/Users/fab/workdir/ansible/ansible.cfg) = ['community.general.log_plays']
CONFIG_FILE() = /Users/fab/workdir/ansible/ansible.cfg
DEFAULT_GATHERING(/Users/fab/workdir/ansible/ansible.cfg) = smart
DEFAULT_HOST_LIST(/Users/fab/workdir/ansible/ansible.cfg) = ['/Users/fab/workdir/ansible/inventory']
DEFAULT_LOAD_CALLBACK_PLUGINS(/Users/fab/workdir/ansible/ansible.cfg) = True
INTERPRETER_PYTHON(/Users/fab/workdir/ansible/ansible.cfg) = auto_silent
INVENTORY_CACHE_ENABLED(/Users/fab/workdir/ansible/ansible.cfg) = True
INVENTORY_CACHE_PLUGIN(/Users/fab/workdir/ansible/ansible.cfg) = ansible.builtin.jsonfile
INVENTORY_CACHE_PLUGIN_CONNECTION(/Users/fab/workdir/ansible/ansible.cfg) = /tmp/ansible_inventory
TRANSFORM_INVALID_GROUP_CHARS(/Users/fab/workdir/ansible/ansible.cfg) = always

OS / Environment

MacBook Pro
Chip: Apple M1 Pro
macOS: Sonoma 14.6.1
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Homebrew 4.4.2

Steps to Reproduce

Tested with this simple playbook.

- name: Deploy AWS infrastructure
  hosts: localhost
  gather_facts: false
  become: false
  tasks:
    - name: VPC
      amazon.aws.ec2_vpc_net:
        name: "jira-dev2-vpc"
        cidr_block:
          - "10.234.4.0/22"
        dns_hostnames: false
        dns_support: true
        ipv6_cidr: false
        tenancy: "default"
        tags:
          env: "dev2"
          app: "jira"
        state: present
      register: vpc

Expected Results

Since VPC is correctly created in AWS, I expected the task to succeed in Ansible as well.

Actual Results

VPC is immediately created in AWS, but the Ansible playbook seems stuck for 5 minutes, then fails like this:

TASK [VPC] **************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to wait for IPv6 CIDR association"}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@GomathiselviS GomathiselviS added needs_verified Some one might want to take a look at this and reproduce it to confirm and removed needs_triage labels Oct 28, 2024
@GomathiselviS GomathiselviS self-assigned this Oct 29, 2024
@GomathiselviS GomathiselviS added jira and removed needs_verified Some one might want to take a look at this and reproduce it to confirm labels Oct 29, 2024
softwarefactory-project-zuul bot pushed a commit that referenced this issue Nov 6, 2024
…et in vpc (#2374)

SUMMARY


Fixes: #2363
This PR handles the case in which the vpc does not have ipv6 set and the task to modify it has ipv6_cidr: false
ISSUE TYPE


Bugfix Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: Alina Buzachis
Reviewed-by: Helen Bailey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants