Enhance Placement Process¶
This specification supports the placement functionality for VNF instance and enhances the applicability of Tacker to various systems.
Problem description¶
The placement constraints are defined in ETSI NFV-SOL 003 v3.3.1
[1] and that VNFM sends to NFVO in order to the resource
placement decision.
In VNF Lifecycle Management (LCM), there are some cases that VNFs are
not deployed due to placement constraints or lack of availability zone’s
resources.
From a high-availability perspective, Tacker needs to implement a
fallbackBestEffort
option in Grant Request and availability zone
reselection functions.
Proposed change¶
1. Add fallbackBestEffort parameter¶
fallbackBestEffort
is to look for an alternate best effort placement
for specified resources cannot be allocated based on specified placement
constraint and defined in ETSI NFV-SOL 003 v3.3.1 [1].
On this specification, Tacker will support additional parameter
fallbackBestEffort
in Grant Request (PlacementConstrains
) and Tacker
configuration settings.
We will modify Tacker conductor and tacker.conf
.
Add definitions details are described in 3. Add definitions to the
configuration file.
GrantRequest.PlacementConstrains
Attribute name
Data type
Cardinality
Description
fallbackBestEffort
Boolean
0..1
Indication if the constraint is handled with fall back best effort. Default value is “false”.
Note
If fallbackBestEffort
is present in placement constraints and set to
“true”, the NFVO shall process the Affinity/Anti-Affinity constraint
in a best effort manner, in which case, if specified resources cannot
be allocated based on specified placement constraint, the NFVO looks
for an alternate best effort placement for the specified resources to
be granted.
2. Availability zone reselection¶
The VNFLCM v2 API (instantiate/heal/scale for VNF) process can change the availability zone to be used from the one notified by the NFVO if necessary. If the availability zone notified by the NFVO has insufficient resources, the VNF is re-created/updated in a different availability zone. The availability zone is reselected and the VNF is re-created/updated until there are no more candidates.
Note
Availability zone reselection is valid only when StandardUserData is specified for the user data class.
1) Flowchart of availability zone reselection¶
The procedure consists of the following steps as illustrated in above flow:
Execute “stack create/update” in the availability zone notified by the NFVO.
If an insufficient resource error occurs in 1, get the availability zone list. Availability zone list details are described in 2) Get and manage availability zone list.
Select an availability zone (excluding the availability zone where the error occurred) from the availability zone list obtained in 2, and re-execute “stack create/update”. Reselection policy details are described in 3) Availability zone reselection policy.
If “stack create/update” in the availability zone reselected in 3 becomes an insufficient resource error, reselect the availability zone and repeat until “stack create/update” succeeds or until all availability zone candidates fail.
Note
Detecting error details are described in 4) Detection method of insufficient resource error. If the error is other than insufficient resource error, the process ends(fails) without reselecting availability zones.
2) Get and manage availability zone list¶
Get availability zone list
Extract all availability zones as candidates for reselection without limiting the availability zones to be reselected. Although it is possible to extract only availability zones permitted by Grant as candidates for reselection, this is not adopted in this Spec because it depends on the NFVO product specifications.
The concept of availability zone exists for Compute/Volume/Network, but this Spec targets only Compute. The reason is that SOL(SOL003 v3.3.1 Type: GrantInfo [1]) specifies that the zoneId of GrantInfo, which is the data type of addResources, etc., is usually specified as a COMPUTE resource.
Note
SOL003 v3.3.1 Type: GrantInfo
Reference to the identifier of the “ZoneInfo” structure in the “Grant” structure defining the resource zone into which this resource is to be placed. Shall be present for new resources if the zones concept is applicable to them (typically, Compute resources) and shall be absent for resources that have already been allocated. Shall be present for new resources if the zones concept is applicable to them (typically, Compute resources) and shall be absent for resources that have been allocated.
Call the Compute-API “GetDetailedAvailabilityZoneInformation” [2] to get the availability zones from the “hosts” response associated with “nova-compute”.
Compute endpoints are obtained in the following way.
Manage availability zone list
Keep in on-memory until availability zone reselection iterations are completed, and discard after completion (no storage in DB).
Note
Error-Handling Retry consideration
Since the availability zone list is not saved and is retrieved again, there is no guarantee that the availability zone is reselected in the same order when Retry is executed.
3) Availability zone reselection policy¶
Availability zones in error are excluded from the reselection candidates, and are reselected considering Anti-Affinity of PlacementConstraint.
Note
Resource states of availability zones are not considered during reselection.
The availability zone in error can be identified in the following way.
Call Heat-API “Show stack details” after an error occurs in “stack create/update”
Identify the VDU where the error occurred due to insufficient resource by the stack_status_reason in the response of 1.
Identify the availability zone by the VDU identified in 2.
Note
Insufficient resource in availability zones that once failed during reselection attempts may be resolved, but the availability zones will not be reselected. In Scale/Heal operations, VDUs that have already been deployed will not be re-created.
Availability zone reselection for each VNFLCM v2 API (instantiate/heal/scale for VNF) is as follows.
Precondition: availability zone AZ-1/AZ-2/AZ-3/AZ-4/AZ-5 exist and VNF VDU1-0/VDU1-1/VDU2-0/VDU2-1 are deployed
Note
VNFs in VDU1 are in the same availability zone (Affinity), and VNFs in VDU2 and VDU1/VDU2 are in different availability zones (Anti-Affinity).
Instantiate
Before reselection, the following attempts to deploy failed (AZ-1 and AZ-2 have insufficient resource)
VDU1-0: AZ-1
VDU1-1: AZ-1
VDU2-0: AZ-2
VDU2-1: AZ-3
VDU1-0/1: Reselect the following (except AZ-1/AZ-2/AZ-3, select AZ-4 or AZ-5)
VDU1-0: AZ-4
VDU1-1: AZ-4
VDU2-0: AZ-2
VDU2-1: AZ-3
VDU2-0: Reselect the following (except AZ-2/AZ-3/AZ-4, select AZ-1 or AZ-5)
VDU1-0: AZ-4
VDU1-1: AZ-4
VDU2-0: AZ-5
VDU2-1: AZ-3
Note
The above is an example, and the reselection target is randomly selected from availability zone candidates.
Heal(VDU1-1/VDU2-0)
Before reselection, the following attempts to deploy failed (AZ-1 and AZ-2 have insufficient resource)
VDU1-0: AZ-1
VDU1-1: AZ-1
VDU2-0: AZ-2
VDU2-1: AZ-3
VDU1-1: Reselect the following (except AZ-1/AZ-2/AZ-3, select AZ-4 or AZ-5)
VDU1-0: AZ-1
VDU1-1: AZ-4
VDU2-0: AZ-2
VDU2-1: AZ-3
Note
Only Heal target VNFs are targeted for availability zone reselection. Therefore, Affinity may not be satisfied due to the operation of reselection.
VDU2-0: Reselect the following (except AZ-1/AZ-2/AZ-3/AZ-4, select AZ-5)
VDU1-0: AZ-1
VDU1-1: AZ-4
VDU2-0: AZ-5
VDU2-1: AZ-3
Scale out(add VDU1-2/VDU1-3)
Before reselection, VDU1-3 deploy failed (AZ-1 has insufficient resource)
VDU1-0: AZ-1
VDU1-1: AZ-1
VDU1-2: AZ-1
VDU1-3: AZ-1
VDU2-0: AZ-2
VDU2-1: AZ-3
VDU1-2/3: Reselect the following (except AZ-1/AZ-2/AZ-3, select AZ-4 or AZ-5)
VDU1-0: AZ-1
VDU1-1: AZ-1
VDU1-2: AZ-4
VDU1-3: AZ-4
VDU2-0: AZ-2
VDU2-1: AZ-3
Note
In the case of Affinity, even if VDU1-2 has been successfully deployed, both VDU1-2/VDU1-3 availability zones will be reselected. Existing VDU1-0/VDU1-1 will not be reselected, so all VDUs may not be in the same availability zone even in Affinity case.
Scale out(add VDU2-2/VDU2-3)
Before reselection, VDU2-3 deploy failed (AZ-5 has insufficient resource)
VDU1-0: AZ-1
VDU1-1: AZ-1
VDU2-0: AZ-2
VDU2-1: AZ-3
VDU2-2: AZ-4
VDU2-3: AZ-5
VDU2-3: Reselect the following (except AZ-5, select AZ-1 or AZ-2 or AZ-3 or AZ-4)
VDU1-0: AZ-1
VDU1-1: AZ-1
VDU2-0: AZ-2
VDU2-1: AZ-3
VDU2-2: AZ-4
VDU2-3: AZ-1
Note
If there are no availability zone candidate considering Anti-Affinity left, randomly select a reselection target from other than the failed availability zones. In this case, Anti-Affinity cannot be satisfied.
4) Detection method of insufficient resource error¶
When “stack create/update” fails, it is detected from “List resource events” [5] of Heat-API response whether the failure is due to insufficient resources. The error message that indicates insufficient resources is extracted from the parameter “resource_status_reason” in the response.
Note
In the case of insufficient resources, the error occurs after “stack create/update” returns an acceptance response, so the “List resource events” response is used to detect the cause.
The following is an example of an error message stored in “resource_status_reason” when resources are insufficient.
ex1) Set the flavor defined in “OS::Nova::Server” to a large value that cannot be deployed (not enough storage/not enough vcpu/not enough memory).
Resource CREATE failed: ResourceInError: resources.<VDU-name>: Went to status ERROR due to “Message: No valid host was found. , Code: 500”
ex2) Specifies an extra-spec that cannot be assigned for the flavor defined in “OS::Nova::Server.”
Resource CREATE failed: ResourceInError: resources.<VDU-name>: Went to status ERROR due to “Message: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance <server-UUID>., Code: 500”
Error messages that Tacker detects as insufficient resources are specified by a regular expression in the configuration file. Add definitions details are described in 3. Add definitions to the configuration file.
By changing the method of specifying this regular expression in accordance with the operational policy, it is possible to flexibly set a policy to detect more error messages as insufficient resource with a higher tolerance for misdetection, or to detect only specific error messages as insufficient resource.
ex1) Regular expression for a policy to detect more error messages as insufficient resource by increasing the tolerance for misclassification
Resource CREATE failed:(. *)
ex2) Regular expression to specify the policy to detect more error messages as insufficient resource with higher tolerance for false positives
Resource CREATE failed: ResourceInError: resources(. *): Went to status ERROR due to “Message: No valid host was found. *): Went to status ERROR due to “Message: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance(. *). , Code: 500”.
3. Add definitions to the configuration file¶
Add the following definition to the tacker.conf
file.
Boolean value of “GrantRequest.PlacementConstrains.fallbackBestEffort”
Default value: “false”
Regular expression for detecting insufficient resource error
Default value: regular expression for insufficient resource error
Note
Consider the regular expression that can catch stack create and stack update errors.
Maximum number of retries for reselection of availability zone
Default value: no upper limit
Note
Consider the case where there are a large number of availability zones and the availability zone reselection process takes too long.
Data model impact¶
None
REST API impact¶
None
Security impact¶
None
Notifications impact¶
None
Other end user impact¶
None
Performance Impact¶
None
Other deployer impact¶
None
Developer impact¶
None
Implementation¶
Assignee(s)¶
- Primary assignee:
Yuta Kazato <yuta.kazato.nw@hco.ntt.co.jp>
Hirofumi Noguchi <hirofumi.noguchi.rs@hco.ntt.co.jp>
- Other contributors:
Hiroo Kitamura <hiroo.kitamura@ntt-at.co.jp>
Ai Hamano <ai.hamano@ntt-at.co.jp>
Work Items¶
Implement availability zone reselection functions.
Add new parameter
fallbackBestEffort
in GrantRequest API.Add new definitions to the Tacker configuration file
tacker.conf
.Add new unit and functional tests.
Add new examples to the Tacker User Guide.
Dependencies¶
Testing¶
Unit and functional test cases will be added for the new placement functionalities.
Documentation Impact¶
New supported functions need to be added into the Tacker User Guide.