The restart button was displayed even when restarting the instance was not a supported action. For RHEV and vSphere instances, this meant the restart button was clickable, but no action occurred. This update removes the restart button if the action is not supported. RHEV instances no longer show the restart button, and vSphere instances display the button and restarts the instance if clicked.
Description of problem:
On providers that do not support restarting instances yet (RHEV, vSphere) the Restart button is able to be clicked, but does not do anything. This is confusing to the user.
To reproduce:
1. Launch two instances. One to RHEV provider and one to EC2 provider.
2. Wait until instances are running.
3. Select RHEV instance and select "restart".
a. Nothing happens in the conductor UI.
b. Nothing happens in the RHEV-M interface.
4. Select Amazon instance select "restart".
a. Instance restarts in EC2
Expected results:
On of the following should be done:
1. check the provider when displaying instance information and remove the ability to press restart (hide it or grey it out) on providers that do not support restarting instances (RHEV, vSphere).
2. Make the restart button restart the instances on those providers.
I am expecting that #1 is the easier solution in the short term.
On master and 1.1:
commit 99e964aad3270176beaec1ec0110da72038610be
Author: Tomáš Hrčka <thrcka>
Date: Wed Oct 3 16:17:10 2012 +0200
BZ859954 - Don't display buttons on instance card if actions are not supported
https://bugzilla.redhat.com/show_bug.cgi?id=859954
Signed-off-by: Matt Wagner <matt.wagner>
(cherry picked from commit f95eb6569d4917cd4782b014f08c2dddb8b2a720)
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHEA-2012-1516.html