You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the UI, on the Instances screen, the Quickview popup window and the Details window do not display the 'Reset SSH Key Pair' button for VMs in a running state. They only display when the VM is in a stopped state. This is inconsistent with the 'Reset Password' button behaviour, where it displays in both VM states: running and stopped. This fixes the issue so that the 'Reset SSH Key Pair' button also displays in both VM states.
Expected Behaviour:
In the UI, on the Instances screen, the Quickview popup window and the Details window must display the 'Reset SSH Key Pair' button in both VM states: running and stopped. When a user clicks on the 'Reset SSH Key Pair' button and a VM is in a running state, it will display a message "Vm xxx should be stopped to do SSH Key reset".
Actual Behaviour:
In the UI, on the Instances screen, the Quickview popup window and the Details window do not display the 'Reset SSH Key Pair' button for VMs in a running state. It only displays when the VM is in a stopped state.
Steps to reproduce:
Quickview popup window:
In the Cloudstack UI, in the left pane, click on the Instances tab. Choose a VM that is in a running state and hover the mouse over the Quickview link so that the Quickview popup window is displayed. The 'Reset SSH Key Pair' button does not display among the other allowed actions.
Details window:
In the Cloudstack UI, in the left pane, click on the Instances tab. Choose a VM that is in a running state and click the mouse on the VM name to display the Details window. The 'Reset SSH Key Pair' button does not display among the other allowed actions.
Types of changes
Breaking change (fix or feature that would cause existing functionality to change)
New feature (non-breaking change which adds functionality)
Bug fix (non-breaking change which fixes an issue)
Enhancement (improves an existing feature and functionality)
Cleanup (Code refactoring and cleanup, that may add test cases)
GitHub Issue/PRs
Screenshots (if appropriate):
How Has This Been Tested?
Manually (see screenshots above):
Quickview popup window:
In the Cloudstack UI, in the left pane, click on Instances tab. Choose a VM that is in a running state and hover the mouse over the Quickview link so that the Quickview popup window is displayed. The 'Reset SSH Key Pair' button now displays among the other allowed actions. After clicking on the button, it displays a message "Vm xxx should be stopped to do SSH Key reset".
Details window:
In the Cloudstack UI, in the left pane, click on Instances tab. Choose a VM that is in a running state and click the mouse on the VM name to display the Details window. The 'Reset SSH Key Pair' button does now display among the other allowed actions. After clicking on the button, it displays a message "Vm xxx should be stopped to do SSH Key reset".
We have two options here. We can add the button as this PR is doing. Or, we can remove the reset password button as well when the VM is not in stopped state.
I mean, should we show a button that the user cannot use?
Yes, the other option could also be feasible. Although, there is an argument that a lot of people figure out what they can do by looking at the buttons. Perhaps displaying a greyed-out disabled button would also be an option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In the UI, on the Instances screen, the Quickview popup window and the Details window do not display the 'Reset SSH Key Pair' button for VMs in a running state. They only display when the VM is in a stopped state. This is inconsistent with the 'Reset Password' button behaviour, where it displays in both VM states: running and stopped. This fixes the issue so that the 'Reset SSH Key Pair' button also displays in both VM states.
Expected Behaviour:
In the UI, on the Instances screen, the Quickview popup window and the Details window must display the 'Reset SSH Key Pair' button in both VM states: running and stopped. When a user clicks on the 'Reset SSH Key Pair' button and a VM is in a running state, it will display a message "Vm xxx should be stopped to do SSH Key reset".
Actual Behaviour:
In the UI, on the Instances screen, the Quickview popup window and the Details window do not display the 'Reset SSH Key Pair' button for VMs in a running state. It only displays when the VM is in a stopped state.
Steps to reproduce:
In the Cloudstack UI, in the left pane, click on the Instances tab. Choose a VM that is in a running state and hover the mouse over the Quickview link so that the Quickview popup window is displayed. The 'Reset SSH Key Pair' button does not display among the other allowed actions.
In the Cloudstack UI, in the left pane, click on the Instances tab. Choose a VM that is in a running state and click the mouse on the VM name to display the Details window. The 'Reset SSH Key Pair' button does not display among the other allowed actions.
Types of changes
GitHub Issue/PRs
Screenshots (if appropriate):
How Has This Been Tested?
Manually (see screenshots above):
In the Cloudstack UI, in the left pane, click on Instances tab. Choose a VM that is in a running state and hover the mouse over the Quickview link so that the Quickview popup window is displayed. The 'Reset SSH Key Pair' button now displays among the other allowed actions. After clicking on the button, it displays a message "Vm xxx should be stopped to do SSH Key reset".
In the Cloudstack UI, in the left pane, click on Instances tab. Choose a VM that is in a running state and click the mouse on the VM name to display the Details window. The 'Reset SSH Key Pair' button does now display among the other allowed actions. After clicking on the button, it displays a message "Vm xxx should be stopped to do SSH Key reset".
Checklist:
Testing