Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-572

HEAT Validations Error codes

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • None
    • SDC
    • None

      This task is about adding per HEAT Validation an Error code which will later be used for explanations and best Practice

      The requirement: Per validatuion add a code which should be constructed based on framework-index

      The above should be added to each validation just after Error/Warning flag so structure would be:

      "Error/Warning" <Error Code> <Rest of text>

       

      Error Code structure:

      Error code should be created as:

      <ValidatorID-number>

      About ValidatorID

      Our HEAT validation framework is built of several validators each containing several validations, and each can be disabled or enabled.

      So here we need to each validator by a letters as in the list below:

      heatresource\ContrailNetworkPolicyResourceValidator -->  HNP

      heatresource\NestedResourceValidator --> HNR

      heatresource\NeutronPortResourceValidator --> HPR

      heatresource\NeutronSecurityGroupResourceValidator --> HSG

      heatresource\NovaServerGroupResourceValidator --> HNG

      heatresource\NovaServerResourceValidator --> HNS

      heatresource\ResourceGroupResourceValidator --> HRR

       

      namingconvention\ContrailServiceInstanceNamingConventionValidator --> NSI

      namingconvention\ContrailServiceTemplateNamingConventionValidator --> NST

      namingconvention\NeutronPortNamingConventionValidator --> NNP

      namingconvention\NovaServerNamingConventionGuideLineValidator --> NNS

       

      ContrailValidator --> CTL

      ForbiddenResourceGuideLineValidator --> FRG

      HeatResourceValidator --> HTR

      HeatValidator - HOT

      ManifestValidator --> MNF

      NamingConventionGuideLineValidator --> NCG

      SharedResourceGuideLineValidator --> SRG

      YamlValidator --> YML

      : A, B, C... I do not care which validator will get which letter, just that it be consistence

      Number - just number the validations per validator with numbers running from 1

       

      For example: We have two validators each having 5 validations so Error Code should be:

      A-1, A-2, A-3, A-4, A-5

      B-1, B-2, B-3, B-4, B-5

      While keeping it consistence

            amitjai amitjai
            amitjai amitjai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: