Bug 1845815
| Summary: | Console crash when creating EtcdRestore instance | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> | |
| Component: | Management Console | Assignee: | Jon Jackson <jonjacks> | |
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 4.5 | CC: | aos-bugs, jhadvig, jokerman | |
| Target Milestone: | --- | |||
| Target Release: | 4.6.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
Cause: On the create EtcdRestore form, the k8sResourceSelector for one of the fields was not being passed a k8s model.
Consequence: A runtime error occurred when trying to access a property of a non-existent model.
Fix: Add a check to ensure that the model is defined before accessing its properties, and only render the resulting k8s resource dropdown if the model exists.
Result: No runtime error is encountered on the EtcdRestore creation page, and the k8s resource dropdown that was causing the problem is omitted from the form.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1847277 (view as bug list) | Environment: | ||
| Last Closed: | 2020-10-27 16:06:07 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1847277 | |||
'Create EtcdRestore' button works now. Checked the button from 3 places: 1) Installed Operaotor -> etcd detail page -> Create Instance 2) Installed Operaotor -> etcd -> All Instance page -> Create New -> etcd Restore 3) Installed Operaotor -> etcd -> etcd Restore page -> Create EtcdRestore Verified on 4.6.0-0.nightly-2020-06-12-084204 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196 |
Description of problem: Version-Release number of selected component (if applicable): 4.5.0-0.nightly-2020-06-09-201617 How reproducible: Always Steps to Reproduce: 1. subscribe etcd Operator to one project and wait until etcd Operator is successfully subscribed 2. create EtcdRestore instance via Operators -> Installed Operators -> etcd -> click on EtcdRestore -> click 'Create EtcdRestore' button 3. Actual results: 2. console crashed and blank page returnred TypeError: "o is undefined" Se create-operand-chunk-8f7c184d9f0ade7a8b16.min.js:1 ke create-operand-chunk-8f7c184d9f0ade7a8b16.min.js:1 a vendors~main-chunk-24ac84a45fe5cba32c70.min.js:18508 a vendors~main-chunk-24ac84a45fe5cba32c70.min.js:104 ke create-operand-chunk-8f7c184d9f0ade7a8b16.min.js:1 ke create-operand-chunk-8f7c184d9f0ade7a8b16.min.js:1 Fo vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 Ks vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 Bs vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 Ns vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 Ds vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 di vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 unstable_runWithPriority vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161683 li vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 di vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 pi vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 Is vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 notify vendors~main-chunk-24ac84a45fe5cba32c70.min.js:34831 notifyNestedSubs vendors~main-chunk-24ac84a45fe5cba32c70.min.js:34831 notifySubscribers vendors~main-chunk-24ac84a45fe5cba32c70.min.js:102001 handleChangeWrapper vendors~main-chunk-24ac84a45fe5cba32c70.min.js:34831 v vendors~main-chunk-24ac84a45fe5cba32c70.min.js:18508 b main-chunk-de4ff261cc3bde5ad14a.min.js:1 dispatch vendors~main-chunk-24ac84a45fe5cba32c70.min.js:18508 l main-chunk-de4ff261cc3bde5ad14a.min.js:1 vendors~main-chunk-24ac84a45fe5cba32c70.min.js:161389 Uncaught error unhandledrejection { target: Window, isTrusted: true, promise: Promise { "rejected" }, reason: TypeError, srcElement: Window, currentTarget: Window, eventPhase: 2, bubbles: false, cancelable: true, returnValue: true, … } Expected results: 2. operand creation form is loaded succcessfully Additional info: