Use path, rather than URL for some Magellan fields#110
Conversation
Signed-off-by: Ben McDonald <ben.mcdonald@hpe.com>
|
I don't think we want to strip off the first part here like this since we will lose information. Current output: {
"uri": "https://172.21.0.1:5000/redfish/v1/Systems/Node0",
"manufacturer": "HPE",
"system_type": "Physical",
"name": "Node0",
"model": "HPE CRAY EX235a",
"serial": "NUX9940765739",
"bios_version": "ex235a.bios-1.3.6",
"ethernet_interfaces": [
{
"uri": "https://172.21.0.1:5000/redfish/v1/Systems/Node0/EthernetInterfaces/ManagementEthernet",
"mac": "02:0b:b8:00:30:00",
"description": "Node Maintenance Network"
},
{
"uri": "https://172.21.0.1:5000/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet2",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
},
{
"uri": "https://172.21.0.1:5000/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet1",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
},
{
"uri": "https://172.21.0.1:5000/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet3",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
},
{
"uri": "https://172.21.0.1:5000/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet0",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
}
],
"power": {
"state": "On"
},
"processor_count": 9,
"processor_type": "AMD INSTINCT MI200 (MCM) OAM LC",
"memory_total": 512,
"links": {}
}New output: {
"uri": "/redfish/v1/Systems/Node0",
"manufacturer": "HPE",
"system_type": "Physical",
"name": "Node0",
"model": "HPE CRAY EX235a",
"serial": "NUX9940765739",
"bios_version": "ex235a.bios-1.3.6",
"ethernet_interfaces": [
{
"uri": "/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet2",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
},
{
"uri": "/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet1",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
},
{
"uri": "/redfish/v1/Systems/Node0/EthernetInterfaces/ManagementEthernet",
"mac": "02:0b:b8:00:30:00",
"description": "Node Maintenance Network"
},
{
"uri": "/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet3",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
},
{
"uri": "/redfish/v1/Systems/Node0/EthernetInterfaces/HPCNet0",
"mac": "Not Available",
"description": "SS11 200Gb 2P NIC Mezz REV02 (HSN)"
}
],
"power": {
"state": "On"
},
"processor_count": 9,
"processor_type": "AMD INSTINCT MI200 (MCM) OAM LC",
"memory_total": 512,
"links": {}
} |
|
What information is lost? Assuming that node0 is the real xname, that is essentially the alias for the |
|
Can you parse the path on the SMD side using |
|
Closing this in favor of OpenCHAMI/smd#70. |
In Magellan, some of the fields were being added to SMD with full paths (i.e., they had
https://<hostname>/appended to the start. This was causing unexpected behavior when these fields are attempted to be used by other services (e.g., PCS).This PR fixes that by stripping off the URL elements and just leaving the path. Note, this is very similar in it's need to #98.
Commands to run:
Here is the contents of a single record in collected.txt without these changes:
Here is the contents of collected.txt with these changes:
Here is what we were seeing in SMD before:
Here is what we see in SMD after:
Now we see:
Before we were seeing:
This PR also changes the other fields, like the ethernet info, but the what I needed for PCS wer the two listed above.