Changes between Version 15 and Version 16 of Internal/RunningInventory


Ignore:
Timestamp:
Jan 27, 2016, 8:09:01 PM (9 years ago)
Author:
jkol
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/RunningInventory

    v15 v16  
    33
    44'''From repository1'''
    5  1. Goto the tfptboot directory and make a symbolic link for the appropriate domain
     5 1. Goto the tfptboot directory and make a symbolic link for the appropriate domain:
    66    {{{
    7 root@repository1:~# cd /tftpboot/pxelinux.cfg/
    8 root@repository1:/tftpboot/pxelinux.cfg# ln -s inventory-nb-grid 0A0A
     7cd /tftpboot/pxelinux.cfg/
     8    }}}
     9    {{{
     10ln -s inventory-nb-grid 0A0A
    911    }}}
    1012
    11     ||='''Domain'''=||='''Source'''=||='''Target'''=||
     13    ||'''Domain'''||'''Source'''||'''Target'''||
    1214    ||Grid||inventory-nb-grid||0A0A||
    1315    ||SB1||inventory-nb-sb1||0A0B||
     
    2224    ||Outdoor||inventory-nb-outdoor||0A28||
    2325
    24  2. goto the /export/nfsroot/etc/resolvconf/resolv.conf.d and make a symbolic link to head for the proper domain:
    25 
    26     For grid:
     26 2. Goto the /export/nfsroot/etc/resolvconf/resolv.conf.d and make a symbolic link to head for the proper domain:
    2727    {{{
    2828cd /export/nfsroot/etc/resolvconf/resolv.conf.d
    29 root@repository1:/export/nfsroot/etc/resolvconf/resolv.conf.d# ln -s head.grid head
    3029    }}}
    31     For sb1:
    3230    {{{
    33 cd /export/nfsroot/etc/resolvconf/resolv.conf.d
    34 root@repository1:/export/nfsroot/etc/resolvconf/resolv.conf.d# ln -s head.sb1 head
     31ln -s head.grid head
    3532    }}}
     33
     34    ||'''Domain'''||'''Source'''||
     35    ||Grid||head.grid||
     36    ||SB1||head.sb1||
     37    ||SB2||head.sb2||
     38    ||SB3||head.sb3||
     39    ||SB4||head.sb4||
     40    ||SB5||head.sb5||
     41    ||SB6||head.sb6||
     42    ||SB7||head.sb7||
     43    ||SB8||head.sb8||
     44    ||SB9||head.sb9||
     45    ||Outdoor||head.outdoor||
    3646
    3747'''From console (grid or sandbox)'''
     
    3949
    4050  Run the run_inventory script (this script will take 45 minutes to run):
    41    {{{
    42 root@console.grid:~# cd /root/inventory/
    43 root@console.grid:/root/inventory# ./run_inventory.rb
    44    }}}
     51    {{{
     52cd /root/inventory/
     53    }}}
     54    {{{
     55./run_inventory.rb
     56    }}}
    4557  Starting Output will look like:
    46    {{{
     58    {{{
    4759root@console.grid:/root/inventory# ./run_inventory.rb
    4860/usr/lib/ruby/vendor_ruby/restclient/response.rb:11: warning: method redefined; discarding old body
     
    5769.
    5870.
    59    }}}
     71    }}}
    6072 '''''If you are inventorying a sandbox:'''''
    61   Turn on (or restart) all nodes, so they boot into the inventory pxe-image
     73  Turn on (or restart) all nodes, so they boot into the inventory pxe-image:
     74    {{{
     75omf tell -a on -t all
     76    }}}
    6277
    63   Check the inventory page for the sandbox you are inventorying, e.g. for sandbox9:
    64    {{{
    65 http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb9.orbit-lab.org*
    66    }}}
     78  Check the inventory page for the sandbox you are inventorying and monitor the INV_check_in attribute:
     79    ||'''Domain'''||'''URL'''||
     80    ||Grid||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.grid.orbit-lab.org&attribute=INV_check_in||
     81    ||SB1||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb1.orbit-lab.org&attribute=INV_check_in||
     82    ||SB2||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb2.orbit-lab.org&attribute=INV_check_in||
     83    ||SB3||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb3.orbit-lab.org&attribute=INV_check_in||
     84    ||SB4||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb4.orbit-lab.org&attribute=INV_check_in||
     85    ||SB5||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb5.orbit-lab.org&attribute=INV_check_in||
     86    ||SB6||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb6.orbit-lab.org&attribute=INV_check_in||
     87    ||SB7||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb7.orbit-lab.org&attribute=INV_check_in||
     88    ||SB8||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb8.orbit-lab.org&attribute=INV_check_in||
     89    ||SB9||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.sb9.orbit-lab.org&attribute=INV_check_in||
     90    ||Outdoor||http://internal1.orbit-lab.org:5054/inventory/attribute_list?set=node*.outdoor.orbit-lab.org&attribute=INV_check_in||
    6791  Wait until all the nodes check in, then proceed to next step.   
    6892'''From repository1'''
    6993 4. '''''Break the symbolic link!!! ''''' If this is not done the next person to use the grid/sandbox will have a bad time.
    7094
    71  '''Note''': Where ''0A0A'' is the Hex set in Step 1.
    72    {{{
     95 '''Note''': Where ''0A0A'' is the hex target set in Step 1 (example):
     96    {{{
    7397rm 0A0A
    74    }}}
     98    }}}
    7599'''From internal1'''
    76100 5. Update the inventory service "domain topology" cache (which nodes belong to what testbeds) by visiting the following URL (takes 2-3 minutes to complete):
    77    {{{
    78 http://internal1.orbit-lab.org:5054/inventory/update_cache
    79    }}}
    80  6. Update topologies by running the ruby scripts:
     101
     102    ||http://internal1.orbit-lab.org:5054/inventory/update_cache||
     103
     104 6. Update topologies:
    81105    {{{
    82 root@internal1:~# cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/
    83 root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_cpu.rb
    84 root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_dev.rb
    85 root@internal1:/usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory# ruby mktopo_disk.rb
     106cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/scripts
    86107    }}}
    87     '''Note''': Each ruby script 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.
     108    {{{
     109./mktopo all
     110    }}}
     111    '''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.