Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 292049 - Enhancing PTP 3.0 to support SLURM resource management system
Summary: Enhancing PTP 3.0 to support SLURM resource management system
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM (show other bugs)
Version: 3.0   Edit
Hardware: All Linux
: P3 enhancement (vote)
Target Milestone: 3.0   Edit
Assignee: Jie Jiang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 10:17 EDT by Jie Jiang CLA
Modified: 2011-05-14 06:41 EDT (History)
2 users (show)

See Also:


Attachments
patch and icon files to enhance PTP 3.0 to support SLURM rms (42.78 KB, application/x-compressed-tar)
2009-10-12 10:17 EDT, Jie Jiang CLA
g.watson: iplog+
Details
Fixed newer version of the patch file (143.08 KB, patch)
2009-10-13 11:31 EDT, Jie Jiang CLA
g.watson: iplog+
Details | Diff
New SLURM support patch generated as required (330.45 KB, patch)
2009-11-07 19:43 EST, Jie Jiang CLA
g.watson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jie Jiang CLA 2009-10-12 10:17:01 EDT
Created attachment 149364 [details]
patch and icon files to enhance PTP 3.0 to support SLURM rms

This enhancement includes a patch and some icon files to make CVS HEAD (and
hopefully, the upcoming PTP 3.0) to support SLURM rms. 

This implementation includes some bug fixes from previous version for PTP 2.1,
and reimplements some UI elements for PTP 3.0.

This release supports node monitoring, job monitoring, (debug)job launch, and
(debug)job control.

Please read the README file included in the compressed package to apply the
patch to CVS HEAD code.
Comment 1 Jie Jiang CLA 2009-10-13 11:31:19 EDT
Created attachment 149448 [details]
Fixed newer version of the patch file

This newer patch fixes some bugs in the previous patch file.
Please replace the patch file in the previously submitted zip package with THIS patch file.
Comment 2 Jie Jiang CLA 2009-10-16 11:46:23 EDT
I, Jie Jiang, declare that I developed 100% of the attached code from scratch, and I have the rights to donate it to Eclipse, and I am willing to contribute the content under the terms of EPL.
Comment 3 Greg Watson CLA 2009-10-30 17:57:28 EDT
This has now been approved, however I need you to make some changes and regenerate the whole patch (including images). Please use the "Team>Create Patch..." context menu to create the patch file, then add it to this bug.

First, for copyright notices like the following, please change the text "NUDT school of computer - 605 staff room" to "Jie Jang, National University of Defense Technology".

+ # Copyright (c) 2008,2009 School of Computer Science,National University 
+ # of Defense Technology,Changsha,China.All rights reserved. This program
+ # and the accompanying materials are made available under the terms of 
+ # the Eclipse Public License v1.0 which accompanies this distribution,
+ # and is available at http://www.eclipse.org/legal/epl-v10.html
+ # Contributors:
+ # NUDT school of computer - 605 staff room

Second, your patch modifies the JobAttributes and NodeAttributes classes. There is no need to do this. Instead, you should create your own classes (e.g. SLURMJobAttributes, SLURMNodeAttributes) in org.eclipse.ptp.slurm.core, then initialize your attributes in doCreateRuntimeSystem():

	protected IRuntimeSystem doCreateRuntimeSystem() {
		AttributeDefinitionManager attrDefMgr = getAttributeDefinitionManager();
		attrDefMgr.setAttributeDefinitions(SLURMJobAttributes.getDefaultAttributeDefinitions());
		attrDefMgr.setAttributeDefinitions(SLURMNodeAttributes.getDefaultAttributeDefinitions());
		...
	}

Third, you added your images to RMModelImages. You should provide your own SLURMModelImages class for this.

Finally, you modified proxy_attr.h and added your attributes. These should be kept internal to your slurm proxy.

Let me know if you have any questions.
Comment 4 Jie Jiang CLA 2009-11-07 19:43:18 EST
Created attachment 151636 [details]
New SLURM support patch generated as required


This patch is generated after changing some source codes as required using Eclipse->Team->Creat patch... .
It includes both the source code patch and binary GIF image files.

I'm not sure if the binary image files included in the patch file works, since diff can't handle binary file. If not, I can upload the source code patch and binary image files separately.
Comment 5 Greg Watson CLA 2009-11-20 16:40:29 EST
Committed. The only change I made was to move the icons to the slurm plugin. Also made some changes to remove dependency on rm.remote plugin which has been deprecated.