Bug 1824038 - Integration Tests: StaleElementReferenceError in OLM single-installmode scenario
Summary: Integration Tests: StaleElementReferenceError in OLM single-installmode scenario
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.7.0
Assignee: Robb Hamilton
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-15 06:38 UTC by XiaochuanWang
Modified: 2021-02-24 15:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
This is for an intergration test and not a customer-facing issue.
Clone Of:
Environment:
Last Closed: 2021-02-24 15:10:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7214 0 None closed CONSOLE-2482: Add Cypress Operator single install mode test 2021-01-07 21:24:42 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:11:53 UTC

Description XiaochuanWang 2020-04-15 06:38:14 UTC
Refer to https://search.svc.ci.openshift.org/?search=StaleElementReferenceError&maxAge=168h&context=1&type=build-log&name=&maxMatches=5&maxBytes=20971520

There is one failed log: https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_console/5029/pull-ci-openshift-console-master-e2e-gcp-console/16689/build-log.txt

StaleElementReferenceError appeared in 
suite "olmFull" -> '../packages/operator-lifecycle-manager/integration-tests/scenarios/single-installmode.scenario.ts' 
-> "Interacting with a `OwnNamespace` install mode Operator (Prometheus)"
-> displays empty message in the "All Instances" section (1 failure)

Below is the failed detail message from https://storage.googleapis.com/origin-ci-test/pr-logs/pull/openshift_console/5029/pull-ci-openshift-console-master-e2e-gcp-console/16689/build-log.txt

1) Interacting with a `OwnNamespace` install mode Operator (Prometheus) : displays empty message in the "All Instances" section
   StaleElementReferenceError: stale element reference: element is not attached to the page document
     (Session info: headless chrome=76.0.3809.0)
     (Driver info: chromedriver=76.0.3809.68 (420c9498db8ce8fcd190a954d51297672c1515d5-refs/branch-heads/3809@{#864}),platform=Linux 3.10.0-957.1.3.el7.x86_64 x86_64)
       at Object.checkLegacyResponse /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/error.js:546:15
       at parseHttpResponse /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/http.js:509:13
       at doSend.then.response /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/http.js:441:30
       at process._tickCallback internal/process/next_tick.js:68:7
   From: Task: WebElement.getText()
       at Driver.schedule /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/webdriver.js:807:17
       at WebElement.schedule_ /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/webdriver.js:2010:25
       at WebElement.getText /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/webdriver.js:2277:17
       at actionFn /go/src/github.com/openshift/console/frontend/node_modules/protractor/built/element.js:89:44
       at Array.map <anonymous>
       at actionResults.getWebElements.then /go/src/github.com/openshift/console/frontend/node_modules/protractor/built/element.js:461:65
       at ManagedPromise.invokeCallback_ /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/promise.js:1376:14
       at TaskQueue.execute_ /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/promise.js:3084:14
       at TaskQueue.executeNext_ /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/promise.js:3067:27
       at asyncRun /go/src/github.com/openshift/console/frontend/node_modules/selenium-webdriver/lib/promise.js:2927:27Error
       at ElementArrayFinder.applyAction_ /go/src/github.com/openshift/console/frontend/node_modules/protractor/built/element.js:459:27
       at ElementArrayFinder.anonymous function.args [as getText] /go/src/github.com/openshift/console/frontend/node_modules/protractor/built/element.js:91:29
       at ElementFinder.anonymous function.args [as getText] /go/src/github.com/openshift/console/frontend/node_modules/protractor/built/element.js:831:22
       at /go/src/github.com/openshift/console/frontend/packages/operator-lifecycle-manager/integration-tests/scenarios/single-installmode.scenario.ts:161:41
       at Generator.next <anonymous>
       at fulfilled /go/src/github.com/openshift/console/frontend/packages/operator-lifecycle-manager/integration-tests/scenarios/single-installmode.scenario.ts:5:58

Comment 1 Samuel Padgett 2020-04-15 13:20:36 UTC
Marking as low because this is extremely rare.

I think we have an issue where the component is unmounted/remounted unnecessarily due to the logic here:

https://github.com/spadgett/console/blob/7247a52f445dfddd16eb8145246256b4b86ab04b/frontend/packages/operator-lifecycle-manager/src/components/clusterserviceversion.tsx#L793-L802

Comment 3 Steve Goodwin 2020-05-29 19:51:04 UTC
Needs investigation

Comment 5 Jakub Hadvig 2020-07-31 14:46:38 UTC
Will fix next sprint.

Comment 8 Jakub Hadvig 2020-10-02 15:30:19 UTC
Was not able to get to this bug this sprint as we were prioritizing 4.6 blockers.

Comment 9 Jakub Hadvig 2020-10-23 13:25:57 UTC
Was not able to get to this bug this sprint as we were prioritizing 4.6 blockers.

Comment 10 David Taylor 2020-11-18 14:00:56 UTC
Reassigning to Robb as he is porting OLM tests to Cypress

Comment 11 David Taylor 2020-11-18 14:01:18 UTC
Reassigning to Robb as he is porting OLM tests to Cypress

Comment 12 Robb Hamilton 2020-11-18 21:38:35 UTC
This was fixed by porting the test over to Cypress and removing the Protractor-based test this bug was filed against.

Comment 13 Yadan Pei 2020-11-23 08:53:14 UTC
operator-install-single-namespace.spec.ts was moved to Cypress and didn't see StaleElementReferenceError in single namespace tests

https://search.ci.openshift.org/?search=StaleElementReferenceError&maxAge=48h&context=1&type=build-log&name=&maxMatches=5&maxBytes=20971520&groupBy=job

Move this bug to VERIFIED and will report bug for the errors found in CI log which I think is a different issue

Comment 16 errata-xmlrpc 2021-02-24 15:10:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:5633


Note You need to log in before you can comment on or make changes to this bug.