Changes between Version 15 and Version 16 of Internal/RunningInventory
- Timestamp:
- Jan 27, 2016, 8:09:01 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/RunningInventory
v15 v16 3 3 4 4 '''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: 6 6 {{{ 7 root@repository1:~# cd /tftpboot/pxelinux.cfg/ 8 root@repository1:/tftpboot/pxelinux.cfg# ln -s inventory-nb-grid 0A0A 7 cd /tftpboot/pxelinux.cfg/ 8 }}} 9 {{{ 10 ln -s inventory-nb-grid 0A0A 9 11 }}} 10 12 11 || ='''Domain'''=||='''Source'''=||='''Target'''=||13 ||'''Domain'''||'''Source'''||'''Target'''|| 12 14 ||Grid||inventory-nb-grid||0A0A|| 13 15 ||SB1||inventory-nb-sb1||0A0B|| … … 22 24 ||Outdoor||inventory-nb-outdoor||0A28|| 23 25 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: 27 27 {{{ 28 28 cd /export/nfsroot/etc/resolvconf/resolv.conf.d 29 root@repository1:/export/nfsroot/etc/resolvconf/resolv.conf.d# ln -s head.grid head30 29 }}} 31 For sb1:32 30 {{{ 33 cd /export/nfsroot/etc/resolvconf/resolv.conf.d 34 root@repository1:/export/nfsroot/etc/resolvconf/resolv.conf.d# ln -s head.sb1 head 31 ln -s head.grid head 35 32 }}} 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|| 36 46 37 47 '''From console (grid or sandbox)''' … … 39 49 40 50 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 {{{ 52 cd /root/inventory/ 53 }}} 54 {{{ 55 ./run_inventory.rb 56 }}} 45 57 Starting Output will look like: 46 {{{58 {{{ 47 59 root@console.grid:/root/inventory# ./run_inventory.rb 48 60 /usr/lib/ruby/vendor_ruby/restclient/response.rb:11: warning: method redefined; discarding old body … … 57 69 . 58 70 . 59 }}}71 }}} 60 72 '''''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 {{{ 75 omf tell -a on -t all 76 }}} 62 77 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|| 67 91 Wait until all the nodes check in, then proceed to next step. 68 92 '''From repository1''' 69 93 4. '''''Break the symbolic link!!! ''''' If this is not done the next person to use the grid/sandbox will have a bad time. 70 94 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 {{{ 73 97 rm 0A0A 74 }}}98 }}} 75 99 '''From internal1''' 76 100 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: 81 105 {{{ 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 106 cd /usr/share/omf-aggmgr-5.4/omf-aggmgr/ogs_inventory/scripts 86 107 }}} 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.