incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alfredo Moralejo <amora...@redhat.com>
Subject RHEVM driver problem with condor
Date Mon, 02 May 2011 18:30:30 GMT
Hi,

I've found a rproblem with vm name when using deltacloud with condor as 
condor uses condor GlobalJobId as vm name what is too long for RHEV.

This patch was already aplied in revision 1089029 but was removed later. 
This patch uses only the last part of the GlobalJobId for vm name:

Index: lib/deltacloud/drivers/rhevm/rhevm_driver.rb
===================================================================
--- lib/deltacloud/drivers/rhevm/rhevm_driver.rb    (revision 1098668)
+++ lib/deltacloud/drivers/rhevm/rhevm_driver.rb    (working copy)
@@ -169,7 +169,9 @@
      client = new_client(credentials)
      params = {}
      safely do
-      params[:name] = opts[:name] if opts[:name]
+      # FIXME: Condor is using GlobalJobId here as a name, which is 
malformed
+      # and contains >50 characters
+      params[:name] = opts[:name].split("#").last if opts[:name]
        params[:realm_id] = opts[:realm_id] if opts[:realm_id]
        params[:hwp_id] = opts[:hwp_id] if opts[:hwp_id]
        params[:hwp_memory] = opts[:hwp_memory] if opts[:hwp_memory]

Regards,

Alfredo Moralejo

Mime
View raw message