-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CNV#67095-2: Docs on setup vGPU reach a dead end on step 3 of mdev creation #100376
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
Conversation
@Vaishali-gif-rh: No Jira issue with key 67095-2 exists in the tracker at https://issues.redhat.com/. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
@Vaishali-gif-rh: No Jira issue with key 67095-2 exists in the tracker at https://issues.redhat.com/. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
🤖 Tue Oct 14 14:05:24 - Prow CI generated the docs preview: |
5c28270
to
2cc10e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through the content and did an initial review. Please ping the peer review channel again after you have made the updates. Thanks!
+ | ||
.Example configuration file with mediated devices configured | ||
.Example configuration | ||
[%collapsible] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line and the next ====
because the code snippet is now smaller and the collapsible content does not render properly on docs.redhat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The [%collapsible]
line still needs to be removed
2cc10e2
to
60702dd
Compare
@Vaishali-gif-rh: all tests passed! 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-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Vaishali, there are some things to resolve before we can move this forward. Please feel free to reach out if you have questions. Thanks!
* You have enabled the Input-Output Memory Management Unit (IOMMU) driver. | ||
* If your hardware vendor provides drivers, you have installed them on the nodes where you want to create mediated devices. | ||
** If you use NVIDIA cards, you have link:https://docs.nvidia.com/datacenter/cloud-native/openshift/latest/openshift-virtualization.html[installed the NVIDIA GRID driver]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you changed the simple past tense verbs (like "You enabled") to use "have" (like "You have enabled"), which is not consistent with our style guidelines. The ISG has a short section on tense, indicating that we use simple present tense for most things, and simple past or future tense when present tense doesn't make sense.
|
||
:_mod-docs-content-type: PROCEDURE | ||
[id="virt-creating-exposing-mediated-devices_{context}"] | ||
= Creating and exposing mediated devices | ||
|
||
As an administrator, you can create mediated devices and expose them to the cluster by editing the `HyperConverged` custom resource (CR). | ||
As an administrator, you can create mediated devices and expose them to the cluster by editing the `HyperConverged` custom resource (CR). The mediated device values that you supply can vary depending on the particular Graphics Processing Units (GPUs) you are using. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This additional sentence doesn't seem to add much for the reader. For conciseness, consider removing it, or you could shorten it to something like: "The values you add to the CR depend on your GPU model and vendor."
@@ -43,81 +48,85 @@ spec: | |||
- nvidia-233 | |||
nodeSelector: | |||
kubernetes.io/hostname: node-11.redhat.com | |||
permittedHostDevices: | |||
mediatedDevices: | |||
- mdevNameSelector: GRID T4-2Q | |||
resourceName: nvidia.com/GRID_T4-2Q | |||
- mdevNameSelector: GRID T4-8Q | |||
resourceName: nvidia.com/GRID_T4-8Q | |||
# ... | |||
# ... | |||
---- | |||
==== | |||
|
|||
. Create mediated devices by adding them to the `spec.mediatedDevicesConfiguration` stanza: | |||
Identify the name selector and resource name values for the devices that you want to expose to the cluster, as shown in the following example. You can use the same value for both, replacing any spaces in the name with an underscore. | |||
+ | |||
.Example YAML snippet | |||
[source,yaml] | |||
[source,terminal] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ | ||
.Example configuration file with mediated devices configured | ||
.Example configuration | ||
[%collapsible] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The [%collapsible]
line still needs to be removed
[source,yaml,subs="attributes+"] | ||
|
||
[source,yaml] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be reverted to [source,yaml,subs="attributes+"]
because the code block has an attribute in it ({CNVNamespace}
)
|
||
<mdevNameSelector>:: Specifies the mediated devices that map to this value on the host. | ||
|
||
<resourceName>:: Specifies the matching resource name that is allocated on the node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, you don't need to use the < >
characters because the example doesn't contain them. You just need to put the parameters in backticks.
<resourceName>:: Specifies the matching resource name that is allocated on the node. | |
`mediatedDeviceTypes`:: Specifies global settings for the cluster and is required. | |
`nodeMediatedDeviceTypes`:: Specifies global configuration overrides for a specific node or group of nodes and is optional. Must be used with the global `mediatedDeviceTypes` configuration. | |
`mediatedDeviceTypes`:: Specifies an override to the global `mediatedDeviceTypes` configuration for the specified nodes. Required if you use `nodeMediatedDeviceTypes`. | |
`nodeSelector`:: Specifies the node selector and must include a `key:value` pair. Required if you use `nodeMediatedDeviceTypes`. | |
`mdevNameSelector`:: Specifies the mediated devices that map to this value on the host. | |
`resourceName`:: Specifies the matching resource name that is allocated on the node. |
spec: | ||
mediatedDevicesConfiguration: | ||
mediatedDeviceTypes: | ||
- nvidia-745 | ||
nodeMediatedDeviceTypes: | ||
- mediatedDeviceTypes: | ||
- nvidia-746 | ||
nodeSelector: | ||
kubernetes.io/hostname: node-11.redhat.com | ||
permittedHostDevices: | ||
mediatedDevices: | ||
- mdevNameSelector: GRID A2-2Q | ||
resourceName: nvidia.com/GRID_A2-2Q | ||
- mdevNameSelector: GRID A2-4Q | ||
resourceName: nvidia.com/GRID_A2-4Q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is a snippet, you need to put # ...
before and after the code itself.
spec: | |
mediatedDevicesConfiguration: | |
mediatedDeviceTypes: | |
- nvidia-745 | |
nodeMediatedDeviceTypes: | |
- mediatedDeviceTypes: | |
- nvidia-746 | |
nodeSelector: | |
kubernetes.io/hostname: node-11.redhat.com | |
permittedHostDevices: | |
mediatedDevices: | |
- mdevNameSelector: GRID A2-2Q | |
resourceName: nvidia.com/GRID_A2-2Q | |
- mdevNameSelector: GRID A2-4Q | |
resourceName: nvidia.com/GRID_A2-4Q | |
# ... | |
spec: | |
mediatedDevicesConfiguration: | |
mediatedDeviceTypes: | |
- nvidia-745 | |
nodeMediatedDeviceTypes: | |
- mediatedDeviceTypes: | |
- nvidia-746 | |
nodeSelector: | |
kubernetes.io/hostname: node-11.redhat.com | |
permittedHostDevices: | |
mediatedDevices: | |
- mdevNameSelector: GRID A2-2Q | |
resourceName: nvidia.com/GRID_A2-2Q | |
- mdevNameSelector: GRID A2-4Q | |
resourceName: nvidia.com/GRID_A2-4Q | |
# ... |
. Identify the name selector and resource name values for the devices that you want to expose to the cluster. You will add these values to the `HyperConverged` CR in the next step. | ||
.. Find the `resourceName` value by running the following command: | ||
+ | ||
.Example output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.Example output | |
Example output: | |
+ |
@@ -24,10 +29,10 @@ As an administrator, you can create mediated devices and expose them to the clus | |||
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace} | |||
---- | |||
+ | |||
.Example configuration file with mediated devices configured | |||
*Example configuration* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*Example configuration* | |
Example configuration file: | |
+ |
[IMPORTANT] | ||
==== | ||
Before {VirtProductName} 4.14, the `mediatedDeviceTypes` field was named `mediatedDevicesTypes`. Ensure that you use the correct field name when configuring mediated devices. | ||
==== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we still need this :)
Per @nunzy1, I am taking over this story in the interest of time; I'm closing this PR and will open a different one. |
Version(s):
4.20+
Issue:
https://issues.redhat.com/browse/CNV-67095
Link to docs preview:
QE review:
Additional information:
This is a duplicate PR of #99158. The QA review for that issue has already been completed.