Skip to content

[release-4.6] templates: use Afterburn for setting GCP hostnames#2286

Closed
openshift-cherrypick-robot wants to merge 2 commits intoopenshift:release-4.6from
openshift-cherrypick-robot:cherry-pick-2217-to-release-4.6
Closed

[release-4.6] templates: use Afterburn for setting GCP hostnames#2286
openshift-cherrypick-robot wants to merge 2 commits intoopenshift:release-4.6from
openshift-cherrypick-robot:cherry-pick-2217-to-release-4.6

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #2217

/assign LorbusChris

Ben Howard and others added 2 commits December 4, 2020 01:00
The only platform where over-log hostnames have been encountered is on
GCP. The code has proven buggy, racy and caused a bunch of BZ.

To unwind this mess, on GCP, the new behavior:
- leaves disabling NetworkManager on GCP
- on each boot run Afterburn to fetch the hostname and writes it an
  ephemeral location
- uses the existing checks to truncate the length

Finally, this DROPS the NetworkManager dispatcher. FCOS/RHCOS is
pursuing a more permanent solution.

Signed-off-by: Ben Howard <ben.howard@redhat.com>
Co-authored-by: Vadim Rutkovsky <roignac@gmail.com>
@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

@LorbusChris @darkmuggle If you want this backported to 4.6, you'll need to make a bz for this and for the original 4.7 bz so it can get cherrypick approval.

@sinnykumari
Copy link
Copy Markdown
Contributor

Clean cherrypick and is needed by OKD to set hostname on GCP

/approve
/retest

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, sinnykumari

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 4, 2020
@LorbusChris
Copy link
Copy Markdown
Contributor

/test e2e-gcp-op

@openshift-merge-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/okd-e2e-gcp-op 7bbbaa7 link /test okd-e2e-gcp-op
ci/prow/e2e-gcp-op 7bbbaa7 link /test e2e-gcp-op

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@darkmuggle
Copy link
Copy Markdown

In regards to #2286 (comment)

Given the extreme caution that I have taken on the original PR and on the VSphere bug, I want to slow-roll the backport until at least 4.7 is done soaking. This change introduces a behavior change by dropping the NM dispatcher hook. The bug-laden wasteland of hostname issues tells me that caution is warranted.

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 4, 2020
@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

@darkmuggle SGTM 👍

@darkmuggle
Copy link
Copy Markdown

Systemd has reverted the fedora default hostname https://src.fedoraproject.org/rpms/systemd/pull-request/42 which begs the question of whether we should backport this; the motivation for this PR is OKD. Unless there is a clear need to change the behavior of GCP hostname handling on OCP, I am inclined to wait until there's a clear need.

@LorbusChris
Copy link
Copy Markdown
Contributor

agreed, with the systemd revert this isn't required anymore. I'll close this PR
/close

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@LorbusChris: Closed this PR.

Details

In response to this:

agreed, with the systemd revert this isn't required anymore. I'll close this PR
/close

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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants