Bug 408825 - Resources tab doesn't clear all old selections
Summary: Resources tab doesn't clear all old selections
Status: ASSIGNED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2013-05-23 11:13 EDT by Chris Navarro CLA
Modified: 2014-06-04 15:00 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Navarro CLA 2013-05-23 11:13:41 EDT
If I create a new launch configuration and do the following, I end up with a error dialog saying qstat can't run on "Local". 

1) Select Open MPI-Generic-Interactive as target system configuration
2) For connection, select Local, it asks to run a command on the target system "Local", I select yes
3. I then change my target system configuration to "edu.sdsc.trestles.torque.interactive.openmpi" and it asks if it's ok to run a command on target system "Local", I select yes.
4) I get an error message that pops up saying "Failed to execute command: /opt/torque/bin/qstat -Q -f"

It seems like when I selected the new target configuration, it should have cleared the rest of my selections out or knew that I should not be prompted yet to run a command.

This might be partially user error since I should be probably saying "No" in this case, but I think selecting another target configuration should wipe out the other selections and not pop this up.
Comment 1 Greg Watson CLA 2014-06-04 11:19:32 EDT
It seems to do this in Luna. Can you check?
Comment 2 Chris Navarro CLA 2014-06-04 13:29:13 EDT
I still see the same error with Luna.
Comment 3 Greg Watson CLA 2014-06-04 14:30:01 EDT
Ok, I wasn't using the Local button, I was using a localhost remote connection. 

What do you think the behavior should be? It seems logical to me.
Comment 4 Chris Navarro CLA 2014-06-04 14:45:20 EDT
Since everything in the resource tab depends on the target configuration selection, my initial thought was if you select a new target system configuration, then you should wipe out other selections because they might be invalidated by the new selection.

What's interesting is I only see this behavior with the "Local" option. If you select trestles.batch, then "Remote" and a connection, then switch to trestles.interactive, the connection is cleared and the UI forces you to select a connection before rebuilding the UI. I think Local should work similarly. 

On the other hand, it at least prompts you if you want to run the command on the "Local" machine, which the user could say no and then make the right selection so I'm on the fence about whether this is really a bug or the expected behavior.
Comment 5 Greg Watson CLA 2014-06-04 15:00:21 EDT
For the Remote connections, yes, the connection is cleared. I'm not sure what to do for the Local connection, however, since it can't be "cleared". It could switch to Remote and clear the connection, but that doesn't seem right to me since the user clearly wanted Local. I'm open to suggestions.