Changes between Version 9 and Version 10 of Software/eAM/aInventory/fScheduler


Ignore:
Timestamp:
Jan 24, 2016, 11:58:21 PM (8 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Software/eAM/aInventory/fScheduler

    v9 v10  
    1 [[TOC(Software/eAM/aI*, depth=3)]]
     1[[TOC(Software/eAM/aI*, depth=4)]]
     2
    23=== Domain management ===
     4
    35==== Adding new testbed ====
    46
     
    3133==== Updating testbed information ====
    3234To change testbed name, make it active and change list of nodes do the following:
     35
    3336===== Scheduler database =====
    3437 * Make domain active in scheduler database i.e set status to 'a':
     
    4649}}}
    4750
    48 ===== Inventory database =====
    49 * Change name
    50 It's not possible to change resource name using inventory service. This can be done directly into database. Anytime you can delete resource with <old_name> and create new one. To change resource name run flowing script:
    51 {{{
    52 UPDATE inventory54.resource SET name='<new_name>' where name='<old_name>';
    53 }}}
     51===== Inventory database initialization and management =====
    5452
    55 * Make it active, i.e set INF_status to 1 if domain should appear on status page
    56 {{{
    57  wget -qO- 'http://new.orbit-lab.org:5054/attribute_modify?name=<new_name&attribute=INF_status&value=1
    58 }}}
    59 Domain have to have INF_x_max and INF_y_max attributes. It is necessary to restart status service after these changes.
    60 * Change description
    61 {{{
    62  wget -qO- 'http://new.orbit-lab.org:5054/attribute_modify?name=<new_name>&attribute=INF_description&value=<new_description>
    63 }}}
    64 
    65 ===== Define list of nodes =====
    66 
    67 * Delete old list of nodes  - currently, there is no possibility to do it trough service, it has to be done into database directly
    68 {{{
    69 DELETE FROM inventory54.relations WHERE subject_id=(SELECT id FROM inventory54.resources where name='<new_name>');
    70 }}}
    71 Pay attention, <new_name> is used because name is already changed. If you this before changing the name, than use <old_name>.
    72 * Add nodes  - do the flowing for each node that belongs to resource i.e. testbed
    73 {{{
    74  wget -qO- 'http://new.orbit-lab.org:5054/relation_add?parent=<new_name>&child=<node_name>
    75 }}}