Bug 6987 - Context broker fails on cluster document without <requires> element
: Context broker fails on cluster document without <requires> element
Status: RESOLVED FIXED
: Nimbus
Context broker
: unspecified
: PC All
: P3 normal
: 2.4
Assigned To:
:
:
:
: 6981
  Show dependency treegraph
 
Reported: 2010-03-22 12:22 by
Modified: 2010-05-05 11:18 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


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