101 | | On the FOAM server, get a "before" list of slivers, active and deleted: |
102 | | |
103 | | {{{ |
104 | | cd |
105 | | rm -rf ~/tmp/foam-upgrade |
106 | | mkdir -p ~/tmp/foam-upgrade/before |
107 | | cd ~/tmp/foam-upgrade/before |
108 | | |
109 | | foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt |
110 | | foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd > list-slivers-deleted.txt |
111 | | |
112 | | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt |
113 | | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt |
114 | | }}} |
115 | | |
116 | | If you own any slivers on the server, you can also do a listresources and sliverstatus for a sliver or two. |
| 101 | On the FOAM server, get a "before" list of slivers, active and deleted: |
| 102 | |
| 103 | {{{ |
| 104 | version=<put the version number here> |
| 105 | |
| 106 | cd |
| 107 | rm -rf ~/tmp/foam-upgrade/$version |
| 108 | mkdir -p ~/tmp/foam-upgrade/$version/before |
| 109 | cd ~/tmp/foam-upgrade/$version/before |
| 110 | |
| 111 | foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt |
| 112 | until [ "$(grep -v "HTTP Error 504: Gateway Time-out" list-slivers-deleted.txt)" != "" ] ; do foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd >| list-slivers-deleted.txt ; done |
| 113 | |
| 114 | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt |
| 115 | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt |
| 116 | }}} |
| 117 | |
| 118 | If you own any slivers on the server, you can also do a listresources and sliverstatus for a sliver or two. |
129 | | Then, on the FOAM server, get an "after" list of slivers, active and deleted: |
130 | | |
131 | | {{{ |
132 | | cd |
133 | | rm -rf ~/tmp/foam-upgrade/after |
134 | | mkdir -p ~/tmp/foam-upgrade/after |
135 | | cd ~/tmp/foam-upgrade/after |
136 | | |
137 | | foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt |
138 | | foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd > list-slivers-deleted.txt |
139 | | |
140 | | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt |
141 | | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt |
142 | | }}} |
143 | | |
144 | | Diff the results: |
145 | | |
146 | | {{{ |
147 | | for file in *cooked.txt ; do diff -u ../before/$file $file ; done |
| 131 | Then, on the FOAM server, get an "after" list of slivers, active and deleted: |
| 132 | |
| 133 | {{{ |
| 134 | cd |
| 135 | rm -rf ~/tmp/foam-upgrade/$version/after |
| 136 | mkdir -p ~/tmp/foam-upgrade/$version/after |
| 137 | cd ~/tmp/foam-upgrade/$version/after |
| 138 | |
| 139 | foamctl geni:list-slivers --passwd-file=/etc/foam.passwd > list-slivers-active.txt |
| 140 | until [ "$(grep -v "HTTP Error 504: Gateway Time-out" list-slivers-deleted.txt)" != "" ] ; do foamctl geni:list-slivers --deleted --passwd-file=/etc/foam.passwd >| list-slivers-deleted.txt ; done |
| 141 | |
| 142 | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-active.txt | sort > list-slivers-active-cooked.txt |
| 143 | egrep '(email|desc|slice_urn|sliver_urn)' list-slivers-deleted.txt | sort > list-slivers-deleted-cooked.txt |
| 144 | }}} |
| 145 | |
| 146 | Diff the results: |
| 147 | |
| 148 | {{{ |
| 149 | cd ../before |
| 150 | for file in *cooked.txt ; do diff -u $file ../after/$file ; done |