@openshift-assisted/ui-lib 2.9.13-cim → 2.9.15-cim
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/Agent/AgentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/AgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/AgentsSelectionTable.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/BMCForm.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/tableUtils.d.ts +10 -5
- package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/types.d.ts +2 -0
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/utils/status.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts +3 -2
- package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agents.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/status.d.ts +5 -2
- package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts +2 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/hosts/tableUtils.d.ts +1 -1
- package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HardwareStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/NetworkingStatus.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/AgentStatus.js +4 -3
- package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
- package/build/cjs/cim/components/Agent/AgentTable.js +4 -1
- package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +4 -0
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/BMCForm.js +21 -3
- package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableUtils.js +36 -34
- package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +4 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js +19 -2
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.js +18 -3
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +10 -0
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js +2 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/utils/status.js +3 -1
- package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +20 -7
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js +5 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js +17 -10
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +17 -15
- package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
- package/build/cjs/cim/components/helpers/agents.js +2 -2
- package/build/cjs/cim/components/helpers/agents.js.map +1 -1
- package/build/cjs/cim/components/helpers/status.js +40 -22
- package/build/cjs/cim/components/helpers/status.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +2 -2
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js +8 -5
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +40 -33
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js.map +1 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js +14 -14
- package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +2 -1
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +54 -53
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js +3 -3
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +8 -8
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageDetail.js +3 -1
- package/build/cjs/common/components/storage/StorageDetail.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js +3 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HardwareStatus.js +3 -1
- package/build/cjs/ocm/components/hosts/HardwareStatus.js.map +1 -1
- package/build/cjs/ocm/components/hosts/NetworkingStatus.js +3 -1
- package/build/cjs/ocm/components/hosts/NetworkingStatus.js.map +1 -1
- package/lib/cim/components/Agent/AgentStatus.tsx +4 -3
- package/lib/cim/components/Agent/AgentTable.tsx +4 -1
- package/lib/cim/components/Agent/AgentsSelectionTable.tsx +4 -0
- package/lib/cim/components/Agent/BMCForm.tsx +23 -3
- package/lib/cim/components/Agent/tableUtils.tsx +75 -33
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +4 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.tsx +21 -2
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.tsx +18 -3
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +35 -2
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +2 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/types.ts +2 -0
- package/lib/cim/components/Hypershift/utils/status.tsx +3 -1
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +20 -7
- package/lib/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.tsx +5 -2
- package/lib/cim/components/InfraEnv/InfraTableToolbar.tsx +21 -11
- package/lib/cim/components/helpers/agentStatus.tsx +17 -16
- package/lib/cim/components/helpers/agents.ts +3 -4
- package/lib/cim/components/helpers/status.ts +44 -24
- package/lib/cim/components/helpers/toAssisted.ts +3 -3
- package/lib/cim/components/modals/MassApproveAgentModal.tsx +13 -5
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +63 -56
- package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +3 -3
- package/lib/common/components/hosts/HostRowDetail.tsx +20 -17
- package/lib/common/components/hosts/HostStatus.tsx +3 -1
- package/lib/common/components/hosts/status.tsx +227 -212
- package/lib/common/components/hosts/tableUtils.tsx +3 -3
- package/lib/common/components/storage/DisksTable.tsx +8 -8
- package/lib/common/components/storage/StorageDetail.tsx +4 -1
- package/lib/common/components/ui/formik/validationSchemas.ts +1 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +1 -1
- package/lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx +3 -1
- package/lib/ocm/components/hosts/HardwareStatus.tsx +3 -1
- package/lib/ocm/components/hosts/NetworkingStatus.tsx +3 -1
- package/package.json +3 -3
|
@@ -19,219 +19,234 @@ import {
|
|
|
19
19
|
} from '@patternfly/react-tokens';
|
|
20
20
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
21
21
|
import { HostStatus } from './types';
|
|
22
|
+
import { TFunction } from 'i18next';
|
|
22
23
|
|
|
23
|
-
export const hostStatus: HostStatus<Host['status'] | 'finalizing'>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
'This host is
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
'
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
'
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
24
|
+
export const hostStatus = (t: TFunction): HostStatus<Host['status'] | 'finalizing'> =>
|
|
25
|
+
Object.freeze({
|
|
26
|
+
'unbinding-pending-user-action': {
|
|
27
|
+
key: 'unbinding-pending-user-action',
|
|
28
|
+
title: t('ai:Removing from cluster'),
|
|
29
|
+
category: 'Discovery related',
|
|
30
|
+
icon: <InProgressIcon />,
|
|
31
|
+
details: t(
|
|
32
|
+
'ai:This host is being removed from the cluster. To finish, reboot the host with the infrastructure environment ISO.',
|
|
33
|
+
),
|
|
34
|
+
},
|
|
35
|
+
reclaiming: {
|
|
36
|
+
key: 'reclaiming',
|
|
37
|
+
title: t('ai:Returning to the infrastructure environment'),
|
|
38
|
+
category: 'Discovery related',
|
|
39
|
+
icon: <InProgressIcon />,
|
|
40
|
+
details: t('ai:This host is being removed from the cluster.'),
|
|
41
|
+
},
|
|
42
|
+
'reclaiming-rebooting': {
|
|
43
|
+
key: 'reclaiming-rebooting',
|
|
44
|
+
title: t('ai:Rebooting while returning to the infrastructure environment'),
|
|
45
|
+
category: 'Discovery related',
|
|
46
|
+
icon: <InProgressIcon />,
|
|
47
|
+
details: t('ai:This host is being rebooted to be available for reuse in another cluster.'),
|
|
48
|
+
},
|
|
49
|
+
'preparing-failed': {
|
|
50
|
+
key: 'preparing-failed',
|
|
51
|
+
title: t('ai:Preparing step failed'),
|
|
52
|
+
category: 'Installation related',
|
|
53
|
+
details: t('ai:Preparing step failed'),
|
|
54
|
+
},
|
|
55
|
+
unbinding: {
|
|
56
|
+
key: 'unbinding',
|
|
57
|
+
title: t('ai:Removing from cluster'),
|
|
58
|
+
category: 'Discovery related',
|
|
59
|
+
icon: <InProgressIcon />,
|
|
60
|
+
details: t('ai:This host is being removed from the cluster.'),
|
|
61
|
+
},
|
|
62
|
+
'disabled-unbound': {
|
|
63
|
+
key: 'disabled-unbound',
|
|
64
|
+
title: t('ai:Disabled'),
|
|
65
|
+
category: 'Discovery related',
|
|
66
|
+
icon: <BanIcon />,
|
|
67
|
+
details: t(
|
|
68
|
+
'ai:This host was manually removed from a cluster and can not be included in another one. Enable this host to make it available again.',
|
|
69
|
+
),
|
|
70
|
+
},
|
|
71
|
+
'disconnected-unbound': {
|
|
72
|
+
key: 'disconnected-unbound',
|
|
73
|
+
title: t('ai:Disconnected'),
|
|
74
|
+
category: 'Discovery related',
|
|
75
|
+
icon: <DisconnectedIcon />,
|
|
76
|
+
details: t(
|
|
77
|
+
'ai:Ensure the host is running, responsive, and is able to contact the installer.',
|
|
78
|
+
),
|
|
79
|
+
},
|
|
80
|
+
'discovering-unbound': {
|
|
81
|
+
key: 'discovering-unbound',
|
|
82
|
+
title: t('ai:Discovering'),
|
|
83
|
+
category: 'Discovery related',
|
|
84
|
+
icon: <ConnectedIcon />,
|
|
85
|
+
details: t(
|
|
86
|
+
'ai:This host is transmitting its hardware and networking information to the installer. Please wait while this information is received.',
|
|
87
|
+
),
|
|
88
|
+
},
|
|
89
|
+
'insufficient-unbound': {
|
|
90
|
+
key: 'insufficient-unbound',
|
|
91
|
+
title: t('ai:Insufficient'),
|
|
92
|
+
category: 'Discovery related',
|
|
93
|
+
icon: <ExclamationTriangleIcon color={warningColor.value} />,
|
|
94
|
+
details: t(
|
|
95
|
+
'ai:This host does not meet the minimum hardware or networking requirements and can not be included in the cluster.',
|
|
96
|
+
),
|
|
97
|
+
},
|
|
98
|
+
'known-unbound': {
|
|
99
|
+
key: 'known-unbound',
|
|
100
|
+
title: t('ai:Available'),
|
|
101
|
+
category: 'Discovery related',
|
|
102
|
+
icon: <PlusIcon color={blueColor.value} />,
|
|
103
|
+
details: t(
|
|
104
|
+
'ai:This host meets the minimum hardware and networking requirements and can be included in the cluster.',
|
|
105
|
+
),
|
|
106
|
+
},
|
|
107
|
+
binding: {
|
|
108
|
+
key: 'binding',
|
|
109
|
+
title: t('ai:Binding'),
|
|
110
|
+
category: 'Discovery related',
|
|
111
|
+
icon: <LinkIcon />,
|
|
112
|
+
details: t('ai:This host is being added to the cluster.'),
|
|
113
|
+
},
|
|
114
|
+
discovering: {
|
|
115
|
+
key: 'discovering',
|
|
116
|
+
title: t('ai:Discovering'),
|
|
117
|
+
category: 'Discovery related',
|
|
118
|
+
icon: <ConnectedIcon />,
|
|
119
|
+
details: t(
|
|
120
|
+
'ai:This host is transmitting its hardware and networking information to the installer. Please wait while this information is received.',
|
|
121
|
+
),
|
|
122
|
+
},
|
|
123
|
+
'pending-for-input': {
|
|
124
|
+
key: 'pending-for-input',
|
|
125
|
+
title: t('ai:Pending input'),
|
|
126
|
+
category: 'Discovery related',
|
|
127
|
+
icon: <PendingIcon />,
|
|
128
|
+
},
|
|
129
|
+
known: {
|
|
130
|
+
key: 'known',
|
|
131
|
+
title: t('ai:Ready'),
|
|
132
|
+
category: 'Discovery related',
|
|
133
|
+
icon: <CheckCircleIcon color={okColor.value} />,
|
|
134
|
+
details: t(
|
|
135
|
+
'ai:This host meets the minimum hardware and networking requirements and will be included in the cluster.',
|
|
136
|
+
),
|
|
137
|
+
},
|
|
138
|
+
disconnected: {
|
|
139
|
+
key: 'disconnected',
|
|
140
|
+
title: t('ai:Disconnected'),
|
|
141
|
+
category: 'Discovery related',
|
|
142
|
+
icon: <DisconnectedIcon />,
|
|
143
|
+
details: t(
|
|
144
|
+
'ai:This host has lost its connection to the installer and will not be included in the cluster unless connectivity is restored.',
|
|
145
|
+
),
|
|
146
|
+
},
|
|
147
|
+
insufficient: {
|
|
148
|
+
key: 'insufficient',
|
|
149
|
+
title: t('ai:Insufficient'),
|
|
150
|
+
category: 'Discovery related',
|
|
151
|
+
icon: <ExclamationTriangleIcon color={warningColor.value} />,
|
|
152
|
+
details: t(
|
|
153
|
+
'ai:This host does not meet the minimum hardware or networking requirements and will not be included in the cluster.',
|
|
154
|
+
),
|
|
155
|
+
},
|
|
156
|
+
disabled: {
|
|
157
|
+
key: 'disabled',
|
|
158
|
+
title: t('ai:Disabled'),
|
|
159
|
+
category: 'Discovery related',
|
|
160
|
+
icon: <BanIcon />,
|
|
161
|
+
details: t(
|
|
162
|
+
'ai:This host was manually disabled and will not be included in the cluster. Enable this host to include it again.',
|
|
163
|
+
),
|
|
164
|
+
},
|
|
165
|
+
'preparing-for-installation': {
|
|
166
|
+
key: 'preparing-for-installation',
|
|
167
|
+
title: t('ai:Preparing for installation'),
|
|
168
|
+
category: 'Installation related',
|
|
169
|
+
icon: <InProgressIcon />,
|
|
170
|
+
},
|
|
171
|
+
'preparing-successful': {
|
|
172
|
+
key: 'preparing-successful',
|
|
173
|
+
title: t('ai:Preparing step successful'),
|
|
174
|
+
category: 'Installation related',
|
|
175
|
+
icon: <InProgressIcon />,
|
|
176
|
+
},
|
|
177
|
+
installing: {
|
|
178
|
+
key: 'installing',
|
|
179
|
+
title: t('ai:Starting installation'),
|
|
180
|
+
category: 'Installation related',
|
|
181
|
+
icon: <InProgressIcon />,
|
|
182
|
+
},
|
|
183
|
+
'installing-in-progress': {
|
|
184
|
+
key: 'installing-in-progress',
|
|
185
|
+
title: t('ai:Installing'),
|
|
186
|
+
category: 'Installation related',
|
|
187
|
+
icon: <InProgressIcon />,
|
|
188
|
+
withProgress: true,
|
|
189
|
+
},
|
|
190
|
+
'installing-pending-user-action': {
|
|
191
|
+
key: 'installing-pending-user-action',
|
|
192
|
+
title: t('ai:Pending user action'),
|
|
193
|
+
category: 'Installation related',
|
|
194
|
+
icon: <ExclamationTriangleIcon color={warningColor.value} />,
|
|
195
|
+
details: t('ai:This host is pending user action'),
|
|
196
|
+
},
|
|
197
|
+
installed: {
|
|
198
|
+
key: 'installed',
|
|
199
|
+
title: t('ai:Installed'),
|
|
200
|
+
category: 'Installation related',
|
|
201
|
+
icon: <CheckCircleIcon color={okColor.value} />,
|
|
202
|
+
details: t('ai:This host completed its installation successfully.'),
|
|
203
|
+
},
|
|
204
|
+
cancelled: {
|
|
205
|
+
key: 'cancelled',
|
|
206
|
+
title: t('ai:Installation cancelled'),
|
|
207
|
+
category: 'Installation related',
|
|
208
|
+
icon: <BanIcon />,
|
|
209
|
+
details: t('ai:This host installation has been cancelled.'),
|
|
210
|
+
withProgress: true,
|
|
211
|
+
},
|
|
212
|
+
error: {
|
|
213
|
+
key: 'error',
|
|
214
|
+
title: t('ai:Error'),
|
|
215
|
+
category: 'Installation related',
|
|
216
|
+
icon: <ExclamationCircleIcon color={dangerColor.value} />,
|
|
217
|
+
details: t('ai:This host failed its installation.'),
|
|
218
|
+
withProgress: true,
|
|
219
|
+
},
|
|
220
|
+
resetting: {
|
|
221
|
+
key: 'resetting',
|
|
222
|
+
title: t('ai:Resetting'),
|
|
223
|
+
category: 'Installation related',
|
|
224
|
+
icon: <InProgressIcon />,
|
|
225
|
+
details: t('ai:This host is resetting the installation.'),
|
|
226
|
+
},
|
|
227
|
+
'resetting-pending-user-action': {
|
|
228
|
+
key: 'resetting-pending-user-action',
|
|
229
|
+
title: t('ai:Reboot required'),
|
|
230
|
+
category: 'Installation related',
|
|
231
|
+
icon: <ExclamationTriangleIcon color={warningColor.value} />,
|
|
232
|
+
details: t(
|
|
233
|
+
'ai:Host has already been booted from disk during the previous installation. To finish resetting the installation, boot the host into the discovery image',
|
|
234
|
+
),
|
|
235
|
+
},
|
|
236
|
+
finalizing: {
|
|
237
|
+
key: 'finalizing',
|
|
238
|
+
title: t('ai:Finalizing'),
|
|
239
|
+
category: 'Installation related',
|
|
240
|
+
icon: <InProgressIcon />,
|
|
241
|
+
},
|
|
242
|
+
'added-to-existing-cluster': {
|
|
243
|
+
key: 'added-to-existing-cluster',
|
|
244
|
+
title: t('ai:Installed'),
|
|
245
|
+
category: 'Installation related',
|
|
246
|
+
icon: <CheckCircleIcon color={okColor.value} />,
|
|
247
|
+
details: t('ai:This host completed its installation successfully.'),
|
|
248
|
+
},
|
|
249
|
+
});
|
|
235
250
|
|
|
236
251
|
export const hostStatusOrder: Host['status'][] = [
|
|
237
252
|
'error',
|
|
@@ -154,7 +154,7 @@ export const statusColumn = (
|
|
|
154
154
|
title: (
|
|
155
155
|
<HostStatus
|
|
156
156
|
host={host}
|
|
157
|
-
status={{ ...hostStatus[actualHostStatus], sublabel }}
|
|
157
|
+
status={{ ...hostStatus(t)[actualHostStatus], sublabel }}
|
|
158
158
|
onEditHostname={editHostname}
|
|
159
159
|
validationsInfo={validationsInfo}
|
|
160
160
|
AdditionalNTPSourcesDialogToggleComponent={AdditionalNTPSourcesDialogToggleComponent}
|
|
@@ -286,8 +286,8 @@ export const countColumn = (cluster: Cluster): TableRow<Host> => ({
|
|
|
286
286
|
header: { title: <HostsCount cluster={cluster} inParenthesis /> },
|
|
287
287
|
});
|
|
288
288
|
|
|
289
|
-
export const activeNICColumn = (cluster: Cluster): TableRow<Host> => ({
|
|
290
|
-
header: { title: 'Active NIC', transforms: [sortable] },
|
|
289
|
+
export const activeNICColumn = (cluster: Cluster, t: TFunction): TableRow<Host> => ({
|
|
290
|
+
header: { title: t('ai:Active NIC'), transforms: [sortable] },
|
|
291
291
|
cell: (host) => {
|
|
292
292
|
const inventory = getInventory(host);
|
|
293
293
|
const nics = inventory.interfaces || [];
|
|
@@ -42,14 +42,14 @@ interface DisksTableProps extends WithTestID {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
const diskColumns = (t: TFunction, showFormat: boolean) => [
|
|
45
|
-
{ title: 'Name' },
|
|
46
|
-
{ title: 'Role' },
|
|
47
|
-
{ title: 'Limitations' },
|
|
48
|
-
showFormat ? { title: 'Format?' } : '',
|
|
49
|
-
{ title: 'Drive type' },
|
|
50
|
-
{ title: 'Size' },
|
|
51
|
-
{ title: 'Serial' },
|
|
52
|
-
{ title: 'Model' },
|
|
45
|
+
{ title: t('ai:Name') },
|
|
46
|
+
{ title: t('ai:Role') },
|
|
47
|
+
{ title: t('ai:Limitations') },
|
|
48
|
+
showFormat ? { title: t('ai:Format?') } : '',
|
|
49
|
+
{ title: t('ai:Drive type') },
|
|
50
|
+
{ title: t('ai:Size') },
|
|
51
|
+
{ title: t('ai:Serial') },
|
|
52
|
+
{ title: t('ai:Model') },
|
|
53
53
|
{
|
|
54
54
|
title: (
|
|
55
55
|
<>
|
|
@@ -6,6 +6,7 @@ import { DiskFormattingType } from '../hosts/FormatDiskCheckbox';
|
|
|
6
6
|
import { DisksTable } from './DisksTable';
|
|
7
7
|
import SectionTitle from '../ui/SectionTitle';
|
|
8
8
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
9
|
+
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
9
10
|
|
|
10
11
|
type StorageDetailProps = {
|
|
11
12
|
host: Host;
|
|
@@ -23,11 +24,13 @@ const StorageDetail = ({
|
|
|
23
24
|
const inventory = getInventory(host);
|
|
24
25
|
const disks = inventory.disks || [];
|
|
25
26
|
|
|
27
|
+
const { t } = useTranslation();
|
|
28
|
+
|
|
26
29
|
return (
|
|
27
30
|
<Grid hasGutter>
|
|
28
31
|
<SectionTitle
|
|
29
32
|
testId={'disks-section'}
|
|
30
|
-
title={
|
|
33
|
+
title={t('ai:{{count}} Disk', { count: disks.length })}
|
|
31
34
|
/>
|
|
32
35
|
<GridItem>
|
|
33
36
|
<DisksTable
|
|
@@ -639,7 +639,7 @@ export const day2ApiVipValidationSchema = Yup.string().test(
|
|
|
639
639
|
export const bmcAddressValidationSchema = (t: TFunction) => {
|
|
640
640
|
const bmcAddressValidationMessagesList = bmcAddressValidationMessages(t);
|
|
641
641
|
|
|
642
|
-
return Yup.string().matches(BMC_REGEX, {
|
|
642
|
+
return Yup.string().required().matches(BMC_REGEX, {
|
|
643
643
|
message: bmcAddressValidationMessagesList.INVALID_VALUE,
|
|
644
644
|
excludeEmptyString: true,
|
|
645
645
|
});
|
|
@@ -74,7 +74,7 @@ const NetworkConfigurationTableBase = ({
|
|
|
74
74
|
hostnameColumn(t, onEditHost, undefined, canEditHostname),
|
|
75
75
|
roleColumn(t, canEditRole, onEditRole, selectSchedulableMasters(cluster)),
|
|
76
76
|
networkingStatusColumn(onEditHost),
|
|
77
|
-
activeNICColumn(cluster),
|
|
77
|
+
activeNICColumn(cluster, t),
|
|
78
78
|
ipv4Column(cluster),
|
|
79
79
|
ipv6Column(cluster),
|
|
80
80
|
macAddressColumn(cluster),
|
|
@@ -5,6 +5,7 @@ import { getMostSevereHostStatus } from './utils';
|
|
|
5
5
|
import { ExpandableSection } from '@patternfly/react-core';
|
|
6
6
|
import './HostInventoryExpandable.css';
|
|
7
7
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
8
|
+
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
8
9
|
|
|
9
10
|
type HostInventoryExpandableProps = {
|
|
10
11
|
cluster: Cluster;
|
|
@@ -24,11 +25,12 @@ const ExpandableSectionTitle = ({
|
|
|
24
25
|
);
|
|
25
26
|
|
|
26
27
|
const HostInventoryExpandable = ({ cluster }: HostInventoryExpandableProps) => {
|
|
28
|
+
const { t } = useTranslation();
|
|
27
29
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
28
30
|
const hosts = cluster.hosts || [];
|
|
29
31
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-assignment
|
|
30
32
|
const mostSevereHostStatus = getMostSevereHostStatus(hosts);
|
|
31
|
-
const hostStatusDef = mostSevereHostStatus ? hostStatus[mostSevereHostStatus] : null;
|
|
33
|
+
const hostStatusDef = mostSevereHostStatus ? hostStatus(t)[mostSevereHostStatus] : null;
|
|
32
34
|
|
|
33
35
|
return (
|
|
34
36
|
<ExpandableSection
|
|
@@ -14,6 +14,7 @@ import { wizardStepsValidationsMap } from '../clusterWizard/wizardTransition';
|
|
|
14
14
|
import { AdditionalNTPSourcesDialogToggle } from './AdditionaNTPSourceDialogToggle';
|
|
15
15
|
import { stringToJSON } from '../../../common/utils';
|
|
16
16
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
17
|
+
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
17
18
|
|
|
18
19
|
type HardwareStatusProps = {
|
|
19
20
|
host: Host;
|
|
@@ -25,12 +26,13 @@ type HardwareStatusProps = {
|
|
|
25
26
|
const DELETE_MODAL_STATUS_Z_INDEX = 500;
|
|
26
27
|
|
|
27
28
|
const HardwareStatus = (props: HardwareStatusProps) => {
|
|
29
|
+
const { t } = useTranslation();
|
|
28
30
|
const hardwareStatus = getWizardStepHostStatus(
|
|
29
31
|
'host-discovery',
|
|
30
32
|
wizardStepsValidationsMap,
|
|
31
33
|
props.host,
|
|
32
34
|
);
|
|
33
|
-
const status = hostStatus[hardwareStatus];
|
|
35
|
+
const status = hostStatus(t)[hardwareStatus];
|
|
34
36
|
const validationsInfo = getWizardStepHostValidationsInfo(
|
|
35
37
|
props.validationsInfo,
|
|
36
38
|
'host-discovery',
|
|
@@ -9,14 +9,16 @@ import {
|
|
|
9
9
|
} from '../../../common';
|
|
10
10
|
import { wizardStepsValidationsMap } from '../clusterWizard/wizardTransition';
|
|
11
11
|
import { AdditionalNTPSourcesDialogToggle } from './AdditionaNTPSourceDialogToggle';
|
|
12
|
+
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
12
13
|
|
|
13
14
|
const NetworkingStatus: React.FC<HostNetworkingStatusComponentProps> = (props) => {
|
|
15
|
+
const { t } = useTranslation();
|
|
14
16
|
const networkingStatus = getWizardStepHostStatus(
|
|
15
17
|
'networking',
|
|
16
18
|
wizardStepsValidationsMap,
|
|
17
19
|
props.host,
|
|
18
20
|
);
|
|
19
|
-
const status = hostStatus[networkingStatus];
|
|
21
|
+
const status = hostStatus(t)[networkingStatus];
|
|
20
22
|
const validationsInfo = getWizardStepHostValidationsInfo(
|
|
21
23
|
props.validationsInfo,
|
|
22
24
|
'networking',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.9.
|
|
4
|
-
"@openshift-assisted/types": "2.9.
|
|
3
|
+
"@openshift-assisted/locales": "2.9.15-cim",
|
|
4
|
+
"@openshift-assisted/types": "2.9.15-cim",
|
|
5
5
|
"@patternfly/patternfly": "^4.222.4",
|
|
6
6
|
"@patternfly/react-code-editor": "^4.82.113",
|
|
7
7
|
"@patternfly/react-core": "^4.168.8",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
|
-
"version": "2.9.
|
|
136
|
+
"version": "2.9.15-cim"
|
|
137
137
|
}
|