This patch provides Change current VNF package API and
Rollback of its operation for the Terraform infra-driver.
In this API for Terraform infra-driver, overwrite old tf files
with new tf files in new vnf package
(Rollback is the opposite of this).
Therefore, there are no limitation in tf file.
This patch also includes tiny refactoring of
tacker/sol_refactored/infra_drivers/terraform/terraform.py
as follows:
- Changing the implementation regarding Terraform commands
because the options given differ depending on the terraform
command or LCM operation.
- Changing _exec_cmd to use the built-in error handling option
of the subprocess module [1]
- Changing the error handling to the same strategy as the helm
infra-driver [2]
[1] https://docs.python.org/ja/3/library/subprocess.html
[2] https://github.com/openstack/tacker/blob/master/tacker/sol_refactored/infra_drivers/kubernetes/helm_utils.py#L33C1-L41C22
Implements: blueprint terraform-infra-driver-ccvp
Change-Id: I00d883f879d9e4a0d72d4e78cb4d0071649fb5ad