Skip to content

Commit 24b05eb

Browse files
Merge pull request #378 from Nordix/lentzi90/json-rpc-port-release-0.4
🌱 Enforce the JSON RPC port
2 parents 4fbe12d + 82e0fc7 commit 24b05eb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/ironic/containers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ func buildIronicEnvVars(cctx ControllerContext, resources Resources) []corev1.En
211211
Name: "IRONIC_EXPOSE_JSON_RPC",
212212
Value: strconv.FormatBool(resources.Ironic.Spec.HighAvailability),
213213
},
214+
// NOTE(dtantsur): this is necessary for the transition process from port 8089 (conflicting with kubernetes-nmstate)
215+
// to port 6189 chosen for Metal3.
216+
{
217+
Name: "OS_JSON_RPC__PORT",
218+
Value: "8089",
219+
},
214220
}...)
215221

216222
if resources.Ironic.Spec.Database != nil {

pkg/ironic/containers_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ func TestExpectedExtraEnvVars(t *testing.T) {
174174
"OS_PXE__BOOT_RETRY_TIMEOUT": "1200",
175175
"OS_CONDUCTOR__DEPLOY_CALLBACK_TIMEOUT": "4800",
176176
"OS_CONDUCTOR__INSPECT_TIMEOUT": "1800",
177+
// This is currently set unconditionally by IrSO itself and will eventually be replaced by a proper ironic-image variable.
178+
"OS_JSON_RPC__PORT": "8089",
177179
}
178180

179181
ironic := &metal3api.Ironic{

0 commit comments

Comments
 (0)