Heat template-validate improvements

Registered by Kanagaraj Manickam on 2015-09-28

template validation in heat could be improved for following reasons:
1. combine heat stack-preview and template-validate and provide the required output values
2. validate template and report warnings and errors in the template as whole instead of failing on the first error
3. provide the line number at which the warning or error occured.
4. provide some recommendation like when template has deprecated things, recommended to the new one
5. some time template validate fails when the corresponding services are not available in the heat deployed cloud. this makes the template designers/architects life difficult on designing the template. so it would make the life easier if we provide the option to
ignore this kind of errors like how flake8 provides some option to ignore some warnings.
6. Provide the option to validate only the schematic of the template, which ignores the validation of value. This will help the user to identify the issues in the structure of the template.

Blueprint information

Status:
Complete
Approver:
Sergey Kraynev
Priority:
Low
Drafter:
Kanagaraj Manickam
Direction:
Needs approval
Assignee:
Kanagaraj Manickam
Definition:
Approved
Series goal:
Proposed for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-3
Started by
Kanagaraj Manickam on 2015-12-03
Completed by
Kanagaraj Manickam on 2016-02-15

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/heat-template-validate-improvements,n,z

Addressed by: https://review.openstack.org/228425
    Improves template-validate feature

Addressed by: https://review.openstack.org/242031
    Adds error_code in heat exceptions

Addressed by: https://review.openstack.org/246868
    Update resource type exceptions with error_code

Addressed by: https://review.openstack.org/246869
    Adds ignore_errors for template_validate in engine

Addressed by: https://review.openstack.org/246870
    Adds ignore_errors for template_validate API

Addressed by: https://review.openstack.org/276633
    Release notes for template validation improvements

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.