Redfish Virtual Media return InternalError
Brad Chou
bradc at hyvedesignsolutions.com
Mon Oct 12 19:50:22 AEDT 2020
Hi Anton,
I found some clue about this problem.
https://github.com/openbmc/bmcweb/blob/b0ad4de61ddd7872894b6f741156104f0a0c0ee6/redfish-core/lib/virtual_media.hpp#L1062
In virtual_media.hpp, the ObjectMapper failed because it cannot find the "/xyz/openbmc_project/VirtualMedia” object path.
So the problem is why there is no such object available ?
Do I need to start any service that depends by virtual media ?
Thanks
From: Anton Kachalov <rnouse at google.com>
Sent: Thursday, October 8, 2020 3:19 AM
To: Brad Chou <bradc at hyvedesignsolutions.com>
Cc: openbmc at lists.ozlabs.org
Subject: Re: Redfish Virtual Media return InternalError
[External E-mail]
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hey, Brad.
Try to log into the bmc and check the bmcweb logs:
# systemctl status -n 100 bmcweb.status
If it doesn't show anything meaningful, get the "Main PID" and try to strace it (you need to include strace into the builded image).
On Tue, 6 Oct 2020 at 11:20, Brad Chou <bradc at hyvedesignsolutions.com<mailto:bradc at hyvedesignsolutions.com>> wrote:
Hi,
I enable the “DBMCWEB_ENABLE_VM_NBDPROXY” flag in bmcweb by bbappend it :
EXTRA_OECMAKE_append = " \
-DBMCWEB_ENABLE_VM_NBDPROXY=ON \
"
Then try to use redfish virtual media.
But I got an error return when get into the collection :
$ curl -k -H "X-Auth-Token: $token" https://${bmc}/redfish/v1/Managers/bmc/VirtualMedia<https://$%7bbmc%7d/redfish/v1/Managers/bmc/VirtualMedia>
{
"@odata.id<http://odata.id>": "/redfish/v1/Managers/bmc/VirtualMedia/",
"@odata.type": "#VirtualMediaCollection.VirtualMediaCollection",
"Name": "Virtual Media Services",
"error": {
"@Message.ExtendedInfo": [
{
"@odata.type": "#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."
}
}
Any idea ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20201012/a014844e/attachment.htm>
More information about the openbmc
mailing list