aws-samples / pcluster-manager

Manage AWS ParallelCluster through an easy to use web interface
https://pcluster.cloud
Apache License 2.0
65 stars 27 forks source link

Fix storage tab crashing when headnode is not available yet #478

Closed mendaomn closed 1 year ago

mendaomn commented 1 year ago

Description

This PR fixes an issue causing the Storage tab to crash the app when the filesystem is not ready yet.

The root cause was the construction of link to the filesystem, which depends on the head node information to be available. More precisely, the headNode.instanceId property access cases an error due to the headNode being undefined.

The fix is as follows:

See screenshots below:

Link not available due to missing information:

image

Link available:

image

Changes

Changelog entry

Fix storage tab crashing when headnode is not available yet

How Has This Been Tested?

PR Quality Checklist

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.