Hi,

Here is a patch to systeinstaller-oscar file 
/usr/lib/systeminstaller/SIS/NewDB.pm

lines 119 and 115 were commented out. Unfortunately, they are realy required by 
/usr/lib/systeminstaller/SystemInstaller/Machine.pm line 60.
If the lines are commented out, then Machine.pm line 60 will miss them and it 
will result in an undefined NUM_PROCS filed.

Halas, if this field is undefined, the api-post-deploy for torque fails line 
197: it simply ignores all nodes with this field undefined. Thus it deletes all 
nodes!!!!

Of course, for this to work, the oscar database Nodes table must set the 
cpu_num field (but this is another problem).

--
   Olivier LAHAYE
   CEA DRT/LIST/DCSI/DIR
Index: NewDB.pm
===================================================================
--- NewDB.pm	(révision 9483)
+++ NewDB.pm	(copie de travail)
@@ -112,11 +112,13 @@
                     name => "Nodes.name",
 #                     route => "Networks.gateway:Nics.node_id=Nodes.id AND Networks.n_id=Nics.network_id",
                     hostname => "Nodes.hostname",
-#                     domainname => "Nodes.dns_domain",
+                    # domainname require by SystemInstaller::Image::get_machine_listing()
+                    domainname => "Nodes.dns_domain",
 #                     arch => "Images.architecture:Nodes.image_id=Images.id",
                     imagename => "Images.name:Images.id=Nodes.image_id",
 #                     name => "Nodes.name",
-#                     proccount => "Nodes.cpu_num",
+                    # proccount require by SystemInstaller::Image::get_machine_listing() and torque api-post-deploy
+                    proccount => "Nodes.cpu_num",
                 },
            );
 
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to