Skip to content

Commit 21c74be

Browse files
authored
Merge pull request #214 from almaslennikov/nicop-fixes
fix: small improvements to nic op docs
2 parents 622dbb2 + 12d5edf commit 21c74be

File tree

1 file changed

+49
-25
lines changed

1 file changed

+49
-25
lines changed

docs/getting-started-kubernetes.rst

Lines changed: 49 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,16 +2638,16 @@ Discover more information about a specific device:
26382638
spec: {}
26392639
status:
26402640
conditions:
2641-
- lastTransitionTime: "2024-09-21T08:43:04Z"
2642-
message: Device firmware spec is empty, cannot update or validate firmware
2641+
- type: FirmwareUpdateInProgress
2642+
status: "False"
26432643
reason: DeviceFirmwareSpecEmpty
2644+
message: Device firmware spec is empty, cannot update or validate firmware
2645+
lastTransitionTime: "2024-09-21T08:43:04Z"
2646+
- type: ConfigUpdateInProgress
26442647
status: "False"
2645-
type: FirmwareUpdateInProgress
2646-
- lastTransitionTime: "2024-09-21T08:43:08Z"
2647-
message: Device configuration spec is empty, cannot update configuration
26482648
reason: DeviceConfigSpecEmpty
2649-
status: "False"
2650-
type: ConfigUpdateInProgress
2649+
message: Device configuration spec is empty, cannot update configuration
2650+
lastTransitionTime: "2024-09-21T08:43:08Z"
26512651
firmwareVersion: 22.39.1015
26522652
node: cloud-dev-41
26532653
partNumber: mcx623106ac-cdat
@@ -2674,7 +2674,7 @@ Configure and apply the NICFirmwareSource CR:
26742674
finalizers:
26752675
- configuration.net.nvidia.com/nic-configuration-operator
26762676
spec:
2677-
# a list of firmware binaries from mlnx website if they are zipped try to unzip before placing
2677+
# a list of firmware binaries zip archives from the Mellanox website, can point to any url accessible from the cluster
26782678
binUrlSources:
26792679
- https://www.mellanox.com/downloads/firmware/fw-ConnectX6Dx-rel-22_44_1036-MCX623106AC-CDA_Ax-UEFI-14.37.14-FlexBoot-3.7.500.signed.bin.zip
26802680
@@ -2736,7 +2736,6 @@ Configure and apply the NicConfigurationTemplate CR:
27362736
linkType: Ethernet
27372737
pciPerformanceOptimized:
27382738
enabled: true
2739-
maxAccOutRead: 44
27402739
maxReadRequest: 4096
27412740
roceOptimized:
27422741
enabled: true
@@ -2754,23 +2753,48 @@ Configure and apply the NicConfigurationTemplate CR:
27542753
For more information about the CRD API, refer to `API documentation <https://github.com/Mellanox/nic-configuration-operator/blob/main/docs/api-reference.md>`_.
27552754
For more information, which FW parameter each settings corresponds to, refer to `Configuration details doc section <https://github.com/Mellanox/nic-configuration-operator?tab=readme-ov-file#configuration-details>`_.
27562755

2756+
Spec of the NicDevice CR is updated in accordance with the NICFirmwareTemplate and NicConfigurationTemplate CRs matching the device
2757+
2758+
.. code-block:: bash
2759+
2760+
> kubectl get nicdevice -n nvidia-network-operator node1-101d-mt1952x03327 -o jsonpath='{.spec}' | yq -P
2761+
2762+
template:
2763+
firmware:
2764+
nicFirmwareSourceRef: connectx6dx-firmware-22-44-1036
2765+
updatePolicy: Update
2766+
configuration:
2767+
numVfs: 2
2768+
linkType: Ethernet
2769+
pciPerformanceOptimized:
2770+
enabled: true
2771+
roceOptimized:
2772+
enabled: true
2773+
qos:
2774+
trust: dscp
2775+
pfc: "0,0,0,1,0,0,0,0"
2776+
gpuDirectOptimized:
2777+
enabled: true
2778+
env: Baremetal
2779+
2780+
27572781
Status conditions of the NicDevice CR reflect the status of the configuration update and indicate any errors that might occur during the process
27582782

27592783
.. code-block:: bash
27602784
27612785
> kubectl get nicdevice -n nvidia-network-operator node1-101d-mt1952x03327 -o jsonpath='{.status.conditions}' | yq -P
27622786
2763-
- lastTransitionTime: "2024-09-21T08:42:23Z"
2787+
- type: FirmwareUpdateInProgress
2788+
status: "False"
2789+
reason: DeviceFirmwareConfigMatch
27642790
message: Firmware matches the requested version
27652791
observedGeneration: 4
2766-
reason: DeviceFirmwareConfigMatch
2767-
status: "False"
2768-
type: FirmwareUpdateInProgress
2769-
- lastTransitionTime: "2024-09-21T08:43:08Z"
2770-
message: ""
2771-
reason: UpdateStarted
2792+
lastTransitionTime: "2024-09-21T08:42:23Z"
2793+
- type: ConfigUpdateInProgress
27722794
status: "True"
2773-
type: ConfigUpdateInProgress
2795+
reason: UpdateStarted
2796+
message: ""
2797+
lastTransitionTime: "2024-09-21T08:43:08Z"
27742798
27752799
----------------------------------
27762800
NIC Firmware Mismatch Notification
@@ -2782,20 +2806,20 @@ NIC Configuration Operator updates status conditions of the NicDevice CR to set
27822806
27832807
> kubectl get nicdevice -n nvidia-network-operator node1-101d-mt1952x03327 -o jsonpath='{.status.conditions}' | yq -P
27842808
2785-
- lastTransitionTime: "2024-09-21T08:43:10Z"
2786-
message: Device firmware '20.42.1000' matches to recommended version '20.42.1000'
2787-
reason: DeviceFirmwareConfigMatch
2809+
- type: FirmwareConfigMatch
27882810
status: "True"
2789-
type: FirmwareConfigMatch
2811+
reason: DeviceFirmwareConfigMatch
2812+
message: Device firmware '20.42.1000' matches to recommended version '20.42.1000'
2813+
lastTransitionTime: "2024-09-21T08:43:10Z"
27902814
27912815
`FirmwareConfigMatch` condition status is set to `Unknown` if DOCA Driver is not installed otherwise it notifies if current NIC firmware is recommended or not recommended by DOCA Driver. E.g.:
27922816

27932817
.. code-block:: bash
27942818
27952819
> kubectl get nicdevice -n nvidia-network-operator node1-101d-mt1952x03327 -o jsonpath='{.status.conditions}' | yq -P
27962820
2797-
- lastTransitionTime: "2024-11-08T09:19:41Z"
2798-
message: Device firmware '20.42.1000' matches to recommended version '20.42.1000'
2799-
reason: DeviceFirmwareConfigMatch
2821+
- type: FirmwareConfigMatch
28002822
status: "True"
2801-
type: FirmwareConfigMatch
2823+
reason: DeviceFirmwareConfigMatch
2824+
message: Device firmware '20.42.1000' matches to recommended version '20.42.1000'
2825+
lastTransitionTime: "2024-11-08T09:19:41Z"

0 commit comments

Comments
 (0)