DMTF / Redfish-Service-Validator

The Redfish Service Validator is a Python3 tool for checking conformance of any "device" with a Redfish service interface against Redfish CSDL schema
Other
37 stars 33 forks source link

Could not finish check because Policy #564

Closed FelixD999 closed 9 months ago

FelixD999 commented 9 months ago

After used version 2.3.6, tool cannot finish check and aborted validation with KeyError 'Policy'. policy We tried a lower version (2.3.1) and it ran to completion, although there were errors at the same URL. The log is as follows: ConformanceLog_09_27_2023_170928.txt

May I know the meaning of KeyError "Policy" and how to successfully run the tool?

Thanks, Felix

mraineri commented 9 months ago

It's likely more stringent about schema format with some of the updates we've done recently, most notably with enforcing the usage of arrays. I'm guessing there's a scheme reference to "Policy" somewhere that doesn't resolve. Are you able to provide copies of these schema file? They appear to be OEM not something I would find in DMTF publications.

FelixD999 commented 9 months ago

Thanks for your answer. Attached is the OEM schema file related to NmDomain. DMTF_554.zip

mraineri commented 9 months ago

There are quite a few CSDL issues I see in the schemas that need to be corrected. It would be good if the tool wouldn't crash in the first place, but as things stand with those schemas, they cannot be parsed properly.

At least specifically with some of the "Policy" types of properties, a few things stick out to me...

mraineri commented 9 months ago

The schema issue in NmDomain_v1.xml at line 165 is what's causing this specific crash though.