Skip to content

Use rpm-ostree to set kargs on RHCOS - #46

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
pliurh:set_kargs_coreos
Aug 5, 2019
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
pliurh:set_kargs_coreos

Conversation

@pliurh

@pliurh pliurh commented Jul 31, 2019

Copy link
Copy Markdown

No description provided.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 31, 2019
@zenghui-shi

Copy link
Copy Markdown
Contributor

Shall SR-IOV Operator configure kargs via MCO instead of doing it directly?

@pliurh

pliurh commented Aug 1, 2019

Copy link
Copy Markdown
Author

There are some cons of using MCO approach:

  1. This feature in MCO only works on RHCOS node.
  2. MCO can only apply same configuration to all the worker nodes indiscriminately.
  3. MCO will trigger node reboot after setting kargs, which may cause interference with our configure daemon.

@zenghui-shi

zenghui-shi commented Aug 1, 2019 •

Copy link
Copy Markdown
Contributor

There are some cons of using MCO approach:

  1. This feature in MCO only works on RHCOS node.
  2. MCO can only apply same configuration to all the worker nodes indiscriminately.

The worker node can be selected by applying a label in MachineConfig, not necessary apply to all the worker nodes.

  1. MCO will trigger node reboot after setting kargs, which may cause interference with our configure daemon.

I thought sriov operator also triggers reboot when kargs is configured, how that differs with MCO reboot.

@pliurh

pliurh commented Aug 1, 2019 •

Copy link
Copy Markdown
Author

There are some cons of using MCO approach:

  1. This feature in MCO only works on RHCOS node.
  2. MCO can only apply same configuration to all the worker nodes indiscriminately.

The worker node can be selected by applying a label in MachineConfig, not necessary apply to all the worker nodes.

That's true. However arbitrary label is not allowed. Basically, you can either use machineconfiguration.openshift.io/role: worker or machineconfiguration.openshift.io/role: master, which means it doesn't distinguish worker nodes.

  1. MCO will trigger node reboot after setting kargs, which may cause interference with our configure daemon.

I thought sriov operator also triggers reboot when kargs is configured, how that differs with MCO reboot.

In config daemon, it will first send the desired state to each plugin, so all plugins can do some necessary job before reboot. If using MCO, updating kargs will automatically trigger reboot immediately, other plugin may not got the change to config the device before reboot.

@zenghui-shi

Copy link
Copy Markdown
Contributor

There are some cons of using MCO approach:

  1. This feature in MCO only works on RHCOS node.
  2. MCO can only apply same configuration to all the worker nodes indiscriminately.

The worker node can be selected by applying a label in MachineConfig, not necessary apply to all the worker nodes.

That's true. However arbitrary label is not allowed. Basically, you can either use machineconfiguration.openshift.io/role: worker or machineconfiguration.openshift.io/role: master, which means it doesn't distinguish worker nodes.

Got it, I didn't realized this was the case. Thanks for explanation.

  1. MCO will trigger node reboot after setting kargs, which may cause interference with our configure daemon.

I thought sriov operator also triggers reboot when kargs is configured, how that differs with MCO reboot.

In config daemon, it will first send the desired state to each plugin, so all plugins can do some necessary job before reboot. If using MCO, updating kargs will automatically trigger reboot immediately, other plugin may not got the change to config the device before reboot.

@zenghui-shi

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 5, 2019
@openshift-merge-robot
openshift-merge-robot merged commit 1f1799b into openshift:master Aug 5, 2019
@cgwalters

Copy link
Copy Markdown
Member

Some sort of CC on pull requests like this to the machine-config-operator team would be a good idea.

@pliurh
pliurh deleted the set_kargs_coreos branch August 7, 2019 13:12
@pliurh

pliurh commented Aug 7, 2019 •

Copy link
Copy Markdown
Author

@cgwalters Will do.

BTW, may I ask if there is any plan in MCD to support configuring worker node in multiple groups, in other word, allow work nodes be configured differently?

pliurh pushed a commit to pliurh/sriov-network-operator-1 that referenced this pull request Jan 27, 2021
Generate device plugin LinkType selector from NodePolicy LinkType
zenghui-shi pushed a commit to zenghui-shi/sriov-network-operator that referenced this pull request Jan 28, 2021
Generate device plugin LinkType selector from NodePolicy LinkType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. 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