Skip to content

waitForMgmt errors are not caught #17271

@mantis-toboggan-md

Description

@mantis-toboggan-md

Setup

  • Rancher version: v2.13.4
  • Rancher UI Extensions: n/a
  • Browser type & version: ff

Describe the bug
When waitForMgmt throws errors (eg when the management cluster being searched for does not exist) the errors are not caught and the whole page breaks.

To Reproduce
This came out of testing the error handling in the virtual clusters extension. Modify the waitForMgmt function to cause the find dispatch to always fail, eg change clusterName to a garbage string. Next, try to create a generic rke2 cluster: this will trigger a call to waitForMgmt

Result
The error thrown by waitForMgmt is not caught.

Expected Result
The error should be caught. It looks like the code originally intended to silently catch errors here, but that is not working.

Screenshots

Additional context

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions