Skip to content

Commit 113a853

Browse files
committed
PUC-1445: Restore inspection interface to redfish after agent inspection
The inspect-server workflow switches from redfish to agent inspection to gather detailed hardware information, but it was leaving nodes configured with agent inspection at the end. This prevents periodic out-of-band redfish inspections from running automatically. The workflow now explicitly restores the inspection interface back to redfish (or idrac-redfish for Dell servers) after the agent inspection completes, allowing regular automated inspections to continue working.
1 parent e963f7e commit 113a853

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

workflows/argo-events/workflowtemplates/inspect-server.yaml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,43 @@ spec:
156156
- name: node_id
157157
value: "{{tasks.node-id.outputs.result}}"
158158
when: "'{{tasks.server-start-state.outputs.result}}' != 'active'"
159+
- name: server-restore-inspect-redfish
160+
# restore the server back to redfish based inspection
161+
depends: "inspect-server-agent.Succeeded"
162+
template: openstack-set-cmd
163+
arguments:
164+
parameters:
165+
- name: object
166+
value: node
167+
- name: flag
168+
value: "--inspect-interface"
169+
- name: value
170+
value: "redfish"
171+
- name: obj_id
172+
value: "{{tasks.node-id.outputs.result}}"
173+
when: >-
174+
'{{tasks.server-driver.outputs.result}}' == 'redfish' &&
175+
'{{tasks.server-start-state.outputs.result}}' != 'active'
176+
- name: server-restore-inspect-idrac-redfish
177+
# restore the server back to idrac-redfish based inspection
178+
depends: "inspect-server-agent.Succeeded"
179+
template: openstack-set-cmd
180+
arguments:
181+
parameters:
182+
- name: object
183+
value: node
184+
- name: flag
185+
value: "--inspect-interface"
186+
- name: value
187+
value: "idrac-redfish"
188+
- name: obj_id
189+
value: "{{tasks.node-id.outputs.result}}"
190+
when: >-
191+
'{{tasks.server-driver.outputs.result}}' == 'idrac' &&
192+
'{{tasks.server-start-state.outputs.result}}' != 'active'
159193
- name: return-server
160194
# returns a server to its previous state if needed
161-
depends: "server-start-state.Succeeded && inspect-server-agent.Succeeded"
195+
depends: "inspect-server-agent.Succeeded && (server-restore-inspect-redfish.Succeeded || server-restore-inspect-idrac-redfish.Succeeded)"
162196
template: openstack-wait-cmd
163197
arguments:
164198
parameters:

0 commit comments

Comments
 (0)