Skip to content

Commit

Permalink
remove parameters from conf file
Browse files Browse the repository at this point in the history
Signed-off-by: oviner <[email protected]>
  • Loading branch information
OdedViner committed Jun 3, 2024
1 parent 94262ea commit 0f6dce4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ ENV_DATA:
is_multus_enabled: true
multus_public_net_interface: 'enp1s0f1'
multus_cluster_net_interface: 'enp1s0f1'
worker_node_network_configuration: [
["ceph-public-net-shim-argo005","argo005.ceph.redhat.com","192.168.252.1","24","192.168.20.0/24"],
["ceph-public-net-shim-argo006","argo006.ceph.redhat.com","192.168.252.2","24","192.168.20.0/24"],
["ceph-public-net-shim-argo007","argo007.ceph.redhat.com","192.168.252.3","24","192.168.20.0/24"],
]
REPORTING:
polarion:
deployment_id: 'OCS-2510'
25 changes: 16 additions & 9 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,28 +1018,35 @@ def deploy_ocs_via_operator(self, image=None):
nmstate_obj = NMStateInstaller()
nmstate_obj.running_nmstate()
logger.info("Configure NodeNetworkConfigurationPolicy on all worker nodes")
network_workers = config.ENV_DATA["worker_node_network_configuration"]
for worker_network_configuration in network_workers:
worker_node_names = get_worker_nodes()
for worker_node_name in worker_node_names:
worker_network_configuration = config.ENV_DATA["baremetal"]["servers"][
worker_node_name
]
node_network_configuration_policy = templating.load_yaml(
constants.NODE_NETWORK_CONFIGURATION_POLICY
)
node_network_configuration_policy["spec"]["nodeSelector"][
"kubernetes.io/hostname"
] = worker_network_configuration[1]
node_network_configuration_policy["metadata"][
"name"
] = worker_network_configuration[0]
] = worker_network_configuration[
"node_network_configuration_policy_name"
]
node_network_configuration_policy["metadata"]["name"] = worker_node_name
node_network_configuration_policy["spec"]["desiredState"]["interfaces"][
0
]["ipv4"]["address"][0]["ip"] = worker_network_configuration[2]
]["ipv4"]["address"][0]["ip"] = worker_network_configuration[
"node_network_configuration_policy_ip"
]
node_network_configuration_policy["spec"]["desiredState"]["interfaces"][
0
]["ipv4"]["address"][0]["prefix-length"] = worker_network_configuration[
3
"node_network_configuration_policy_prefix_length"
]
node_network_configuration_policy["spec"]["desiredState"]["routes"][
"config"
][0]["destination"] = worker_network_configuration[4]
][0]["destination"] = worker_network_configuration[
"node_network_configuration_policy_destination_route"
]
public_net_yaml = tempfile.NamedTemporaryFile(
mode="w+", prefix="multus_public", delete=False
)
Expand Down

0 comments on commit 0f6dce4

Please sign in to comment.