red-hat-storage / ocs-ci

https://ocs-ci.readthedocs.io/en/latest/
MIT License
108 stars 166 forks source link

test_validate_topology_configuration - tune worker_group_labels_not_equal to patternfly5 changes #9521

Open DanielOsypenko opened 8 months ago

DanielOsypenko commented 8 months ago

https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#ocs/launches/632/18393/894276/894283/log

@tier3 @bugzilla("2209251") @bugzilla("2233027") @polarion_id("OCS-4901") def test_validate_topology_configuration( self, setup_ui_class, teardown_depl_busybox, ): """ Test to validate configuration of ODF Topology for internal and external deployments, cloud based deployments and on-prem deployments also for post-upgrade scenarios.

Steps:
1. Open Topology tab
2. Read Node level of Topology - Cluster name, Number of nodes and their names, Zone/Rack name of each node,
    node filtering bar, search bar
3. Open Topology entering to each Node and read Deployment of each Topology
4. Compare gathered information from UI to configuration gathered from oc commands

Test verifies requirements:
OCS-4888        Deploy ODF internal mode cluster and verify Topology represented `oc get CephCluster`
    correctly when clicking on Data Foundation menu, check Canvas representation
OCS-4890        Update ODF from version 4.12 to version 4.13 and verify Topology represented correctly when
    clicking on Data Foundation menu
OCS-4891        Clustername from Topology equals to the name from 'oc get CephCluster'
OCS-4892        Zone of each node from Topology equals description of the node, e.g label zone: zone_1
OCS-4893        Rack of each node from Topology equals description of the node, e.g label rack: rack_1
OCS-4894        When Topology is opened on Deployment level the Text field filters out deployment element,
    the rest elements should disapear from Topology
OCS-4899        When Topology is opened on Deployment level the Path represents selected node name from
    selected storage cluster name. Nodes selection from dropdown represents content of selected node.
    Right btn click on storage cluster name returns to Node/Rack Topology representation.
OCS-4895        Node bar on the Deployment Topology filters out the node by text input
OCS-4906        Add deployment to ODF cluster and verify that Topology represents added deployment
OCS-4907        Delete deployment from ODF cluster and verify that Topology represents that deployment
"""

topology_tab = PageNavigator().nav_odf_default_page().nav_topology_tab()

topology_deviation = topology_tab.validate_topology_configuration()

if len(topology_deviation):

  pytest.fail(
        "got deviation in topology configuration, at least one check failed\n"
        f"{topology_deviation}"
    )

E Failed: got deviation in topology configuration, at least one check failed E {'worker_group_labels_not_equal': True}

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.

DanielOsypenko commented 4 months ago

frequent issue when ocs-storagecluster label mixed with rack labels image https://reportportal-ocs4.apps.ocp-c1.prod.psi.redhat.com/ui/#ocs/launches/678/22636/1084612/1084618/log

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs.

DanielOsypenko commented 3 weeks ago

although test has stabilized with 70% passed, we still have issues image

E       selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element ... is not clickable at point (2084, 1475). Other element would receive the click: 
E         (Session info: chrome=129.0.6668.100)
locator = ("(//[@class='pf-topology__node__label']//[contains(text(), 'j-087vi1cs33-t3-lldwn-worker-0-6wbkf')]/parent::/parent::/parent::/parent:://*[@class='pf-topology__node__decorator'])[2]", 'xpath')
...
tests/cross_functional/ui/test_odf_topology.py:119: 
ocs_ci/ocs/ui/page_objects/odf_topology_tab.py:783: in validate_topology_configuration
    deployment_topology = self.nodes_view.nav_into_node(
ocs_ci/utility/retry.py:31: in f_retry
    return f(args, *kwargs)
ocs_ci/ocs/ui/page_objects/odf_topology_tab.py:969: in nav_into_node
    self.do_click(loc, 60, True)
DanielOsypenko commented 3 weeks ago

rook-ceph-crashcollector-j-086vi1cs33-t3-7rnt2-worker-0-5qjqf is present on UI but not present on CLI something with labels No opened bugs, and it is not a bug RP - https://url.corp.redhat.com/48849ee

[2024-09-18T18:21:50.438Z] 14:21:50 - MainThread - ocs_ci.ocs.ui.base_ui - ERROR  - deployments of the node 'j-086vi1cs33-t3-7rnt2-worker-0-5qjqf' from UI do not match deployments from CLI
[2024-09-18T18:21:50.438Z] deployments_list_cli = '['csi-rbdplugin-provisioner', 'noobaa-operator', 'rook-ceph-exporter-j-086vi1cs33-t3-7rnt2-worker-0-5qjqf', 'rook-ceph-mds-ocs-storagecluster-cephfilesystem-b', 'rook-ceph-mgr-b', 'rook-ceph-mon-b', 'rook-ceph-osd-0', 'rook-ceph-tools']'
[2024-09-18T18:21:50.438Z] deployments_list_ui = '['csi-rbdplugin-provisioner', 'noobaa-operator', 'rook-ceph-crashcollector-j-086vi1cs33-t3-7rnt2-worker-0-5qjqf', 'rook-ceph-exporter-j-086vi1cs33-t3-7rnt2-worker-0-5qjqf', 'rook-ceph-mds-ocs-storagecluster-cephfilesystem-b', 'rook-ceph-mgr-b', 'rook-ceph-mon-b', 'rook-ceph-osd-0', 'rook-ceph-tools']'
[2024-09-18T18:21:53.689Z] 14:21:53 - MainThread - ocs_ci.ocs.ui.base_ui - INFO  - Copy DOM file: /home/jenkins/current-cluster-dir/logs/ui_logs_dir_1726682042/dom/test_validate_topology_configuration/2024-09-18T14-21-53.068364_DOM.txt
[2024-09-18T18:21:53.944Z] 14:21:53 - MainThread - ocs_ci.ocs.ui.base_ui - ERROR  - deployments of the node 'j-086vi1cs33-t3-7rnt2-worker-0-695t5' from UI do not match deployments from CLI
[2024-09-18T18:21:53.944Z] deployments_list_cli = '['busybox-ui-test', 'csi-cephfsplugin-provisioner', 'ocs-metrics-exporter', 'ocs-operator', 'rook-ceph-exporter-j-086vi1cs33-t3-7rnt2-worker-0-695t5', 'rook-ceph-mgr-a', 'rook-ceph-mon-a', 'rook-ceph-operator', 'rook-ceph-osd-1', 'rook-ceph-rgw-ocs-storagecluster-cephobjectstore-a', 'ux-backend-server']'
[2024-09-18T18:21:53.944Z] deployments_list_ui = '['busybox-ui-test', 'csi-cephfsplugin-provisioner', 'ocs-metrics-exporter', 'ocs-operator', 'rook-ceph-crashcollector-j-086vi1cs33-t3-7rnt2-worker-0-695t5', 'rook-ceph-exporter-j-086vi1cs33-t3-7rnt2-worker-0-695t5', 'rook-ceph-mgr-a', 'rook-ceph-mon-a', 'rook-ceph-operator', 'rook-ceph-osd-1', 'rook-ceph-rgw-ocs-storagecluster-cephobjectstore-a', 'ux-backend-server']'