bmcweb
bmcweb copied to clipboard
OpenBMC: BMC throws wrong error message on invalid MAC address configuration
BMC throws wrong error message while MAC address configuration. When we try to configure invalid MAC address, supposed to get 4xx message. But BMC throws 500 internal error.
HTTP/1.1 500 Internal Server Error Strict-Transport-Security: max-age=31536000; includeSubdomains; preload X-Frame-Options: DENY Pragma: no-cache Cache-Control: no-Store,no-Cache Content-Security-Policy: default-src 'self'; img-src 'self' data: X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-UA-Compatible: IE=11 Content-Type: application/json Server: iBMC Date: Tue, 26 Mar 2019 09:56:34 GMT Content-Length: 1474
{
"@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces/eth0",
"DHCPv4Configuration": {
"DHCPEnabled": false
},
"HostName": "openbmc",
"IPv4Addresses": [
{
"Address": "x.xx.xx.xx",
"AddressOrigin": "Static",
"Gateway": "xx.xx.xx.1",
"SubnetMask": "xx.xx.xx.0"
},
{
"Address": "10.7.7.7",
"AddressOrigin": "Static",
"Gateway": "10.7.7.1",
"SubnetMask": "255.255.0.0"
},
{
"Address": "169.254.10.xx",
"AddressOrigin": "IPv4LinkLocal",
"Gateway": "",
"SubnetMask": "255.255.0.0"
}
],
"Id": "eth0",
"InterfaceEnabled": true,
"LinkStatus": "NoLink",
"MACAddress": "xx.xx.xx.xx.xx.xx",
"NameServers": [],
"SpeedMbps": 0,
"Status": {
"Health": "OK",
"State": "Disabled"
},
"VLAN": {
"VLANEnable": false,
"VLANId": 0
},
"error": {
"@Message.ExtendedInfo": [
{
"@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
"Message": "The request failed due to an internal service error. The service is still operational.",
"MessageArgs": [],
"MessageId": "Base.1.4.0.InternalError",
"Resolution": "Resubmit the request. If the problem persists, consider resetting the service.",
"Severity": "Critical"
}
],
"code": "Base.1.4.0.InternalError",
"message": "The request failed due to an internal service error. The service is still operational."```