Node Build and Configuration Notebook - page 40 of 55

EditDeleteAnnotateNotarize
First PagePrevious PageNext PageLast PageTable of ContentsSearch

Date and Author(s)

build system schema and examples

  
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">  
  
 <xsd:annotation>  
  <xsd:documentation xml:lang="en">  
   Build System component schema  
   SciDAC SSS project, 2003 Andrew Lusk alusk@uiuc.edu  
  </xsd:documentation>  
 </xsd:annotation>  
  
 <xsd:element name="get-node-software" type="BSGetType"/>  
 <xsd:element name="get-node-software-results" type="BSGetResultType"/>  
  
 <xsd:element name="set-node-software" type="BSSetType"/>  
 <xsd:element name="set-node-software-results" type="BSSetResultType"/>  
  
 <xsd:element name="add-node-software" type="BSAddType"/>  
 <xsd:element name="add-node-software-results" type="BSAddResultType"/>  
  
 <xsd:element name="del-node-software" type="BSDelType"/>  
 <xsd:element name="del-node-software-results" type="BSDelResultType"/>  
  
 <xsd:element name="build-node" type="BSGetType"/>  
 <xsd:element name="build-node-results" type="BSGetResultType"/>  
  
 <xsd:element name="get-tag-info" type="BSTagGetType"/>  
 <xsd:element name="get-tag-info-results" type="BSTagGetResultType"/>  
  
 <xsd:element name="set-tag-info" type="BSTagSetType"/>  
 <xsd:element name="set-tag-info-results" type="BSTagSetResultType"/>  
  
 <xsd:element name="add-tag-info" type="BSTagAddType"/>  
 <xsd:element name="add-tag-info-results" type="BSTagAddResultType"/>  
  
 <xsd:element name="del-tag-info" type="BSTagDelType"/>  
 <xsd:element name="del-tag-info-results" type="BSTagDelResultType"/>  
  
 <xsd:complexType name="BSEmptyNodeSoftwareType">  
  <xsd:attribute name="node" type="xsd:string" use="optional"/>  
  <xsd:attribute name="mayor" type="xsd:string" use="optional"/>  
  <xsd:attribute name="kernel" type="xsd:string" use="optional"/>  
  <xsd:attribute name="kernel_opts" type="xsd:string" use="optional"/>  
  <xsd:attribute name="image" type="xsd:string" use="optional"/>  
  <xsd:attribute name="action" type="xsd:string" use="optional"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSFullNodeSoftwareType">  
  <xsd:attribute name="node" type="xsd:string" use="required"/>  
  <xsd:attribute name="mayor" type="xsd:string" use="required"/>  
  <xsd:attribute name="kernel" type="xsd:string" use="required"/>  
  <xsd:attribute name="kernel_opts" type="xsd:string" use="required"/>  
  <xsd:attribute name="image" type="xsd:string" use="required"/>  
  <xsd:attribute name="action" type="xsd:string" use="required"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagFullInfoType">  
  <xsd:attribute name="node" type="xsd:string" use="required"/>  
  <xsd:attribute name="tag" type="xsd:string" use="required"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagEmptyInfoType">  
  <xsd:attribute name="node" type="xsd:string" use="optional"/>  
  <xsd:attribute name="tag" type="xsd:string" use="optional"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSGetResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSFullNodeSoftwareType"/>  
  </xsd:choice>  
 </xsd:complexType>  
 <xsd:complexType name="BSSetResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSFullNodeSoftwareType"/>  
  </xsd:choice>  
  <xsd:attribute name="node" type="xsd:string" use="optional"/>  
  <xsd:attribute name="mayor" type="xsd:string" use="optional"/>  
  <xsd:attribute name="kernel" type="xsd:string" use="optional"/>  
  <xsd:attribute name="kernel_opts" type="xsd:string" use="optional"/>  
  <xsd:attribute name="image" type="xsd:string" use="optional"/>  
  <xsd:attribute name="action" type="xsd:string" use="optional"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSAddResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSFullNodeSoftwareType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSDelResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSFullNodeSoftwareType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSGetType">  
  <xsd:choice minOccurs="1" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSEmptyNodeSoftwareType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSSetType">  
  <xsd:choice minOccurs="1" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSEmptyNodeSoftwareType"/>  
  </xsd:choice>  
  <xsd:attribute name="node" type="xsd:string" use="optional"/>  
  <xsd:attribute name="mayor" type="xsd:string" use="optional"/>  
  <xsd:attribute name="kernel" type="xsd:string" use="optional"/>  
  <xsd:attribute name="kernel_opts" type="xsd:string" use="optional"/>  
  <xsd:attribute name="image" type="xsd:string" use="optional"/>  
  <xsd:attribute name="action" type="xsd:string" use="optional"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSAddType">  
  <xsd:choice minOccurs="1" maxOccurs="1">  
   <xsd:element name="node-software" type="BSEmptyNodeSoftwareType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSDelType">  
  <xsd:choice minOccurs="1" maxOccurs="unbounded">  
   <xsd:element name="node-software" type="BSEmptyNodeSoftwareType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagGetResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagFullInfoType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagSetResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagFullInfoType"/>  
  </xsd:choice>  
  <xsd:attribute name="node" type="xsd:string" use="optional"/>  
  <xsd:attribute name="tag" type="xsd:string" use="optional"/>  
 </xsd:complexType>  
 <xsd:complexType name="BSTagAddResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagFullInfoType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagDelResultType">  
  <xsd:choice minOccurs="0" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagFullInfoType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagGetType">  
  <xsd:choice minOccurs="1" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagEmptyInfoType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagSetType">  
  <xsd:choice minOccurs="1" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagEmptyInfoType"/>  
  </xsd:choice>  
  <xsd:attribute name="node" type="xsd:string" use="optional"/>  
  <xsd:attribute name="tag" type="xsd:string" use="optional"/>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagAddType">  
  <xsd:choice minOccurs="1" maxOccurs="1">  
   <xsd:element name="tag-info" type="BSTagEmptyInfoType"/>  
  </xsd:choice>  
 </xsd:complexType>  
  
 <xsd:complexType name="BSTagDelType">  
  <xsd:choice minOccurs="1" maxOccurs="unbounded">  
   <xsd:element name="tag-info" type="BSTagEmptyInfoType"/>  
  </xsd:choice>  
 </xsd:complexType>  
</xsd:schema>  
  

   
Uploaded above is the schema for the build-system component.    
   
   
Here is an information query for the build system:   
   
<get-node-software>   
  <node-software mayor="cct8m"/>   
</get-node-software>   
   
the response looks like:   
<get-node-software-results>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn228"/>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn229"/>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn230"/>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn231"/>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn232"/>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn233"/>   
  <node-software action="boot" image="chiba-rh71" kernel="2.4.9-ac9-cc" kernel_opts="console=ttyS0" mayor="cct8m" node="ccn234"/>   
</get-node-software-results>   
   
Analogous set queries to the ones mentioned for the node state manager   
on page 38 work for the build system as well.