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

[PR #631/3e24a37b backport][stable-3] vpc_net check mode, IPV6 CIDR assoc/disassoc #722

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Mar 21, 2022

This is a backport of PR #631 as merged into main (3e24a37).

SUMMARY

Implement check mode correctly for the ec2_vpc_net module. The module was incorrectly making actual changes when executed in check mode.

  1. In check mode, do not change the configuration. Previously the module was making VPC changes in the following scenarios:
    1. Association with IPv4 CIDR or IPv6 CIDR.
    2. Disassociation from IPv4 CIDR or IPv6 CIDR.
  2. Handle case when Amazon-provided ipv6 block is enabled, then disabled, then enabled again.
  3. Do not disable IPv6 CIDR association (using Amazon pool) if ipv6_cidr property is not present in the task. If the VPC already exists and ipv6_cidr property, retain the current config.
  4. Add integration tests:
    1. Enable, disable, then re-enable Amazon-provided IPv6 CIDR.
    2. When VPC already exists and ipv6_cidr property is not specified, validate this does not disable IPv6 CIDR association.
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ec2_vpc_net

ADDITIONAL INFORMATION

vpc_net check mode, IPV6 CIDR assoc/disassoc

SUMMARY

Implement check mode correctly for the ec2_vpc_net module. The module was incorrectly making actual changes when executed in check mode.

In check mode, do not change the configuration. Previously the module was making VPC changes in the following scenarios:

Association with IPv4 CIDR or IPv6 CIDR.
Disassociation from IPv4 CIDR or IPv6 CIDR.

Handle case when Amazon-provided ipv6 block is enabled, then disabled, then enabled again.
Do not disable IPv6 CIDR association (using Amazon pool) if ipv6_cidr property is not present in the task. If the VPC already exists and ipv6_cidr property, retain the current config.
Add integration tests:

Enable, disable, then re-enable Amazon-provided IPv6 CIDR.
When VPC already exists and ipv6_cidr property is not specified, validate this does not disable IPv6 CIDR association.

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

ec2_vpc_net
ADDITIONAL INFORMATION

Reviewed-by: Sebastien Rosset <None>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Joseph Torcasso <None>
Reviewed-by: Markus Bergholz <[email protected]>
(cherry picked from commit 3e24a37)
@ansibullbot
Copy link

@ansibullbot ansibullbot added bug This issue/PR relates to a bug community_review integration tests/integration module module needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Mar 21, 2022
@alinabuzachis alinabuzachis added the mergeit Merge the PR (SoftwareFactory) label Mar 21, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 623c5e1 into stable-3 Mar 21, 2022
@softwarefactory-project-zuul softwarefactory-project-zuul bot deleted the patchback/backports/stable-3/3e24a37b3f0c6678c3936a8a6cf228e02c64068c/pr-631 branch March 21, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug community_review integration tests/integration mergeit Merge the PR (SoftwareFactory) module module needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants