Skip to content

Commit

Permalink
ignore failure in Ingress Node Firewall deployment (#10471)
Browse files Browse the repository at this point in the history
- extend timeout for Ingress Node Firewall deployment
- ignore any failure in the deployment and configuration, to not break
  whole deployment

Signed-off-by: Daniel Horak <[email protected]>
  • Loading branch information
dahorak authored Sep 13, 2024
1 parent 348b59a commit 5a6db76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,12 @@ def post_ocp_deploy(self):
ibmcloud.label_nodes_region()
# configure Ingress Node Firewall and restrict SSH access to nodes
if config.ENV_DATA.get("restrict_ssh_access_to_nodes", False):
restrict_ssh_access_to_nodes()
try:
restrict_ssh_access_to_nodes()
except Exception as err:
logger.warning(
f"Ingress Node Firewall deployment and SSH access to nodes restriction failed: {err}"
)

def label_and_taint_nodes(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion ocs_ci/deployment/ingress_node_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def verify_csv_status(self):
"""
for csv in TimeoutSampler(
timeout=900,
timeout=1800,
sleep=15,
func=get_csvs_start_with_prefix,
csv_prefix=constants.INGRESS_NODE_FIREWALL_CSV_NAME,
Expand Down

0 comments on commit 5a6db76

Please sign in to comment.