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

[cloud] ec2_vpc_route_table: ignore routes without DestinationCidrBlock - fixes #37003 #37010

Merged
merged 3 commits into from Mar 22, 2018

Conversation

s-hertel
Copy link
Contributor

@s-hertel s-hertel commented Mar 5, 2018

SUMMARY

Fixes #37003. Regression introduced when porting the module from boto to boto3.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py

ANSIBLE VERSION
2.6.0

@ansibot
Copy link
Contributor

ansibot commented Mar 5, 2018

@ansibot ansibot added aws bug This issue/PR relates to a bug. cloud committer_review In order to be merged, this PR must follow the certified review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:certified This issue/PR relates to certified code. labels Mar 5, 2018
Add module warnings rather than silently skipping
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Mar 5, 2018
@willthames
Copy link
Contributor

Should there be a test for this change? It does look good to me but a test would give me greater confidence before merging.

@s-hertel
Copy link
Contributor Author

s-hertel commented Mar 6, 2018

Added a test to ensure a VPC endpoint associated with a route table doesn't result in traceback (which is what happens now but not prior to 2.5) with the ec2_vpc_route_table module. It's going to need CI permissions added.

@s-hertel s-hertel added the needs_ci_update This PR is blocked as it requires an update to CI infrastructure before tests can pass in CI. label Mar 6, 2018
@ansibot ansibot added test This PR relates to tests. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed committer_review In order to be merged, this PR must follow the certified review workflow. labels Mar 6, 2018
@ryansb
Copy link
Contributor

ryansb commented Mar 12, 2018

Looks good, pending CI updates.

@s-hertel
Copy link
Contributor Author

bot_status

@ansibot
Copy link
Contributor

ansibot commented Mar 20, 2018

Components

lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
support: certified
maintainers: willthames wimnat

test/integration/targets/ec2_vpc_route_table/tasks/main.yml
support: certified
maintainers: willthames wimnat

Metadata

waiting_on: ansible
changes_requested_by: null
needs_info: False
needs_revision: False
needs_rebase: False
merge_commits: []
mergeable_state: clean
shippable_status: success
maintainer_shipits (module maintainers): 0
community_shipits (namespace maintainers): 0
ansible_shipits (core team members): 1
shipit_actors (maintainers or core team members): s-hertel
shipit_actors_other: []

click here for bot help

@ansibot ansibot added committer_review In order to be merged, this PR must follow the certified review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Mar 20, 2018
@s-hertel s-hertel removed the needs_ci_update This PR is blocked as it requires an update to CI infrastructure before tests can pass in CI. label Mar 20, 2018
@ryansb ryansb merged commit da3f7a8 into ansible:devel Mar 22, 2018
@willthames
Copy link
Contributor

This is definitely a backport contender. I'll cherry-pick

willthames pushed a commit to willthames/ansible that referenced this pull request Apr 24, 2018
…ck - fixes ansible#37003 (ansible#37010)

* [cloud] ec2_vpc_route_table: ignore routes without DestinationCidrBlock

Add module warnings rather than silently skipping

* Permit warnings for routes tables containing vpc endpoints to be turned off

* Add tests to ensure a VPC endpoint associated with a route table does not result in a traceback

(cherry picked from commit da3f7a8)
s-hertel added a commit to s-hertel/ansible that referenced this pull request Apr 27, 2018
…ck - fixes ansible#37003 (ansible#37010)

* [cloud] ec2_vpc_route_table: ignore routes without DestinationCidrBlock

Add module warnings rather than silently skipping

* Permit warnings for routes tables containing vpc endpoints to be turned off

* Add tests to ensure a VPC endpoint associated with a route table does not result in a traceback
s-hertel added a commit to s-hertel/ansible that referenced this pull request Apr 27, 2018
…ck - fixes ansible#37003 (ansible#37010)

* [cloud] ec2_vpc_route_table: ignore routes without DestinationCidrBlock

Add module warnings rather than silently skipping

* Permit warnings for routes tables containing vpc endpoints to be turned off

* Add tests to ensure a VPC endpoint associated with a route table does not result in a traceback

(cherry picked from commit 246ff9c)
ryansb pushed a commit that referenced this pull request Apr 27, 2018
…ck - fixes #37003 (#37010) (#39210)

* [cloud] ec2_vpc_route_table: ignore routes without DestinationCidrBlock

Add module warnings rather than silently skipping

* Permit warnings for routes tables containing vpc endpoints to be turned off

* Add tests to ensure a VPC endpoint associated with a route table does not result in a traceback

(cherry picked from commit da3f7a8)
s-hertel added a commit to s-hertel/ansible that referenced this pull request Apr 30, 2018
s-hertel added a commit that referenced this pull request Apr 30, 2018
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aws bug This issue/PR relates to a bug. cloud committer_review In order to be merged, this PR must follow the certified review workflow. module This issue/PR relates to a module. support:certified This issue/PR relates to certified code. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ec2_vpc_route_table does not support vpc_endpoint in 2.5.0rc1
5 participants