Commit 82cff7cc authored by Jérémie Gaidamour's avatar Jérémie Gaidamour

Split the yaml files generated by g5k-checks per nodes

    - Split <cluster_name>_generated.yaml files to cluster/<cluster_name>/nodes/<cluster-name>-[uid].yaml
    - Moved <cluster_name>.rb and <cluster_name>_manual.yaml to cluster/<cluster_name>/
    - Created empty <cluster_name>_manual.yaml for Lyon (otherwise, rake script does not work with SITE=lyon as those input files do not exist)

    --

    For the record:

    From generators/input/sites/:

    cluster_list=$(ls ./*/clusters/*generated.yaml)
    for cluster_file in $cluster_list
    do
        (
    	cd $(dirname $cluster_file)

    	cluster_name=$(echo $(basename $cluster_file) | cut -d '_' -f1)
    	echo $cluster_name

    	last_node_number=$(egrep $cluster_name- *_generated.yaml | cut -d "-" -f2 | cut -d ":" -f1 | sort -n | tail -n1)
    	#echo $last_node_number

    	mkdir -p $cluster_name/nodes/ 2> /dev/null
    	for i in $(seq 1 $last_node_number)
    	do
    	    (
    		echo "---"
    		echo "$cluster_name-$i:"
    		sed -n "/^$cluster_name-$i:$/,/^$cluster_name-.*:$/p" $cluster_name"_generated.yaml" | sed "/^$cluster_name-.*:$/d"
    	    ) > $cluster_name/nodes/$cluster_name-$i.yaml
    	done

        )
    done

    find . -iname "*_generated.yaml" -exec git rm -f {} \;
    git add */clusters/*
    for i in $(ls -d */clusters/*.rb); do (cd $(dirname $i); git mv $(basename $i) $(basename $i .rb)_*yaml $(basename $i .rb)); done

    (+ manually fixed lyon)
parent 7dc80fe4

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

---
adonis-1:
bios:
version: R4222X80
release_date: 05/20/2010
vendor: American Megatrends Inc.
block_devices:
sda:
model: WDC WD2502ABYS-0
device: sda
size: 251059544064
rev: 2.0
vendor: Western Digital
operating_system:
kernel: 2.6.32-5-amd64
name: debian
version: 6.0.6
network_interfaces:
ib0:
mounted: true
guid: 20:00:55:00:41:80:00:00:00:00:00:00:00:30:48:ff:ff:cc:17:55
rate: 40000000000
ip6: fe80::230:48ff:ffcc:1755
management: false
enabled: true
interface: InfiniBand
version: MT26428
ip: 172.18.18.1
driver: mlx4_core
mountable: true
eth0:
mounted: true
rate: 1000000000
mac: 00:30:48:cc:7f:d8
ip6: fe80::230:48ff:fecc:7fd8
management: false
enabled: true
interface: Ethernet
driver: igb
mountable: true
ip: 172.16.18.1
eth1:
mounted: false
mac: 00:30:48:cc:7f:d9
management: false
enabled: false
interface: Ethernet
driver: igb
mountable: false
bmc:
mac: 00:30:48:cc:b0:58
ip: 172.17.18.1
chassis:
serial_number: "1234567890"
manufacturer: Bull SAS
product_name: bullx
supported_job_types:
virtual: ivt
processor:
model: Intel Xeon
cache_l1d: 32768
clock_speed: 2270000000
other_description: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
version: E5520
cache_l2: 262144
cache_l3: 8388608
vendor: Intel
instruction_set: x86-64
cache_l1i: 32768
main_memory:
ram_size: 25769803776
architecture:
smp_size: 2
platform_type: x86_64
smt_size: 8
---
adonis-10:
bios:
version: R4222X80
release_date: 05/20/2010
vendor: American Megatrends Inc.
operating_system:
kernel: 2.6.32-5-amd64
name: debian
version: 6.0.6
network_interfaces:
ib0:
mounted: true
guid: 20:00:55:00:41:80:00:00:00:00:00:00:00:30:48:ff:ff:cc:17:69
rate: 40000000000
ip6: fe80::230:48ff:ffcc:1769
management: false
enabled: true
interface: InfiniBand
version: MT26428
ip: 172.18.18.10
driver: mlx4_core
mountable: true
eth0:
mounted: true
rate: 1000000000
mac: 00:30:48:cc:83:10
ip6: fe80::230:48ff:fecc:8310
management: false
enabled: true
interface: Ethernet
driver: igb
mountable: true
ip: 172.16.18.10
eth1:
mounted: false
mac: 00:30:48:cc:83:11
management: false
enabled: false
interface: Ethernet
driver: igb
mountable: false
bmc:
mac: 00:30:48:cc:ad:df
ip: 172.17.18.10
block_devices:
sda:
model: WDC WD2502ABYS-0
device: sda
size: 251059544064
rev: 2.0
vendor: Western Digital
chassis:
serial_number: "1234567890"
manufacturer: Bull SAS
product_name: bullx
supported_job_types:
virtual: ivt
main_memory:
ram_size: 25769803776
processor:
model: Intel Xeon
cache_l1d: 32768
clock_speed: 2270000000
other_description: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
version: E5520
cache_l2: 262144
cache_l3: 8388608
vendor: Intel
instruction_set: x86-64
cache_l1i: 32768
architecture:
smp_size: 2
platform_type: x86_64
smt_size: 8
---
adonis-2:
bios:
version: R4222X80
release_date: 05/20/2010
vendor: American Megatrends Inc.
block_devices:
sda:
model: WDC WD2502ABYS-0
device: sda
size: 251059544064
rev: 2.0