...
Gliffy Diagram size 1200 name vCPEPoliciesAndInformationSources pagePin 18
Homing Workflow
...
SO - HAS API (R) - before retrieving homing policies
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
requestInfo: |
...
callbackUrl: https://so:5000/callback numSolutions: 1 optimizer: - placement requestId: yyy-yyy-yyyy sourceId: so timeout: 600 transactionId: xxx-xxx-xxxx requestType: new placementInfo: orderInfo: requestParameters: customerLatitude: 32.897480 customerLongitude: -97.040443 customerName: some_company demandInfo: placementDemands: - resourceName: vGMuxInfra resourceId: some_resource_id tenantId: some_tenant_id resourceModelInfo: modelId: vGMux_model_id modelName: '' modelType: allotted modelVersion: '2.0' existingPlacement: serviceInstanceId: 87257b49-9602-4ca1-9817-094e52bc873b excludedCandidates: - candidateType: service candidates: - serviceInstanceId: 1ac71fb8-ad43-4e16-9459-c3f372b8236d |
...
requiredCandidates: - candidateType: service |
...
candidates: - serviceInstanceId: 7e6c3e57-62cd-44f6-aa88-d0896998f7ec |
...
- resourceName: vG tenantId: some_tenant_id resourceId: 71d563e8-e714-4393-8f99-cc480144a05e resourceModelInfo: modelId: vG_model_id modelName: '' modelType: dedicated modelVersion: '2.0' existingPlacement: serviceInstanceId: 21d5f3e8-e714-4383-8f99-cc480144505a excludedCandidates: - candidateType: service candidates: - serviceInstanceId: 1ac71fb8-ad43-4e16-9459-c3f372b8236d |
...
requiredCandidates: - candidateType: cloud candidates: - cloud-region-id: TXAUS219 |
...
otherInfo: serviceInstanceId: d61b2543-5914-4b8f-8e81-81e38575b8ec serviceModelInfo: serviceName: Residential vCPE service_id: vcpe_service_id serviceType: service serviceVersion: '1.0' |
HAS Homing Specification (R') - after retrieving and translating homing policies
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "homing_template_version": "2017-10-10", "parameters": { "service_name": "Residential vCPE", "service_id": "vcpe_service_id", "customer_lat": 32.89748, "customer_long": -97.040443, "REQUIRED_MEM": 4, "REQUIRED_DISK": 100, "pnf_id": "some_pnf_id" }, "locations": { "customer_loc": { "latitude": { "get_param": "customer_lat" }, "longitude": { "get_param": "customer_long" } }, }, "brg_locdemands": { "pnf_host_namevGMuxInfra": [ { "getinventory_paramprovider": "pnf_idaai", } } }, "demands": { "vGMuxInfra": [ { "inventory_provider": "aai""inventory_type": "service", "inventory_type": "service", "attributes": { "equipment_type": "vG_Mux", "customer_id": "some_company" }, "excluded_candidates": [ { "candidate_id": "1ac71fb8-ad43-4e16-9459-c3f372b8236d" } ], "existing_placement": [ { "candidate_id": "21d5f3e8-e714-4383-8f99-cc480144505a" } ] } ], "vG": [ { "inventory_provider": "aai", "inventory_type": "cloud" } ] }, "constraints": [ { "constraint_vgmux_customer": { "type": "distance_to_location", "demands": [ "vGMuxInfra" ], "properties": { "distance": "< 100 km", "location": "customer_loc" } }, }, { ""colocation": { "type": "zone", "demands": [ "vGMuxInfra", "vG" ], "properties": { "qualifier": "same", "category": "region" } } }, { "hpa_constraint": { "type": "hpa", "demands": [ "vG" ], "properties": { "evaluate": [ { "labelflavorLabel": "flavor_label_1", "featuresflavorProperties": [ { "hpa-feature": "basicCapabilities", "hpa-version": "v1", "architecture": "generic", "hpa-feature-attributes": [ { "hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "4", "operator": "=" }, { "hpa-attribute-key": "virtualMemSize", "hpa-attribute-value": "4", "operator": "=", "unit": "GB" } ] }, { "hpa-feature": "numa", "hpa-version": "v1", "architecture": "generic", "hpa-feature-attributes": [ { "hpa-attribute-key": "numaNodes", "hpa-attribute-value": "2", "operator": "=" }, { "hpa-attribute-key": "numaCpu-0", "hpa-attribute-value": "2", "operator": "=" }, { "hpa-attribute-key": "numaCpu-1", "hpa-attribute-value": "4", "operator": "=" }, { "hpa-attribute-key": "numaMem-0", "hpa-attribute-value": "2", "operator": "=", "unit": "GB" }, { "hpa-attribute-key": "numaMem-1", "hpa-attribute-value": "4", "operator": "=", "unit": "GB" } ] }, { "hpa-feature": "cpuPinning", "hpa-version": "v1", "architecture": "generic", "hpa-feature-attributes": [ { "hpa-attribute-key": "logicalCpuThreadPinningPolicy", "hpa-attribute-value": "prefer", "operator": "=" }, { "hpa-attribute-key": "logicalCpuPinningPolicy", "hpa-attribute-value": "dedicated", ""operator": "=" } ] } ] }, { "labelflavorLabel": "flavor_label_2", "featuresflavorProperties": [ { "hpa-feature": "basicCapabilities", "hpa-version": "v1", "architecture": "generic", "hpa-feature-attributes": [ { "hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "8", "operator": "=" }, { "hpa-attribute-key": "virtualMemSize", "hpa-attribute-value": "16", "operator": "=", "unit": "GB" } ] }, { "hpa-feature": "numa", "hpa-version": "v1", "architecture": "generic", "hpa-feature-attributes": [ { "hpa-attribute-key": "numaNodes", "hpa-attribute-value": "2", "operator": "=" }, { "hpa-attribute-key": "numaCpu-0", "hpa-attribute-value": "2", "operator": "=" }, { "hpa-attribute-key": "numaCpu-1", "hpa-attribute-value": "4", "operator": "=" }, { "hpa-attribute-key": "numaMem-0", "hpa-attribute-value": "2", "operator": "=", "unit": "GB" }, { "hpa-attribute-key": "numaMem-1", "hpa-attribute-value": "4", "operator": "=", "unit": "GB" } ] }, { "hpa-feature": "memoryPageSize", "hpa-version": "v1", "architecture": "generic", "hpa-feature-attributes": [ { "hpa-attribute-key": "memoryPageSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB" } ] } ] } ] } } }, { "check_cloud_min_guaranteecapacity": { "type": "attributevim_fit", "demands": [ "vG" ], "properties": { "evaluatecontroller": {"multicloud", "cpu_min_guarantee"request": true,{ "mem_min_guarantee"vCPU": true10, }"Memory": { } }"quantity": { }, { "checkget_cloud_capacityparam": null,"REQUIRED_MEM" "type": "vim_fit", }, "demandsunit": ["GB" "vG" }, ], "propertiesStorage": { "vim-controller": "multicloud", "requestquantity": { "vCPU "get_param": 10,"REQUIRED_DISK" "mem": { }, "quantityunit": {"GB" } "get_param": "REQUIRED_MEM" } } } }, "optimization": { "minimize": { "unitsum": "GB"[ },{ "diskdistance_between": {[ "quantity": {customer_loc", "get_param": "REQUIRED_DISK""vGMuxInfra" },] }, "unit": "GB" { } }"distance_between": [ } } ]"customer_loc", "optimization": { "minimize": { "sumvG": [ { ] "distance_between": [} ] "customer_loc",} } } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
--- homing_template_version: '2017-10-10' parameters: service_name: Residential vCPE service_id: vcpe_service_id customer_lat: 32.89748 customer_long: -97.040443 REQUIRED_MEM: 4 REQUIRED_DISK: 100 locations: customer_loc: latitude: get_param: customer_lat longitude: get_param: customer_long demands: vGMuxInfra: - inventory_provider: aai inventory_type: service attributes: equipment_type: vG_Mux customer_id: some_company excluded_candidates: - candidate_id: 1ac71fb8-ad43-4e16-9459-c3f372b8236d existing_placement: - candidate_id: 21d5f3e8-e714-4383-8f99-cc480144505a vG: - inventory_provider: aai inventory_type: cloud constraints: constraint_vgmux_customer: type: distance_to_location demands: - vGMuxInfra properties: distance: "< 100 km" location: customer_loc colocation: type: zone demands: - vGMuxInfra - vG properties: qualifier: same category: region hpa_constraint: type: hpa demands: - vG properties: evaluate: - flavorLabel: flavor_label_1 flavorProperties: - hpa-feature: basicCapabilities hpa-version: v1 architecture: generic hpa-feature-attributes: - hpa-attribute-key: numVirtualCpu hpa-attribute-value: '4' operator: "=" - hpa-attribute-key: virtualMemSize hpa-attribute-value: '4' operator: "vGMuxInfra=" ] unit: GB - hpa-feature: numa hpa-version: v1 architecture: generic hpa-feature-attributes: }, - hpa-attribute-key: numaNodes { "distance_between": [hpa-attribute-value: '2' "customer_loc",operator: "=" - "vG"hpa-attribute-key: numaCpu-0 ] hpa-attribute-value: '2' } operator: "=" ] } } } | ||||||
Code Block | ||||||
| ||||||
--- homing_template_version: '2017-10-10' parameters: service_name: Residential vCPE service_id: vcpe_service_id customer_lat: 32.89748 customer_long: -97.040443 REQUIRED_MEM: 4 REQUIRED_DISK: 100 pnf_id: some_pnf_id locations: customer_loc: latitude: get_param: customer_lat longitude: get_param: customer_long brg_loc: pnf_host_name: get_param: pnf_id demands: vGMuxInfra: - inventory_provider: aai inventory_type: service attributes: equipment_type: vG_Mux- hpa-attribute-key: numaCpu-1 hpa-attribute-value: '4' operator: "=" - hpa-attribute-key: numaMem-0 hpa-attribute-value: '2' operator: "=" unit: GB - hpa-attribute-key: numaMem-1 hpa-attribute-value: '4' customer_id: some_company excluded_candidates:operator: "=" - candidate_id: 1ac71fb8-ad43-4e16-9459-c3f372b8236d existing_placementunit: GB - candidate_id: 21d5f3e8-e714-4383-8f99-cc480144505a vG: - - inventory_providerhpa-feature: aaicpuPinning inventory_type: cloud constraints: - constraint_vgmux_customer: typehpa-version: distance_to_locationv1 demands: -architecture: vGMuxInfrageneric properties: distancehpa-feature-attributes: "< 100 km" location: customer_loc - colocation:hpa-attribute-key: logicalCpuThreadPinningPolicy type: zone demands: hpa-attribute-value: vGMuxInfraprefer - vG properties: operator: "=" qualifier: same category: region - hpa_constraint:-attribute-key: logicalCpuPinningPolicy type: hpa demands: hpa-attribute-value: vGdedicated properties: evaluateoperator: "=" - labelflavorLabel: flavor_label_12 featuresflavorProperties: - hpa-feature: basicCapabilities hpa-version: v1 architecture: generic hpa-feature-attributes: - hpa-attribute-key: numVirtualCpu hpa-attribute-value: '48' operator: "=" - hpa-attribute-key: virtualMemSize hpa-attribute-value: '416' operator: "=" unit: GB - hpa-feature: numa hpa-version: v1 architecture: generic hpa-feature-attributes: - hpa-attribute-key: numaNodes hpa-attribute-value: '2' operator: "=" - hpa-attribute-key: numaCpu-0 hpa-attribute-value: '2' operator: "=" - hpa-attribute-key: numaCpu-1 hpa-attribute-value: '4' operator: "=" - hpa-attribute-key: numaMem-0 hpa-attribute-value: '2' operator: "=" unit: GB - hpa-attribute-key: numaMem-1 hpa-attribute-value: '4' operator: "=" unit: GB - hpa-feature: cpuPinningmemoryPageSize hpa-version: v1 architecture: generic hpa-feature-attributes: - hpa-attribute-key: logicalCpuThreadPinningPolicymemoryPageSize hpa-attribute-value: prefer'2' operator: "=" - hpa-attribute-key: logicalCpuPinningPolicy unit: GB check_cloud_capacity: type: vim_fit demands: hpa-attribute-value: dedicated - vG properties: controller: multicloud operator request: "=" - labelvCPU: flavor_label_210 featuresMemory: - hpa-featurequantity: basicCapabilities hpa-versionget_param: v1REQUIRED_MEM architectureunit: genericGB hpa-feature-attributesStorage: - hpa-attribute-key: numVirtualCpuquantity: hpa-attribute-value: '8'get_param: REQUIRED_DISK operator: "="unit: GB optimization: minimize: sum: - hpa-attribute-key: virtualMemSizedistance_between: - customer_loc hpa-attribute -value: '16'vGMuxInfra - distance_between: operator: "="- customer_loc - vG |
HAS Homing Response
State - Done
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "plans": [ unit: GB{ "status": "done", - hpa-feature: numa "id": "plan_id", hpa-version"name": v1 "Plan Name 1", architecture"links": generic[ hpa-feature-attributes:[ - hpa-attribute-key: numaNodes{ hpa-attribute-value: '2'"href": "http://conductor:8091/v1/plans/plan_id", operator"rel": "=self" } - hpa-attribute-key: numaCpu-0 ] ], hpa-attribute-value: '2' "recommendations": [ operator: "="{ - hpa-attribute-key"vG": numaCpu-1{ hpa-attribute-value: '4'"inventory_provider": "aai", operator"candidate": "="{ - hpa-attribute-key: numaMem-0 "candidate_id": "DLLSTX1A", hpa-attribute-value: '2'"cloud_owner": "CloudOwner1", operator "inventory_type": "=cloud", unit"location_id": GB "DLLSTX1A", - hpa-attribute-key: numaMem-1 "location_type": "openstack-cloud" hpa-attribute-value: '4'}, operator"attributes": "="{ unit "flavors": GB{ - hpa-feature: memoryPageSize "flavor_label_1": "vim_flavor_X", hpa-version: v1 architecture"flavor_label_2": generic"vim_flavor_Y" hpa-feature-attributes: }, - hpa-attribute-key: memoryPageSize "cloud_owner": "CloudOwner1", hpa-attribute-value: '2' operator"physical-location-id": "=DLLSTX1A", unit: GB - "cloud_min_guarantee: type: attribute version": "3.0", "vim-id": "CloudOwner1_DLLSTX1A" demands: - vG} properties: evaluate:} cpu_min_guarantee: true}, mem_min_guarantee: true - check_cloud_capacity: { type: vim_fit demands:"vGMuxInfra": { - vG properties: controller"attributes": multicloud{ request: vCPU"host_id": 10"vgmux_host_name", Memory: "cloud_owner": "CloudOwner1", quantity: get_param: REQUIRED_MEM"physical-location-id": "DLLSTX1A", unit: GB "service_instance_id": "21d5f3e8-e714-4383-8f99-cc480144505a", Storage: "cloud_version": "3.0", quantity:"vim-id": "CloudOwner1_DLLSTX1A" get_param: REQUIRED_DISK }, unit"inventory_provider": GB optimization: "aai", minimize: sum: - distance_between:"service_resource_id": "12345", - customer_loc "candidate": { - vGMuxInfra - distance"is_between: rehome": "false", - customer_loc - vG |
HAS Homing Response
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "recommendations": [ "location_id": "DLLSTX1A", { "vGinventory_type": { "service", "inventorycandidate_providerid": "aai21d5f3e8-e714-4383-8f99-cc480144505a", "candidate "host_id": {"vgmux_host_name", "candidatecloud_idowner": "DLLSTX1ACloudOwner1", "cloudlocation_ownertype": "rackspace", openstack-cloud" } } } "inventory_type": "cloud", ] } ] } |
State - Error
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "is_rehomeplans": false,[ { "location_idstatus": "DLLSTX1Aerror", "location_type"message": "openstack-cloudSome error message", "vim-idname": "rackspace_DLLSTX1A" Plan }Name 1", "attributeslinks": {[ "cloud_owner": "rackspace",[ "flavors": { "flavor_label_1"href": "vim_flavor_Xhttp://conductor:8091/v1/plans/plan_id", "flavor_label_2"rel": "vim_flavor_Yself" }, "physical-location-id": "DLLSTX1223"] ], } }"id": "plan_id" }, ] } |
State - Template
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "vGMuxInfrastatus": {"template", "name": "Plan Name 1", "inventory_providerlinks": "aai",[ [ "candidate": { "candidate_idhref": "21d5f3e8-e714-4383-8f99-cc480144505ahttp://conductor:8091/v1/plans/plan_id", "cloud_ownerrel": "rackspaceself", } "host_id": "vgmux_host_name"] ], "inventory_type"id": "plan_id" } |
State - Solving
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "plans": [service", "is_rehome": false, { "location_idstatus": "DLLSTX1Asolving", "location_typename": "openstack-cloudPlan Name 1", "vim-idlinks": "rackspace_DLLSTX1A"[ },[ "attributes": { "cloud_ownerhref": "rackspacehttp://conductor:8091/v1/plans/plan_id", "physical-location-id "rel": "DLLSTX1223self" } ] }], "id": "plan_id" } ] } |