wiki:Internal/RunningInventory

How to Run Inventory

To run inventory preform the following (ALL STEPS AS ROOT):

From internal1

  1. Disable inventory service security:
    cd /etc/omf-aggmgr-5.4/enabled
    
    Uncomment the following line in inventory.yaml (remove the #):
    #        - '*'
    
    Restart OMF Agg Manager:
    service omf-aggmgr-5.4 restart
    

From repository1

  1. Goto the tfptboot directory and make a symbolic link for the appropriate domain:
    cd /tftpboot/pxelinux.cfg/
    
    ln -s ./inventory/test-inv-all 0A0A
    
DomainSourceTarget
Gridtest-inv-all0A0A
SB1test-inv-all0A0B
SB2test-inv-all0A0C
SB3test-inv-all0A0D
SB4test-inv-all0A0E
SB5test-inv-all0A0F
SB6test-inv-all0A10
SB7test-inv-all0A11
SB8test-inv-all0A12
SB9test-inv-all0A13
Outdoortest-inv-all0A28

From console (grid or sandbox)

  1. Turn on (or restart) all nodes, so they boot into the inventory pxe-image:
    omf tell -a on -t all
    

From a browser on any machine that can see internal1

  1. Check the inventory page for the sandbox you are inventorying and monitor the INV_check_in attribute:
DomainURL
Gridhttp://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.grid.orbit-lab.org&attribute=INV_check_in
SB1http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb1.orbit-lab.org&attribute=INV_check_in
SB2http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb2.orbit-lab.org&attribute=INV_check_in
SB3http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb3.orbit-lab.org&attribute=INV_check_in
SB4http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb4.orbit-lab.org&attribute=INV_check_in
SB5http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb5.orbit-lab.org&attribute=INV_check_in
SB6http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb6.orbit-lab.org&attribute=INV_check_in
SB7http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb7.orbit-lab.org&attribute=INV_check_in
SB8http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb8.orbit-lab.org&attribute=INV_check_in
SB9http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb9.orbit-lab.org&attribute=INV_check_in
Outdoorhttp://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.outdoor.orbit-lab.org&attribute=INV_check_in

Wait until all the nodes check in, then proceed to next step.

From repository1

  1. Break the symbolic link!!! If this is not done the next person to use the grid/sandbox will have a bad time.

Note: Where 0A0A is the hex target set in Step 1 (example):

rm /tftpboot/pxelinux.cfg/0A0A

From internal1

  1. Update the inventory service "domain topology" cache (which nodes belong to what testbeds) by visiting the following URL (takes 2-3 minutes to complete):
http://internal1.orbit-lab.org:5054/inventory/update_cache
  1. Update topologies:
    cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/scripts
    
    ./mktopo all
    
    Note: This takes some time to preform all the actions, and the omf-agg-manager restarts every even hour on the 11th minute. If the ruby process is running at that time it will fail.
  1. Restore inventory service security ( !!! SUPER IMPORTANT !!! ):
    cd /etc/omf-aggmgr-5.4/enabled
    
    Comment out the following line in inventory.yaml (add # to beginning of line):
        - '*'
    
    Restart OMF Agg Manager:
    service omf-aggmgr-5.4 restart
    

Checking progress

You can check the status of inventory by running the ./getfailed script in /root/inventory on the grid console. Set the date in the script to the last time inventory was run. Any nodes in the inventory DB missing a checkin, or with one older than that, will be listed.

Last modified 7 years ago Last modified on Mar 30, 2017, 9:04:26 PM
Note: See TracWiki for help on using the wiki.