Bug #5528
closedGet system serial number output from inventory though API
Description
Hello,
It seems that even fetching full inventory doesn't output the system serial number.
Could you please add a way to get it?
Thanks,
Olivier
Edit, FAR: for reference, both the "serial" and "manufacturer" fields viewable in the node inventory details, in the [General] section since Rudder 2.11 are concerned.
Updated by Matthieu CERDA about 10 years ago
- Status changed from New to 8
- Assignee set to François ARMAND
- Priority changed from N/A to 3
Giving this to FAR, he knows what's what about this :)
Updated by François ARMAND about 10 years ago
- Description updated (diff)
- Target version set to 2.11.3
Updated by François ARMAND about 10 years ago
- Tracker changed from User story to Bug
This seems to be a bug, because we added these information in 2.11 in the main panel but not in the API.
Updated by François ARMAND about 10 years ago
- Pull Request set to https://github.com/Normation/rudder/pull/613
Proposed place for these information:
- 1/ in the main (first) level:
"data": {
"nodes": [
{
"id": "32e45242-5571-4d9b-87ae-07b02b6f8fff",
"hostname": "node1.rudder.local",
....
"manufacturer": "innotek GmbH",
"systemSerialNumber": "0",
....
"os": {
....
}
... other caracteristics ...
}
}
2/ in the "machine"
"data": {
"nodes": [
{
"id": "32e45242-5571-4d9b-87ae-07b02b6f8fff",
"hostname": "node1.rudder.local",
....
....
"os": {
....
}
"machine": {
"id": "883EC5E5-5614-4F4F-881C-AE2AF8952DF4",
"type": "Virtual",
"provider": "vbox",
"manufacturer": "innotek GmbH",
"serialNumber": "0"
},
... other caracteristics ...
}
}
1/ map the most closely the logic of the node details. But 2/ seems more logical: these fields are optionnal and are actual caracteristic of the hardware.
For the naming scheme, I think "manufacturer" is OK. For the "system serial number", I think the whole name is needed if at the root level (case 1), but "machine.serialNumber" is shorter/better.
So I would go for 2, and the PR available here allow to test that solution: https://github.com/Normation/rudder/pull/613
Updated by François ARMAND about 10 years ago
- Status changed from 8 to Discussion
- Assignee changed from François ARMAND to Jonathan CLARKE
(Jon feedback as keeper of the ux :)
Updated by Olivier Mauras about 10 years ago
Hello François,
I agree with the second solution.
Olivier
Updated by François ARMAND about 10 years ago
- Status changed from Discussion to Pending technical review
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
I just got an offline "go" feedback for the solution 2/ from Jon.
Updated by François ARMAND about 10 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset 290b2a0d8a55d0c5038cf03fd52c953d94d5e874.
Updated by Nicolas CHARLES about 10 years ago
Applied in changeset 41a14192d85ace2e5aee18af8b181e2a4c82e238.
Updated by Vincent MEMBRÉ about 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.3, which was released on the 25/09/2014.
- Announcement
- Changelog
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/