Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

vCPE + HPA Integration Test Plan


  • Setup vCPE the same as regression; up to Service Instantiation
  • Before vCPE Service Instantiation
    • Create HPA policies – See wiki page Policy OOF HPA 
      Example policies: 

      Code Block
      languagebash
      titleHPA Policy Example 1
      { 
         "riskLevel":"1",
         "riskType":"SampleRiskType",
         "policyName":"PolicyHPA3",
         "service":"hpaPolicy",
         "guard":"False",
         "description":"Must have Huge pages support",
         "templateVersion":"OpenSource.version.1",
         "priority":"1",
         "version":"CSIT",
         "content":{ 
            "identity":"hpaPolicy_set3",
            "policyScope":[ 
               "INTERNATIONAL"
            ],
            "policyType":"hpaPolicy",
            "resources":"vGMuxInfra",
            "flavorFeatures":[ 
               { 
                  "flavorLabel":"vcpe.vgmux",
                  "flavorProperties":[ 
                     { 
                        "hpa-feature-attributes":[ 
                           { 
                              "hpa-attribute-key":"numVirtualCpu",
      						"hpa-attribute-value":"4",
                              "operator":"="
                           },
      					 {
                              "hpa-attribute-key":"virtualMemSize",
                              "hpa-attribute-value":"8192",
                              "operator":"=",
                              "unit":"MB"
                           }
                        ],
                        "mandatory":"True",
                        "hpa-feature":"basicCapabilities",
                        "architecture":"generic",
      				  "hpa-version":"v1"
                     },
                     { 
                        "hpa-feature-attributes":[ 
                           { 
                              "hpa-attribute-key":"logicalCpuPinningPolicy",
                              "hpa-attribute-value":"dedicated",
                              "operator":"="
                           }
                        ],
                        "mandatory":"True",
                        "hpa-feature":"cpuPinning",
                        "architecture":"generic",
      				  "hpa-version":"v1",
                     }
                  ]
               }
            ]
         }
      }
      Code Block
      languagebash
      titleHPA Policy Example 2
      { 
         "riskLevel":"1",
         "riskType":"SampleRiskType",
         "policyName":"PolicyHPA3",
         "service":"hpaPolicy",
         "guard":"False",
         "description":"Must have Huge pages support",
         "templateVersion":"OpenSource.version.1",
         "priority":"1",
         "version":"CSIT",
         "content":{ 
            "identity":"hpaPolicy_set3",
            "policyScope":[ 
               "INTERNATIONAL"
            ],
            "policyType":"hpaPolicy",
            "resources":"vGMuxInfra",
            "flavorFeatures":[ 
               { 
                  "flavorLabel":"vcpe.vgmux",
                  "flavorProperties":[ 
                     { 
                        "hpa-feature-attributes":[ 
                           { 
                              "hpa-attribute-key":"numVirtualCpu",
      						"hpa-attribute-value":"4",
                              "operator":">="
                           },
      					 {
                              "hpa-attribute-key":"virtualMemSize",
                              "hpa-attribute-value":"8",
                              "operator":"=",
                              "unit":"MB"
                           }
                        ],
                        "mandatory":"True",
                        "hpa-feature":"basicCapabilities",
                        "architecture":"generic",
      				  "hpa-version":"v1"
                     }
                  ]
               }
            ]
         }
      }


       This example will change based on flavors in OpenStack/Multicloud in the lab.

    • Create flavors in OpenStack
      • flavors which is used to discover HPA information should named with prefix of "onap." , otherwise there will no HPA information can be extracted by multicloud plugins for OpenStack
      • the number of flavors to be created for ONAP is determined by number of the generic flavors multiplied by the combination of HPA specification.
        • In this example, there are 2 generic flavors:
          • medium: 4 vcpu, 4GB memory, 40GB storage
          • large: 6 vcpu, 8GB memory, 80GB storage
        • In this example, there are 2 set of HPA specification:
          • set 1: hw:numa_nodes=2, hw:cpu_policy=dedicated, hw:mem_page_size=2M;
          • set 2: hw:cpu_policy=dedicated, hw:mem_page_size=2M
        • Hence the flavors named with prefix of "onap." are:
          • onap.flavor2.medium
            • medium with HPA set 1
          • onap.flavor2.large
            • large  with HPA set 1
          • onap.flavor3.medium
            • medium with HPA set 2
          • onap.flavor3.large
            • large with HPA set 2

    • Use modified CSARs flavorLabel attributes to match the ones created in policy - See below 'HPA Updated CSAR's' section.
    • Distribute CSARs to SO
  • At vCPE Service Instantiation
    • Send updated REST service instantiation request to SO that includes user param: Customer_Location
  • Continue the same as vCPE Regression and confirm all is well

Updates: 
Tuesday     5/29/18

Started integration testing by setting up vCPE use case in SB01. Will update wiki with instructions on the additional procedures.

Wednesday      5/16/18 


Example policies and modified CSAR's have been created and attached to this page. On policy side more will need to be created for all vCPE CSARs.

...