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

Aws dns #9492

Merged
Merged

Conversation

michaelgugino
Copy link
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 8, 2018
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 8, 2018
@michaelgugino
Copy link
Contributor Author

@mazzystr ptal

@mwoodson
Copy link
Contributor

mwoodson commented Aug 9, 2018

I really like this work. This will be great for us to plug into !

Thanks @michaelgugino !

👍

loop: "{{ openshift_aws_dns_records | selectattr('private_zone','defined') | map(attribute='private_zone') | list | unique }}"
loop_control:
loop_var: l_openshift_aws_route53_scheme
with_items: "{{ l_zone_items }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ttl: 300
value: "{{ l_openshift_aws_dns_element.value['value'] }}"
zone: "{{ openshift_aws_dns_zone }}"
with_dict: "{{ l_openshift_aws_dns_records }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since task "creating record" is now pinned to Route53 zones we will have task & code duplication for Dyn. Dyn is an absolute req to remove the Ops blocker. Again not future proof.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not previously aware of the new loop syntax. I don't see the existing syntax as deprecated.

# roles/lib_utils/filters/oo_filters.py
- name: set elb fact dictionary
set_fact:
l_openshift_aws_elb_facts: "{{ elb_res | lib_utils_oo_list_of_dict_to_dict_from_key('name')}}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib_utils_oo_list_of_dict_to_dict_from_key python function wasn't necessary before. Why is this better?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously (your patch set), we had to query ec2 for every record to resolve elb_name to elb_dnsname. That is not great.

This builds a dictionary where we can lookup elb_facts based on elb_name in later tasks or plays.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the elb facts are not tied to any specific provider, so if we implement providers later, or someone utilizes their custom provider role, they can consume this data.

@@ -1,22 +0,0 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since task "creating record" is now pinned to Route53 zones we will have task & code duplication for Dyn. Dyn is an absolute req to remove the Ops blocker. Again not future proof.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no dyn requirement. I'm not sure you are following the flow of how the dns records are created.

@michaelgugino
Copy link
Contributor Author

/test gcp

1 similar comment
@michaelgugino
Copy link
Contributor Author

/test gcp

@sdodson
Copy link
Member

sdodson commented Aug 13, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michaelgugino, sdodson

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [michaelgugino,sdodson]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 17b3d7c into openshift:master Aug 13, 2018
@mazzystr
Copy link
Contributor

I disagree with the /lgtm

  1. This commit is too complicated.
  2. This commit works well for reference architecture but does not satisfy the reqs in bugzilla 1569631. The dyn provider is missing. The cluster-lifecycle team will need to take on this work due to the complexity of this code.
  3. We have customers that do not accept internal dns names being published to internet facing zones. This means split tier dns and multiple providers must be enabled. This code does not allow for that. They will have to continue using their own code to accomplish that task.

To me this was a lot of work for very little added value to the product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants