| 421 | |
| 422 | === 4/27/2011 === |
| 423 | I've switched to git to do version tracking from Version 2.23 up: |
| 424 | There were a couple of tweaks to the way things work, I've catalogued them in git commit messages which are enumerated here: |
| 425 | {{{ |
| 426 | c9afc57806b835f72ce7b99fc2190e2641034126 some documentation changes, and some addtional error output |
| 427 | d229e4ce5d1c31d432667f5cfc24a3ae4053e357 minor tweak for nil mb_sn entries, Since I can't get it some times, I just push a string with the HD serial duplicated |
| 428 | 1182052c78f98b1c0eec4755f16bc31d166e780a cleaner implemention of the fqdn checks |
| 429 | 8ca9e15bd53fad4e06b32ff1afb8f9d4ac00f3dd fixed the fqdn to try diffrent portions of the domain. This should be functional on inventory2 and 52 now |
| 430 | d9ef189f2919f987abb9cd55bbe258054bd09244 pushing in what ever I fixed, going to add fqdn support |
| 431 | 60c9512abbfff8db6bd046523a26788a4e3df379 fixed a sql_query bug, where it should return an empty array if zero results were collected. |
| 432 | 2eb417654e1da36a55beec7fe8ac8ddd74e74c06 Changed the way we identify network devies to use MBID and bus address instead of mac, this should be more forgiving to the pxe image |
| 433 | 8cf565b6a34002a31a9cc1835e244ab3582e57ad made the script more tolerant of missing information so that it works on the pxe image, and a few bug fixes |
| 434 | dde0a2ce9cdf55888e691193bdbea4fc6a3cac07 Fixed tool tips, and corrected Motherboard.updates code, preforms less checks of @UUID |
| 435 | 2a5d937cf0b46fe056fe0a3b8ac5e0e71968ed35 Fixed Motherboard.update because the sql matches were breaking |
| 436 | 751f9c2794cbc9b87f712703ceb0d5062d366031 Fixed motherboard.update/get_mb_id to deal with missing UUID |
| 437 | 984a36ce4b73c65d44e5454cb2023540ce4eb4fd modified the get_location_id to include console information |
| 438 | d587df7477f4f6e23d84c1a3a5d7f31ae462e974 Initial commit, version 2.23 |
| 439 | }}} |
| 440 | |
| 441 | The core operation remains there same, however there were a few major revisions for functionality they are: |
| 442 | |
| 443 | * changed the way sql_query returns to always return an array |
| 444 | * when checking for loc_id, I split the fqdn into strings and then try each string |
| 445 | * Instead of pushing an empty string in for MB_serial when I don't have it, I instead push a string that uses the Disk serial to make them distinct |
| 446 | * if I can't find the motherbard serial, I use the Disk serial instead to get the motherboard Id |
| 447 | |
| 448 | Most of tweaks and adjustments were done to accommodate the new method of inventorying. Instead of imaging the nodes then running inventory as an experiment, we've moved the script to a initramfs image, and then boot into a pxe image and run the inventory from this memory initramfs. The snag is that this kernel/initramfs image doesn't load a full compliment of drivers so some of the information that would be gathered and populated, doesn't get collected (e.g. mother board serial number). That was the bulk of moidifcations. We're currently live now and running the updates agains the working inventotry52 database (which is read by omf-5.2). |
| 449 | |
| 450 | The only tweak I had to do with the Tables was to modify the memory, cpu speed and disk size data types. I changed them to floats, it makes the internal representation a little cleaner. Thus I had to add a convert to float string function in the data handler portion, It's part of the Component class. |
| 451 | |
| 452 | Note: The current inventory command assumes that you want to do all nodes, you can invoke it with a flag to change the node set. It's syntax is not intuitive. |
| 453 | {{{ |
| 454 | All nodes: |
| 455 | root@console:/root# omf-5.2 exec inventoryNode.rb |
| 456 | |
| 457 | Nodes [3,1..12]: |
| 458 | omf-5.2 exec inventoryNode.rb -- --nodes [3,1..12] |
| 459 | NOTE THE LACK OF AN = sign |
| 460 | }}} |
| 461 | |
| 462 | I may branch off a threaded version to make it a little faster but that might right into blocking issues with concurrent runs of lshw. Also on the Horizon is the idea of using a full Diskless ubuntu server pxe image to house the inventory process. This should resolve some of the missing info/driver issues. |
| 463 | |