Skip to content

daemon: fix taint issues - #290

Closed
yuqi-zhang wants to merge 2 commits into
openshift:masterfrom
yuqi-zhang:fix-taint-issues
Closed

yuqi-zhang wants to merge 2 commits into
openshift:masterfrom
yuqi-zhang:fix-taint-issues

Conversation

@yuqi-zhang

Copy link
Copy Markdown
Contributor

Based on comment from previous PR:

  • fix typos and add docs
  • de-dupe taint appends
  • change file location for taint

There is still the problem of:

  • How to make the taint key more descriptive (it is currently rhcosSsh)
  • that this is breaking tests (will open in further discussions)

cc @abhinavdahiya @ashcrow

Fix typos, change file location, and de-dupe taints.

Signed-off-by: Yu Qi Zhang <[email protected]>
@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 11, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: yuqi-zhang
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: crawford

If they are not already assigned, you can assign the PR to them by writing /assign @crawford in a comment when ready.

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

@ashcrow

ashcrow commented Jan 11, 2019

Copy link
Copy Markdown
Member

Note: Tests should be transitioned off of ssh. Some are still using ssh, but we'll likely want to work with them to make sure it changes before we enable the tainting in the OS layer.

@abhinavdahiya

abhinavdahiya commented Jan 11, 2019 •

Copy link
Copy Markdown
Contributor
* How to make the taint key more descriptive (it is currently `rhcosSsh`)

WDYT about:

  • if this key is supposed to be used to coordinate between components lets use machineconfiguration.openshift.io/<'-' separated name>
  • if this key is supposed to be used by only one component then lets use <component>.machineconfiguration.openshift.io/<'-' separated name>

i think we already kinda follow this..

@ashcrow

ashcrow commented Jan 11, 2019

Copy link
Copy Markdown
Member

I'm OK with @abhinavdahiya's naming propsal. This will cause us to need to update documentation with @chrisnegus and update the taint script, but I think that's fine.

@kikisdeliveryservice kikisdeliveryservice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think in a future PR we might want to add more of the why and details on the what happens when nodes are tainted.

Etcd is co-located on master nodes as static pods. The draining behavior defined above prevents draining of static pods to prevent interference to etcd cluster by the daemon.

## Tainting
The MachineConfigDaemon is also responsible for tainting the node every time an SSH access is detected. It does this via. watching a file at `/etc/machine-config-daemon/ssh-tainted`, which other scripts can write to to notify the MCD to apply the taint.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo -> "to to"

Etcd is co-located on master nodes as static pods. The draining behavior defined above prevents draining of static pods to prevent interference to etcd cluster by the daemon.

## Tainting
The MachineConfigDaemon is also responsible for tainting the node every time an SSH access is detected. It does this via. watching a file at `/etc/machine-config-daemon/ssh-tainted`, which other scripts can write to to notify the MCD to apply the taint.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"via." -> "via"

## Tainting
The MachineConfigDaemon is also responsible for tainting the node every time an SSH access is detected. It does this via. watching a file at `/etc/machine-config-daemon/ssh-tainted`, which other scripts can write to to notify the MCD to apply the taint.

The taint can be removed via. `kubectl taint nodes <node> rhcosSsh-`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"via." -> "via"


MachineConfigDaemon is scheduled on the machines in a cluster as a DaemonSet. This daemon is responsible for performing machine updates in OpenShift 4. The update will include tasks related to the systemd units, files on disk, operating system upgrades etc. The MachineConfigDaemon updates a machine to configuration defined by MachineConfig as instructed by the MachineConfigController.

The MachineConfigDaemon is also responsible for tainting a machine with rhcosSsh=accessed:NoSchedule when it detects an SSH access to the machine.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could we add the quotes things like this: rhcosSsh=accessed:NoSchedule

@kikisdeliveryservice kikisdeliveryservice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some doc changes.

@yuqi-zhang

Copy link
Copy Markdown
Contributor Author

Will fixup PR pending maybe a rebase onto: #291

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@yuqi-zhang: PR needs rebase.

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.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 1, 2019
@ashcrow

ashcrow commented Feb 1, 2019

Copy link
Copy Markdown
Member

This probably can be closed.

@yuqi-zhang

Copy link
Copy Markdown
Contributor Author

/close

Superceded by #359

@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@yuqi-zhang: Closed this PR.

Details

In response to this:

/close

Superceded by #359

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
yuqi-zhang deleted the fix-taint-issues branch August 26, 2019 15:08
osherdp pushed a commit to osherdp/machine-config-operator that referenced this pull request Apr 13, 2021
…ort-metric

[BUILD-92] add import retry count into metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants