wiki:Software/eAM/aInventory/fScheduler

Version 3 (modified by Olivera Tosic, 11 years ago) ( diff )

Adding new testbed

Currently, information about resources i.e. testbeds are kept into 2 databases, scheduler database (newScheduler) and inventory database (inventory54). To add new virtual domain we need to update both databases. There is a script addVirtualDomais.rb on internal2, /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_loginCommon/w. Calling that script will add virtual domains into inventory database and prepare sql script to run from mysql to update scheduler database.

ruby addVirtualDomais.rb listOfdomains.txt

listOfDomains.txt is file with following information

domainName; <listo of nodes that belong to new domain>; <domain description>

Output file is machines.sql There is also file testbed_attributes.yaml to define necessary testbed information.

Make testbed inactive

To remove testbed from scheduler page just mark it inactive into both databases.

For scheduler databases run

UPDATE resources set status = 'u' where name='<testbed_name>';

For inventory, change INF_status attribute to 0:

 wget -qO- 'http://new.orbit-lab.org:5054/inventory/attribute_modify?name=<testbed_name>&attribute=INF_status&value=0

Updating testbed information

To change testbed name, make it active and change list of nodes do the following:

Scheduler database

  • Make domain active in scheduler database i.e set status to 'a':
    Update newScheduler.resources set status='a' where name = '<old_testbed_name>';
    
  • Change name and description:
Update newScheduler.resources set name='<new_testbed_name>', notes='node3-3 i node4-10' where name = '<old_testbed_name>';

or with one statement

Update newScheduler.resources set status='a', name='<new_testbed_name>', notes='node3-3 i node4-10' where name ='<old_testbed_name>';

Inventory database

Note: See TracWiki for help on using the wiki.