E-CM: Importing Environment Using PeopleSoft Cloud Manager Fails with Error "ERROR Runtime exception occurred !. ex: [Errno 2] No such file or directory: 'tofu'"
(Doc ID 3041142.1)
Last updated on AUGUST 13, 2024
Applies to:
PeopleSoft Cloud Manager - Version 17 and laterInformation in this document applies to any platform.
Symptoms
When trying to Import an Environment using CM, the step "Import as Managed Environment" fails with:
Error as seen in the CM console:
Error: Failed while executing import
Error as seen in console.log:
Traceback (most recent call last):
File "<PS_APP_HOME>/cloud/terraform_oci_driver.py", line 708, in <module>
tf_executor.command_initialize(environmentVariables)
File "<PS_APP_HOME>/cloud/terraform_oci_driver.py", line 135, in command_initialize
pop = subprocess.Popen([self.terraform_val, "init", "-force-copy", "-upgrade"], env=envVariables, cwd=self.tf_env_dir, stdout=self.tf_out, stderr=self.tf_err)
File "<PS_APP_HOME>/cloud/lnx_python/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "<PS_APP_HOME>/cloud/lnx_python/lib/python3.10/subprocess.py ", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'tofu'
File "<PS_APP_HOME>/cloud/terraform_oci_driver.py", line 708, in <module>
tf_executor.command_initialize(environmentVariables)
File "<PS_APP_HOME>/cloud/terraform_oci_driver.py", line 135, in command_initialize
pop = subprocess.Popen([self.terraform_val, "init", "-force-copy", "-upgrade"], env=envVariables, cwd=self.tf_env_dir, stdout=self.tf_out, stderr=self.tf_err)
File "<PS_APP_HOME>/cloud/lnx_python/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "<PS_APP_HOME>/cloud/lnx_python/lib/python3.10/subprocess.py ", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'tofu'
Error seen in out.log:
<DATE/TIME> DEBUG Inside TerraformExecutor.command_initialize
<DATE/TIME> ERROR Runtime exception occurred !. ex: [Errno 2] No such file or directory: 'tofu'
<DATE/TIME> DEBUG Sending back the task result.
<DATE/TIME> ERROR Runtime exception occurred !. ex: [Errno 2] No such file or directory: 'tofu'
<DATE/TIME> DEBUG Sending back the task result.
Steps to replicate the issue:
1. Initiate the Environment Import using Cloud Manager.
2. See the error at step - "Import as Managed Environment".
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |