Skip to content

Commit

Permalink
Fix LSO UI deployment (#10371)
Browse files Browse the repository at this point in the history
* Fix LSO UI deployment

Signed-off-by: oviner <[email protected]>
  • Loading branch information
OdedViner authored Sep 6, 2024
1 parent 9f22907 commit 06bd48e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
1 change: 0 additions & 1 deletion ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,6 @@ def deploy_ocs_via_operator(self, image=None):
create_catalog_source(image)

if config.DEPLOYMENT.get("local_storage"):
cleanup_nodes_for_lso_install()
setup_local_storage(storageclass=self.DEFAULT_STORAGECLASS_LSO)

logger.info("Creating namespace and operator group.")
Expand Down
28 changes: 17 additions & 11 deletions ocs_ci/ocs/ui/deployment_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,25 +268,31 @@ def install_lso_cluster(self):

self.configure_performance()

if self.operator_name == OCS_OPERATOR:
logger.info(f"Select {constants.LOCAL_BLOCK_RESOURCE} storage class")
self.choose_expanded_mode(
mode=True, locator=self.dep_loc["storage_class_dropdown_lso"]
)
self.do_click(locator=self.dep_loc["localblock_sc"], enable_screenshot=True)
timeout_next = 30
else:
timeout_next = 600
self.do_click(
self.dep_loc["next"], enable_screenshot=True, timeout=timeout_next
sample = TimeoutSampler(
timeout=700,
sleep=40,
func=self.wait_next_button_lso,
)
if not sample.wait_for_func_status(result=True):
self.take_screenshot()
raise TimeoutExpiredError(
"Next button on LSO is not clickable after 700 seconds"
)

self.configure_encryption()

self.configure_data_protection()

self.create_storage_cluster()

def wait_next_button_lso(self):
try:
self.do_click(self.dep_loc["next"], enable_screenshot=True, timeout=20)
except Exception as e:
logger.error(f"Next button on LSO error: {e}")
return False
return True

def install_internal_cluster(self):
"""
Install Internal Cluster
Expand Down

0 comments on commit 06bd48e

Please sign in to comment.