Bug 6987

Summary: Context broker fails on cluster document without <requires> element
Product: Nimbus Reporter: David LaBissoniere <labisso@uchicago.edu>
Component: Context brokerAssignee: Tim Freeman <tfreeman@mcs.anl.gov>
Status: RESOLVED FIXED    
Severity: normal CC: pauloricardomg@gmail.com, workspace-dev@globus.org
Priority: P3    
Version: unspecified   
Target Milestone: 2.4   
Hardware: PC   
OS: All   
Bug Depends on:    
Bug Blocks: 6981    

Description From 2010-03-22 12:22:27
The following cluster document results in failure to contextualize and an error
on the context broker.

<cluster xmlns="http://www.globus.org/2008/06/workspace/metadata/logistics">
  <workspace>
    <name>head-node</name>
    <image>lenny-vm.raw.gz</image>
    <quantity>1</quantity>
    <nic wantlogin="true">public</nic>
    <ctx>
      <provides>
    <identity />
    <role>head-node</role>
      </provides>
      <requires>
    <identity />
    <role name="compute-node" hostname="true" pubkey="true" />
      </requires>
    </ctx>
  </workspace>

  <workspace>
    <name>compute-nodes</name>
    <image>lenny-vm.raw.gz</image>
    <quantity>1</quantity>
    <nic>public</nic>
    <ctx>
      <provides>
        <identity />
        <role>compute-node</role>
      </provides>
    </ctx>
  </workspace>
</cluster>

The error on broker log is:
"Blackboard is not aware of node with ID #13"

After adding an empty requires block to the compute-nodes ctx block, it works.
------- Comment #1 From 2010-05-04 15:06:54 -------
Possible bug fix in this commit (pauloricardomg fork):
http://github.com/pauloricardomg/nimbus/commit/192577f632ac2df3e382e15b676d1671667affae

Thanks to David LaBissoniere for helping to find the bug.
------- Comment #2 From 2010-05-05 11:18:27 -------
Paulo Ricardo Motta Gomes contributed a fix for this bug. It has been pulled
into master:

http://github.com/nimbusproject/nimbus/commit/192577f632ac2df3e382e15b676d1671667affae