On 08/27/2010 02:35 PM, Ian Main wrote:
> On Fri, 2010-08-27 at 09:14 -0400, Chris Lalancette wrote:
>> On 08/26/10 - 07:14:29PM, Mohammed Morsi wrote:
>>> As with the previous revisions make sure to add the following
>>> to /var/lib/condor/condor_config.local
>>>
>>>     EVENT_LOG=$(LOG)/EventLog
>>>     EVENT_LOG_USE_XML=True
>>>     
>>> EVENT_LOG_JOB_AD_INFORMATION_ATTRS=Owner,GlobalJobId,Cmd,JobStartDate,JobCurrentStartDate,JobFinishedHookDone
>>>
>>> and set CONDOR_HOST appropriately. Make sure to restart condor after these 
>>> changes.
>>> ---
>>>   src/app/models/instance_event.rb                   |   26 +++++
>>>   src/app/util/condormatic.rb                        |    2 +-
>>>   .../20100810221250_create_instance_events.rb       |   34 ++++++
>>>   src/dbomatic/dbomatic.rb                           |  114 
>>> ++++++++++++++++++++
>>>   4 files changed, 175 insertions(+), 1 deletions(-)
>>>   create mode 100644 src/app/models/instance_event.rb
>>>   create mode 100644 src/db/migrate/20100810221250_create_instance_events.rb
>>>   create mode 100644 src/dbomatic/dbomatic.rb
>> ACK.  We can deal with the external->internal event mapping later.  I've now
>> pushed this, except...
>>
>> <snip>
>>
>>> diff --git a/src/app/util/condormatic.rb b/src/app/util/condormatic.rb
>>> index 3491f7f..9ac4b45 100644
>>> --- a/src/app/util/condormatic.rb
>>> +++ b/src/app/util/condormatic.rb
>>> @@ -41,7 +41,7 @@ def condormatic_instance_create(task)
>>>       pipe.puts "log = #{job_log}\n"
>>>       Rails.logger.info "log = #{job_log}\n"
>>>
>>> -    requirements = "requirements = hardwareprofile == 
>>> \"#{instance.hardware_profile.id}\"&&  image == \"#{instance.image.id}\""
>>> +    requirements = "requirements = hardwareprofile == 
>>> \"#{instance.hardware_profile.external_key}\"&&  image == 
>>> \"#{instance.image.external_key}\""
>>>       requirements += "&&  realm == \"#{realm.name}\"" if realm != nil
>>>       requirements += "\n"
>>>
>> ...this bit, which seems unrelated.
> Yeah, I don't think it'd work at all like that..
>
>       Ian
>
>
>
Ah yes, this was a relic from our debugging session last week and 
shouldn't be there.

Though that being said this was the only way I got condor to be able to 
find any matching provider to run instances on. Although something was 
still going wrong and the instances weren't starting, using the id 
results in the match being made against the hardware profile's and 
image's database id.

   -Mo
_______________________________________________
deltacloud-devel mailing list
deltacloud-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to