Openbmc archive at lore.kernel.org
 help / color / Atom feed
* Redfish Virtual Media return InternalError
@ 2020-10-06  9:19 Brad Chou
  2020-10-07 19:19 ` Anton Kachalov
  0 siblings, 1 reply; 3+ messages in thread
From: Brad Chou @ 2020-10-06  9:19 UTC (permalink / raw)
  To: openbmc


[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]

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
{
  "@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 ?



[-- Attachment #2: Type: text/html, Size: 4581 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Redfish Virtual Media return InternalError
  2020-10-06  9:19 Redfish Virtual Media return InternalError Brad Chou
@ 2020-10-07 19:19 ` Anton Kachalov
  2020-10-12  8:50   ` Brad Chou
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Kachalov @ 2020-10-07 19:19 UTC (permalink / raw)
  To: Brad Chou; +Cc: openbmc


[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]

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@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
>
> {
>
>   "@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 ?
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 3655 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Redfish Virtual Media return InternalError
  2020-10-07 19:19 ` Anton Kachalov
@ 2020-10-12  8:50   ` Brad Chou
  0 siblings, 0 replies; 3+ messages in thread
From: Brad Chou @ 2020-10-12  8:50 UTC (permalink / raw)
  To: Anton Kachalov; +Cc: openbmc


[-- Attachment #1: Type: text/plain, Size: 2412 bytes --]

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@google.com>
Sent: Thursday, October 8, 2020 3:19 AM
To: Brad Chou <bradc@hyvedesignsolutions.com>
Cc: openbmc@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@hyvedesignsolutions.com<mailto:bradc@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 ?



[-- Attachment #2: Type: text/html, Size: 8364 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06  9:19 Redfish Virtual Media return InternalError Brad Chou
2020-10-07 19:19 ` Anton Kachalov
2020-10-12  8:50   ` Brad Chou

Openbmc archive at lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/openbmc/0 openbmc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 openbmc openbmc/ https://lore.kernel.org/openbmc \
		openbmc@lists.ozlabs.org openbmc@ozlabs.org
	public-inbox-index openbmc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.ozlabs.lists.openbmc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git