Skip to content

Bug 2099664: daemon: initialize nodewriter before login monitor#3211

Merged
openshift-ci[bot] merged 1 commit intoopenshift:masterfrom
yuqi-zhang:fix-login-monitor
Jul 1, 2022
Merged

Bug 2099664: daemon: initialize nodewriter before login monitor#3211
openshift-ci[bot] merged 1 commit intoopenshift:masterfrom
yuqi-zhang:fix-login-monitor

Conversation

@yuqi-zhang
Copy link
Copy Markdown
Contributor

As part of #3143
we re-ordered the clusterconnect operations. This meant that the login
monitor started before the nodewriter object was initialized, which
caused a race where the monitor could try to write the ssh accessed
annotation before the nodewriter was initialized, causing a panic.

This is good to get fixed, but also note that:

  1. this is relatively rare since most users should not be ssh'ing
  2. the general ssh accessed annotation is broken such that its not
    always applied, but we definitely should not panic here.

As part of openshift#3143
we re-ordered the clusterconnect operations. This meant that the login
monitor started before the nodewriter object was initialized, which
caused a race where the monitor could try to write the ssh accessed
annotation before the nodewriter was initialized, causing a panic.

This is good to get fixed, but also note that:
1. this is relatively rare since most users should not be ssh'ing
2. the general ssh accessed annotation is broken such that its not
   always applied, but we definitely should not panic here.
@openshift-ci openshift-ci Bot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jun 27, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 27, 2022

@yuqi-zhang: This pull request references Bugzilla bug 2099664, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @rioliu-rh

Details

In response to this:

Bug 2099664: daemon: initialize nodewriter before login monitor

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 openshift-ci Bot requested review from cgwalters, jkyros and rioliu-rh June 27, 2022 20:17
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 27, 2022
@cgwalters
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 27, 2022
Copy link
Copy Markdown
Member

@jkyros jkyros left a comment

Choose a reason for hiding this comment

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

Looks good. It's still weird that the LoginMonitor runs during the unit tests, but at least it won't panic anymore. (Not even remotely saying this should be held to fix the test, just remarking for posterity).

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 27, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, jkyros, yuqi-zhang

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:
  • OWNERS [cgwalters,yuqi-zhang]

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

/retest-required

Remaining retests: 2 against base HEAD 970dffe and 8 for PR HEAD 8955898 in total

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 1 against base HEAD 970dffe and 7 for PR HEAD 8955898 in total

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 970dffe and 6 for PR HEAD 8955898 in total

@yuqi-zhang
Copy link
Copy Markdown
Contributor Author

Marking Degraded due to: error running rpm-ostree update --install kata-containers --install usbguard --install krb5-workstation --install libkadm5 --install kernel-devel --install kernel-headers: error: Packages not found: krb5-workstation, libkadm5

I think this is due to the branching not happening in RHCOS yet

@yuqi-zhang
Copy link
Copy Markdown
Contributor Author

/retest

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 2 against base HEAD 6b29f92 and 5 for PR HEAD 8955898 in total

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jul 1, 2022

@yuqi-zhang: all tests passed!

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.

@openshift-ci openshift-ci Bot merged commit a59c26f into openshift:master Jul 1, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jul 1, 2022

@yuqi-zhang: All pull requests linked via external trackers have merged:

Bugzilla bug 2099664 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2099664: daemon: initialize nodewriter before login monitor

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.

@yuqi-zhang
Copy link
Copy Markdown
Contributor Author

/cherry-pick release-4.11

@openshift-cherrypick-robot
Copy link
Copy Markdown

@yuqi-zhang: new pull request created: #3219

Details

In response to this:

/cherry-pick release-4.11

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/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants