Redfish metadata implementation

Johnathan Mantey johnathanx.mantey at intel.com
Tue Jan 21 04:57:08 AEDT 2020


I just ran this using my restclient utility, and the metadata is being
reported correctly.

     <?xml version="1.0" encoding="UTF-8"?>
     <edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"
Version="4.0">
       <edmx:Reference Uri="/redfish/v1/schema/AccelerationFunction_v1.xml">
         <edmx:Include Namespace="AccelerationFunction"/>
         <edmx:Include Namespace="AccelerationFunction.v1_0_0"/>
         <edmx:Include Namespace="AccelerationFunction.v1_0_1"/>
         <edmx:Include Namespace="AccelerationFunction.v1_0_2"/>
       </edmx:Reference>

I think Joseph is correct, the problem is a shell expansion issue.

On 1/20/20 9:38 AM, Joseph Reynolds wrote:
> On 1/20/20 4:07 AM, Ratan Gupta wrote:
>>
>> Hi James,
>>
>> I was looking at the current master metadata redfish url
>> implementation and seems that is not correct.
>>
>> Currently redfish/v1 and redfish/v1/$metadata is giving the same
>> service root data(service root).
>>
>> curl -k -H "X-Auth-Token: $bmc_token" -X GEThttps://${bmc}/redfish/v1
>> curl -k -H "X-Auth-Token: $bmc_token" -X
>> GEThttps://${bmc}/redfish/v1/$metadata
>
> I wonder if  $metadata  is being expanded as a shell variable.  The
> shell expands un-set variables to the empty string and you get the
> result you are seeing.  If this is happening to you, you could quote
> your command in one of these ways (but be careful not to quote the
> ${bmc} variable):
>
> curl -k -H "X-Auth-Token: $bmc_token" -X
> GEThttps://${bmc}/redfish/v1/\$metadata
>
> -or-
>
> curl -k -H "X-Auth-Token: $bmc_token" -X
> GEThttps://${bmc}'/redfish/v1/$metadata'
>
>
> Also, note that URI /redfish/v1/$metadata does not require
> authentication, so the X-Auth-Token header is not needed.
>
> - Joseph
>
>> I am hoping the redfish/v1/$metadata should return the following data
>>
>> https://github.com/openbmc/bmcweb/blob/master/static/redfish/v1/%24metadata/index.xml
>>
>>
>> Ratan
>>
>>
>>
>

-- 
Johnathan Mantey
Senior Software Engineer
*azad te**chnology partners*
Contributing to Technology Innovation since 1992
Phone: (503) 712-6764
Email: johnathanx.mantey at intel.com <mailto:johnathanx.mantey at intel.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200120/2c45bcae/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200120/2c45bcae/attachment-0001.sig>


More information about the openbmc mailing list