| Summary: | [userinterface_public_546]Cannot process yaml format in From File page | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Xingxing Xia <xxia> |
| Component: | Management Console | Assignee: | Jakub Hadvig <jhadvig> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Yadan Pei <yapei> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | aos-bugs, jforrest, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-19 13:50:18 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Xingxing Xia
2016-04-29 07:49:58 UTC
So the problem is that the YAML can not parse the outputted YAML since its not a valid YAML. When you try to paste the the outputted yaml into any online YAML validator you will get its invalid. The parsing of a valid YAML will work without any issues. Eg. after step 2. check the yaml output and check lines 7.-8., there you can see that the 'description' is split into two lines. Also the indentation is wrong, since from line 14. should be an extra indentation till end of the file. Probably the will be more issues. The thing here is that then you create a Template from the exported YAML, OpenShift will create it without any error/warning, even with problems mentioned before. So the issue itself is in the YAML library that cannot parse the YAML. Shall we try to replace the YAML lib with some other, or do a better error handling ? Seems not concern "invalid" yaml. Tried other yaml file such as:
$ cat pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: hello-openshift
spec:
containers:
- image: openshift/hello-openshift
name: hello-openshift
ports:
- containerPort: 8080
protocol: TCP
And https://raw.githubusercontent.com/openshift/origin/master/examples/project-quota/pod-without-resources.yaml
Also cannot process these yaml with message "Failed to process the resource"
The PR has been merged, please use the master for testing. Hi tested against devenv-rhel7_4117, now YAML format file could be process and created successfully Move to VERIFIED |