Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Wiki / Rspecmanifestsharedexample

Rspecmanifestsharedexample

Example of an RSpec manifest for shared nodes.

In addition to other information, the manifest will give you the port number and hostname you need to log into shared nodes if they exist. Here is an example that might be returned if you asked for two shared nodes and a link between them:

<manifest>
  <link>
    <bandwidth>100000</bandwidth>
    <interface_ref>
      <component_urn>urn:publicid:IDN+emulab.net+interface+pc102:lo0</component_urn>
      <sliver_urn>urn:publicid:IDN+emulab.net+sliver+2356</sliver_urn>
      <sliver_uuid>98fa555d-e90a-11de-81f1-001143e453fe</sliver_uuid>
      <virtual_interface_id>virt-0</virtual_interface_id>
      <virtual_node_id>shared2</virtual_node_id>
    </interface_ref>
    <interface_ref>
      <component_urn>urn:publicid:IDN+emulab.net+interface+pc102:lo0</component_urn>
      <sliver_urn>urn:publicid:IDN+emulab.net+sliver+2357</sliver_urn>
      <sliver_uuid>99882d6f-e90a-11de-81f1-001143e453fe</sliver_uuid>
      <virtual_interface_id>virt-0</virtual_interface_id>
      <virtual_node_id>shared1</virtual_node_id>
    </interface_ref>
    <link_type>ethernet</link_type>
    <sliver_urn>urn:publicid:IDN+emulab.net+sliver+2355</sliver_urn>
    <sliver_uuid>98abd192-e90a-11de-81f1-001143e453fe</sliver_uuid>
    <virtual_id>link0</virtual_id>
  </link>
  <node>
    <component_manager_urn>urn:publicid:IDN+emulab.net+authority+cm</component_manager_urn>
    <component_manager_uuid>28a10955-aa00-11dd-ad1f-001143e453fe</component_manager_uuid>
    <component_urn>urn:publicid:IDN+emulab.net+node+pcvm102-1</component_urn>
    <component_uuid>de99087c-773e-102b-8eb4-001143e453fe</component_uuid>
    <exclusive>0</exclusive>
    <hostname>pcvm102-1.emulab.net</hostname>
    <interface>
      <component_id>lo0</component_id>
      <virtual_id>virt-0</virtual_id>
    </interface>
    <interface>
      <virtual_id>control</virtual_id>
    </interface>
    <node_type>
      <type_name>pcvm</type_name>
      <type_slots>1</type_slots>
    </node_type>
    <sliver_urn>urn:publicid:IDN+emulab.net+sliver+2353</sliver_urn>
    <sliver_uuid>96380620-e90a-11de-81f1-001143e453fe</sliver_uuid>
    <sshdport>34106</sshdport>
    <virtual_id>shared1</virtual_id>
    <virtualization_subtype>emulab-openvz</virtualization_subtype>
    <virtualization_type>emulab-vnode</virtualization_type>
  </node>
  <node>
    <component_manager_urn>urn:publicid:IDN+emulab.net+authority+cm</component_manager_urn>
    <component_manager_uuid>28a10955-aa00-11dd-ad1f-001143e453fe</component_manager_uuid>
    <component_urn>urn:publicid:IDN+emulab.net+node+pcvm102-2</component_urn>
    <component_uuid>de99087c-773e-102b-8eb4-001143e453fe</component_uuid>
    <exclusive>0</exclusive>
    <hostname>pcvm102-2.emulab.net</hostname>
    <interface>
      <component_id>lo0</component_id>
      <virtual_id>virt-0</virtual_id>
    </interface>
    <interface>
      <virtual_id>control</virtual_id>
    </interface>
    <node_type>
      <type_name>pcvm</type_name>
      <type_slots>1</type_slots>
    </node_type>
    <sliver_urn>urn:publicid:IDN+emulab.net+sliver+2354</sliver_urn>
    <sliver_uuid>96874b3c-e90a-11de-81f1-001143e453fe</sliver_uuid>
    <sshdport>34107</sshdport>
    <virtual_id>shared2</virtual_id>
    <virtualization_subtype>emulab-openvz</virtualization_subtype>
    <virtualization_type>emulab-vnode</virtualization_type>
  </node>
  <type>request</type>
  <valid_until>2009-12-15T00:43:49</valid_until>
  <xmlns>http://www.protogeni.net/resources/rspec/0.1</xmlns>
</manifest>

Note that each shared node has both 'hostname' and 'sshdport' elements which let you both the host and port you need to log into them.