Incorrect value reported for storage device vendor
Created by: priteau
On some hardware, the output of g5k-checks reports an incorrect value for the vendor of a storage device. The wrong value is also present in Ohai.
For example, on Chameleon hardware (this is Ohai output, not Reference API data):
"sda": {
"size": "488397168",
"removable": "0",
"model": "ST9250610NS",
"rev": "AA63",
"state": "running",
"timeout": "90",
"vendor": "ATA"
}
I checked a couple of Grid'5000 clusters, same problem (this is Reference API data). This is a random node on parapluie (some values removed):
{
"device": "sda",
"driver": "ahci",
"interface": "SATA",
"storage": "HDD",
"vendor": "ATA"
}
parapide shows "vendor": null
.
The version of Ohai doesn't matter, since the problem actually comes from the value exported by the Linux kernel itself:
$ cat /sys/block/sda/device/vendor
ATA