Comments (9)
Does this tool assign an error? I think it only throws an error if it needs that schema at any point, but I hadn't seen any interaction with Swordfish schema up until this point.
The tool itself runs on the assumption that a local schema is named after the Namespace of the type provided, such as ServiceRoot.v1_0_0 would grab ServiceRoot_v1.xml. Ultimately this should be redesigned around the references URIs.
from redfish-service-validator.
It throws an error
Something went wrong: [Errno 2] No such file or directory: 'metadata/StorageSystemCollection_v1.xml' innerSoup doesn't exist...? ServiceRoot.v1_1_0
I'm not sure but I think this is the error that wrecks the HTML columns.
You will see this if you put 2016.3 or 2017.1 redfish schema files into local metadata directory, omit the swordfish schemas, and set LocalOnlyMode = True
My question is - Is it even an error to omit the swordfish files if the redfish manager produces no swordfish pages.
After I added the swordfish schema the HTML was normal again.
from redfish-service-validator.
This is an error in getPropertyDetails, seems that it's trying to find ServiceRoot in StorageSystemCollection's xml. This is an observant error. I didn't consider the fact that a property might not be supported or exist on the service, but the tool will still attempt to first accumulate info on a property then check that property. If the service-provided schema is modified to remove properties it doesn't support, then this would not happen I assume.
I would imagine this SHOULD be B, but I could ask for advice.
from redfish-service-validator.
Actually I would guess slightly different cause - program is processing ServiceRoot xml and the algorithm tries to find xml for every type listed in ServiceRoot.
I would suggest a result similar to the following would be optimal:
- While parsing xml, the program discovers the xml for a referenced type is not found in schema store (could be local from service rather than from dmtf.org)
- A warning is logged - "Warning: Referenced Type <xxxx.xxxx> Not Available In Schema Store". (And the HTML is not wrecked.)
- If later when reading the json, an odata.type references a type with no XML a fatal error is printed.
"Critical: No XML available in Schema Store for type <xxxx.xxxx> at </redfish/v1/nnnn/mmm/iii>
from redfish-service-validator.
Did this problem change with the new version?
from redfish-service-validator.
from redfish-service-validator.
Ok, thank you. I recall that you suggested a method to test this myself, I will give that a shot.
from redfish-service-validator.
Running local only, still prints lots of confusing errors in this case - when the XML of a JSON page is processed, if that XML references a XML type that is not present, even if the actual JSON of the page being processed does not reference contain a property needing the missing XML.
To duplicate, I unzipped 2016.3 release metadata into the local directory (without swordfish) and processed a device with ServiceRoot.v1_1_1. Other than the confusing errors and traceback the tool is still usable. It correctly assigns DNE/SkipOptional to the properties with the missing types. So a cleanup of the print is all that is suggested.
ERROR - Something went wrong Traceback (most recent call last): File "G:\_Redfish_git\Redfish-Service-Validator-public\Redfish-Service-Validator\traverseService.py", line 174, in getSchemaDetailsLocal filehandle = open(SchemaLocation + '/' + Alias + suffix, "r") FileNotFoundError: [Errno 2] No such file or directory: 'metadata/metadata.xml' ERROR - Something went wrong Traceback (most recent call last): File "G:\_Redfish_git\Redfish-Service-Validator-public\Redfish-Service-Validator\traverseService.py", line 174, in getSchemaDetailsLocal filehandle = open(SchemaLocation + '/' + Alias + suffix, "r") FileNotFoundError: [Errno 2] No such file or directory: 'metadata/StorageSystemCollection_v1.xml' ERROR - innerSoup doesn't exist...? ServiceRoot.v1_1_0 ERROR - Something went wrong Traceback (most recent call last): File "G:\_Redfish_git\Redfish-Service-Validator-public\Redfish-Service-Validator\traverseService.py", line 174, in getSchemaDetailsLocal filehandle = open(SchemaLocation + '/' + Alias + suffix, "r") FileNotFoundError: [Errno 2] No such file or directory: 'metadata/StorageServiceCollection_v1.xml' ERROR - innerSoup doesn't exist...? ServiceRoot.v1_1_0
from redfish-service-validator.
from redfish-service-validator.
Related Issues (20)
- Error: URI does not match object IDs of resource chain with Oem HOT 7
- False positives for URI checking on public-rackmount1 mockup HOT 2
- OperatingConfigs error when coming under Processor of NetworkAdapters HOT 5
- ComputerSystem MemorySummary/MemoryMetrics does not match object ID of resource HOT 4
- About checking Settings resource URI HOT 2
- URI checks flag false errors with @Redfish.Settings resources HOT 2
- Version check for deprecated HOT 10
- About new payload annotations key errors HOT 9
- Oem action is not checked
- Add enforcement of null for properties marked as write-only
- Default Oem property not shown in the Redfish Validator tool HOT 1
- Binary exits with exit code 1 when validation succeeds HOT 1
- Default Oem Property Response Not Shown in Redfish-Service-Validator HOT 4
- The test was not completed but got stuck. HOT 11
- Redfish Service Validator issue related to CollectionCapabilites.
- Could not finish check because Policy HOT 4
- Redfish Service Validator issue related to Oem Schema HOT 2
- "Tree" usage for testing every links HOT 2
- Redfish Service Validator is not checking or navigating the properties of a OEM schema when basetype is Resource.OemObject HOT 3
- Service Validator throws "Connection aborted" Error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redfish-service-validator.