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

[fcos] GCP: add a script and a service which ensure GCP routes are set correctly #1442

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

vrutkovs
Copy link
Member

@vrutkovs vrutkovs commented Feb 5, 2020

This would ensure masters / workers would report as healthy to GCP LBs

xref okd-project/okd#38

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 5, 2020
@vrutkovs
Copy link
Member Author

vrutkovs commented Feb 5, 2020

/cc @LorbusChris

This would ensure masters / workers would report as healthy to GCP LBs
@vrutkovs vrutkovs changed the title [fcos] GCP: add a script and a service which ensure GCP routes are correctly [fcos] GCP: add a script and a service which ensure GCP routes are set correctly Feb 5, 2020
@cgwalters
Copy link
Member

/approve
Thanks for doing this!

To clarify though I think a next step is shipping this as part of the MCD binary (or at least /usr/libexec/gcp-routes.sh) i.e. not part of Ignition (since it's not templated, it's static per node) but lifting it out of of the "internal RHCOS dark matter" here and having it naturally tested with the existing controller is a great first step.

Description=Update GCP routes for forwarded IPs.
ConditionKernelCommandLine=|ignition.platform.id=gce
ConditionKernelCommandLine=|ignition.platform.id=gcp
After=network.target
Copy link
Member Author

Choose a reason for hiding this comment

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

Is it recommended to use network.target or network-online.target in Fedora?

Copy link
Member

Choose a reason for hiding this comment

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

https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ covers this...I think network-online.target is more right but the script retries anyways.

Copy link
Member Author

Choose a reason for hiding this comment

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

since we already have network.target in vsphere UPI scripts I'll keep network.target - and replace these later

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 5, 2020
@vrutkovs
Copy link
Member Author

vrutkovs commented Feb 6, 2020

/retest

1 similar comment
@vrutkovs
Copy link
Member Author

vrutkovs commented Feb 6, 2020

/retest

@vrutkovs
Copy link
Member Author

vrutkovs commented Feb 6, 2020

/test e2e-aws

@LorbusChris
Copy link
Member

/lgtm
/approve
/cherry-pick master

@openshift-cherrypick-robot

@LorbusChris: once the present PR merges, I will cherry-pick it on top of master in a new PR and assign it to you.

In response to this:

/lgtm
/approve
/cherry-pick master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 6, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, LorbusChris, vrutkovs

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 [LorbusChris,cgwalters,vrutkovs]

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

@vrutkovs
Copy link
Member Author

vrutkovs commented Feb 6, 2020

Not sure if master needs it - currently this script is provided by RHCOS itself.

Lets see if this works on OKD and file an enhancement to have this moved to installer / MCO?

@cgwalters
Copy link
Member

While I am an official member of the enhancement police 👮‍♂️ I think this change doesn't necessarily require one...it's not something an end user would care about, just shuffing around the implementation details of MCO/RHCOS. (But also, no opposition to making one!)

@LorbusChris
Copy link
Member

enhancement police 😁

I'm plus one on shuffling this around, ie. landing it in master, and then subsequently removing it from the RHCOS builds in order to align FCOS and RHCOS builds, and reducing the delta we have here between fcos and master branches.

I don't think we need a formal enhancement proposal for this, as it doesn't enhance anything, it just moves an existing implementation around.

An optimization would be to move this into the MCD directly.

@smarterclayton smarterclayton added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 6, 2020
@openshift-merge-robot openshift-merge-robot merged commit 1b5c2d5 into openshift:fcos Feb 6, 2020
@openshift-cherrypick-robot

@LorbusChris: new pull request created: #1448

In response to this:

/lgtm
/approve
/cherry-pick master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. 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.

7 participants