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

Configure OVS after firstboot is done #2006

Merged
merged 1 commit into from Aug 18, 2020

Conversation

vrutkovs
Copy link
Member

@vrutkovs vrutkovs commented Aug 17, 2020

Run OVS configuration only after the machine has pivoted. This is crucial for OKD installs which uses standard FCOS image with no OVS pre-installed.

@vrutkovs
Copy link
Member Author

/cc @trozet @LorbusChris

@ashcrow ashcrow requested review from runcom and removed request for ashcrow August 17, 2020 15:29
@LorbusChris
Copy link
Member

/approve
I think this should also just work on OCP

@@ -6,8 +6,8 @@ contents: |
# This service is used to move a physical NIC into OVS and reconfigure OVS to use the host IP
Requires=openvswitch.service
Wants=NetworkManager-wait-online.service
After=NetworkManager-wait-online.service openvswitch.service node-valid-hostname.service
Before=network-online.target kubelet.service crio.service
Copy link
Member

Choose a reason for hiding this comment

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

Was dropping Before=network-online.target intentional?

How about adding ConditionPathExists=!/etc/ignition-machine-config-encapsulated.json to this service instead?

And we should do that for kubelet.service and crio.service too probably - basically everything we don't want to run until we've pivoted, rather than implicitly relying on having the firstboot service initiate a reboot before they've started.

Copy link
Member Author

Choose a reason for hiding this comment

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

Was dropping Before=network-online.target intentional?

Yes, after network-online mcd-pull and mcd-firstboot started, so ovs-configuration would always happen after network-online anyway

How about adding ConditionPathExists=!/etc/ignition-machine-config-encapsulated.json to this service instead?

Good idea, added that

Copy link
Member

Choose a reason for hiding this comment

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

I think it wouldn't hurt to leave it, though? Just in case we shuffle things around again...

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed unnecessary After/Before/Wanted changed for now - this can be re-iterated 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 Aug 17, 2020
@cgwalters
Copy link
Member

I think this is a clear bugfix, and we should avoid starting services before pivoting in general.
cc @trozet - do you agree?

@vrutkovs
Copy link
Member Author

OKD is expected to fail for now - it needs an updated installer.
RHEL7 test fails due to missing jq - https://bugzilla.redhat.com/show_bug.cgi?id=1867992

@trozet
Copy link
Contributor

trozet commented Aug 17, 2020

OKD is expected to fail for now - it needs an updated installer.
RHEL7 test fails due to missing jq - https://bugzilla.redhat.com/show_bug.cgi?id=1867992

It's not just jq, even without jq I don't think NM OVS will work.

@trozet
Copy link
Contributor

trozet commented Aug 17, 2020

I think this is a clear bugfix, and we should avoid starting services before pivoting in general.
cc @trozet - do you agree?

looks OK to me and ovn-step-registry passed

Copy link
Contributor

@trozet trozet left a comment

Choose a reason for hiding this comment

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

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, LorbusChris, trozet, 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:

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

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link
Contributor

@LorbusChris: LorbusChris unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file.

In response to this:

/override ci/prow/okd-e2e-aws

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
Copy link
Contributor

@vrutkovs: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/okd-e2e-aws adc3603 link /test okd-e2e-aws
ci/prow/e2e-aws-workers-rhel7 adc3603 link /test e2e-aws-workers-rhel7

Full PR test history. Your PR dashboard.

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.

@ashcrow
Copy link
Member

ashcrow commented Aug 19, 2020

@vrutkovs is there a bug for this?

@vrutkovs
Copy link
Member Author

@ashcrow I didn't file one (as it primarily affects OKD)

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants