Changes between Version 32 and Version 33 of Internal/Infrastructure/OMF/GridServicesApi


Ignore:
Timestamp:
May 10, 2006, 3:15:38 PM (18 years ago)
Author:
faiyaz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/Infrastructure/OMF/GridServicesApi

    v32 v33  
    1 == CMC Access Control ==
     1== ORBIT WebServices API ==
    22
    33ORBIT support services have web based XML interfaces.  They all use the same framework and, therefore, have like syntax.  The services are accessed using either of the following schemes:
     
    1111}}}
    1212
    13 OR
    14  
    15 {{{
    16 http://<serviceGroup name>:5012/<serviceGroup name>/<service name>?<domain>=<domain name>&<1st_arg>=<arg_1_value>&<2nd_arg>=<arg_2_value>
    17 
    18 Currently the valid domain name scheme is <subdomain-name>.orbit-lab.org, where
    19 subdomain-name = {grid,sb1,sb2,sb3,sb4,sb5,sb6,sb7,sb8,sb9}. For instance, to turn on node1-1
    20 using the CMC (from the console of one of the sandboxes or the grid), you would issue the following:
    21 
    22 wget -O - "http://cmc:5012/cmc/nodeSetOn?domain=sb8.orbit-lab.org&nodes=[1,1..5]"
    23 
    24 For instance, to turn on node1-1 on a sandbox using the CMC (from any of the internal machines),
    25 you would issue the following:
    26 
    27 wget -O - "http://sb8.orbit-lab.org:5012/cmc/nodeSetOn?domain=sb8.orbit-lab.org&nodes=[1,1..5]"
    28 
    29 }}}
    3013The services are location aware and will manipulate the resources for that specific location.  For instance, querying the CMC to turn on node1-1 from the console on sb1 will turn on node1-1
    3114on sb1 and not any other resource.  Also, it is impossible for users in one location to issue commands for another.  For example, it is impossible to turn on nodes on the grid from the console of sb1.  One of the obvious advantages of this is experiment scripts/applications need only mention the service name to be portable.
     
    3316Below is a list of available services and their corresponding arguments.
    3417
    35 == CMC Access Control Policy ==
    36 {{{
    37 1.) Access is granted to ON (on, allOn, nodeSetOn), OFF (off, offHard, allOffHard,
    38     nodeSetOffHard, offSoft, nodeSetOffSoft, allOffSoft) and RESET (reset, nodeSetReset,
    39     allReset) services if you are in the same subdomain as the resource you are trying to
    40     control. For this case, the domain name need not be specified.
    41 
    42 2.) Access is granted to all services if you are on the same subnet as the primary CMC
    43     interface. The domain name needs to be specified in this case
    44 
    45 3.) Access is granted to STATUS (nodeStatus, allStatus) services from everywhere. The
    46     domain name needs to be specified in this case.
    47 }}}
    48 
     18== Chassis Manager Controller (CMC) ==
     19
     20Services and arguments
    4921
    5022{{{
     
    184156        </serviceGroup>
    185157}}}
     158
     159Command redirection to other resources.
     160{{{
     161http://<serviceGroup name>:5012/<serviceGroup name>/<service name>?<domain>=<domain name>&<1st_arg>=<arg_1_value>&<2nd_arg>=<arg_2_value>
     162
     163Currently the valid domain name scheme is <subdomain-name>.orbit-lab.org, where
     164subdomain-name = {grid,sb1,sb2,sb3,sb4,sb5,sb6,sb7,sb8,sb9}. For instance, to turn on node1-1.sb9.orbit-lab.org through node1-5.sb9.orbit-lab.org
     165from an internal machine (i.e. internal1, internal2, internal3, internal4), you would issue the following:
     166
     167wget -O - "http://cmc:5012/cmc/nodeSetOn?domain=sb8.orbit-lab.org&nodes=[1,1..5]"
     168
     169It should be noted that most users will not need to specify the domain.  This is only for internal development use and will not work from any of the consoles.
     170}}}
     171
     172Access Control Policy.
     173{{{
     1741.) Access is granted to ON (on, allOn, nodeSetOn), OFF (off, offHard, allOffHard,
     175    nodeSetOffHard, offSoft, nodeSetOffSoft, allOffSoft) and RESET (reset, nodeSetReset,
     176    allReset) services if you are in the same subdomain as the resource you are trying to
     177    control.
     178
     1792.) Access is granted to all services if you are on the internal subnet (10.0.0.0). The domain name needs to be specified in this case
     180
     1813.) Access is granted to STATUS (nodeStatus, allStatus) services from everywhere. The
     182    domain name needs to be specified in this case.
     183}}}
     184
    186185
    187186== Frisbee ==