Versions Compared

Key

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

Gliffy
size600800
namevCPEPoliciesAndInformationSources Copy


AAI Schema Changes  Refer → Persistence of HPA related information in AAI

HPACapabilities

Given a list of HPACapabilities as requirements, return the candidate list of (cloud region + flavor_reference) such that there exist at least one flavor with all HPACapabilities satisfied.

Naive Approach relying of resources micro service

  1. GET /cloud-infrastructure/cloud-regions (depth=0)
  2. From the list of cloud regions return list of cloud region matching all the mandatory HPA capabilities.  (Is there a way to efficiently do this in AAI to avoid step1)
  3. For Each cloud region from cloud_regions (from prev step)
    1. GET /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/flavors
    2. For Each flavor 
      1. Get RelationshipList and find the list of capabilities.

      2. Match the requirement with the list of capabilities

      3. Add the (cloud region + flavor_reference) to candidate list of cloud region

Desired Approach

  1. Get all flavors that satisfies all HPACapability requirements (HPA1 AND HPA2 AND HPA3) 
  2. Add all (cloud region + flavor_reference) to candidate list of cloud region

If using Naive approach how to efficiently do step 2.


Unknowns:

If no such candidate exist during step 3.b in Naive Approach

Then match the requirement with the list of capabilities (for capabilities not associated with any flavors) 

using GET /cloud-infrastructure/cloud-regions/cloud-region/{cloud-owner}/{cloud-region-id}/hpa-capabilities

Min Guarantee Capabilities

Get a list of canditate cloud regions and flavor references that satisfies the minimum guarantee requirements. For eg: cpu = 4, memory = 8GB

Question : Similar to HPACapabilities. Can we rely on flavors to get this information?

Location 

Existing Service location.

...

Given a cloud-region identify the location details from complex.

  1. GET /network/generic-vnfs?prov-status=PROV&equipment-role={}
  2. For Each vnf in generic-vnfs
    1. Get RelationshipList and find the list of vservers.
    2. For Each vserver in vservers list
      1. Get RelationshipList and find the pserver.
      2. Using the URL from relationship data get the pserver details /cloud-infrastructure/pservers/pserver 
        1. Get RelationshipList and find the complex
        2. Get complex information and location information

generic-vnf → vserver pserver pserver → cloud-region → complex  → (lat,long)

...

  • Does VIM onboarding ensures the complex information is populated and the relationship between Cloud-region and complex established? 
  • Confirm with ESR if this association between complex and cloud-region will be taken care
  • Who populates info on location(complex)?

HPACapabilities

Given a list of HPACapabilities as requirements, identify the candidate list of cloud regions and flavor reference associated with these cloud-regions

  • Get list of cloud regions matching all the mandatory HPA capabilities.
  • Filter by selecting cloud-regions that have existence of flavor-references associated with all HPACapabilties from requirement. (This will help to fetch the cloud regions and flavor with all capabilities satisfied

...

Min Guarantee Capabilities

Get a list of canditate cloud regions and flavor references that satisfies the minimum guarantee requirements. For eg: cpu = 4, memory = 8GB

  • - Looks like yes. Ask ESR.