Please confirm the following
Bug Summary
I have a lab with AAP 2.4 and Gitlab. I am trying to sync a rulebook repo so I can work with the EDA controller. I am getting an SSL error because of a self signed cert on my Gitlab server.
Ive tried adding the below.
git config http.sslVerify false
git config --global http.sslVerify false
export GIT_SSL_NO_VERIFY=true
Environment
Rhel9
Steps to reproduce
Sync a project repo with a gitlab server that has a self signed cert
Actual results
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[373378]: 2023-07-21 13:46:58,762 INFO default: aap_eda.tasks.project.sync_project(project_id=4) (e502c624-06b3-4b5a-8f0a-bd11d4debcb3)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: 2023-07-21 13:46:58,776 INFO Task started: Sync project ( project_id=4 )
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: 2023-07-21 13:46:58,914 WARNING Command returned non-zero exit status 128:
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: #011command: ['/usr/bin/git', 'clone', '--quiet', '--depth', '1', 'https://root:[email protected]/root/rulebooks.git', '/tmp/eda-project-tyd62sso/src']
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: #011stderr: fatal: unable to access 'https://192.168.0.13/root/rulebooks.git/': SSL certificate problem: self-signed certificate
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: 2023-07-21 13:46:58,924 ERROR Traceback (most recent call last):
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/git.py", line 159, in call
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: try:
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib64/python3.9/subprocess.py", line 528, in run
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: raise CalledProcessError(retcode, process.args,
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: subprocess.CalledProcessError: Command '['/usr/bin/git', 'clone', '--quiet', '--depth', '1', 'https://root:[email protected]/root/rulebooks.git', '/tmp/eda-project-tyd62sso/src']' returned non-zero exit status 128.
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: During handling of the above exception, another exception occurred:
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: Traceback (most recent call last):
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/rq/worker.py", line 1061, in perform_job
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: rv = job.perform()
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/rq/job.py", line 821, in perform
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: self._result = self._execute()
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/rq/job.py", line 844, in _execute
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: result = self.func(*self.args, **self.kwargs)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/tasks/project.py", line 39, in sync_project
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: ProjectImportService().sync_project(project)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/imports.py", line 57, in wrapper
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: func(self, project)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/imports.py", line 100, in sync_project
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: repo = self._git_cls.clone(
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/git.py", line 132, in clone
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: _executor(cmd)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/git.py", line 179, in call
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: logger.warning(message, e.returncode, e.cmd, e.stderr)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: aap_eda.services.project.git.GitError: Command '['/usr/bin/git', 'clone', '--quiet', '--depth', '1', 'https://root:[email protected]/root/rulebooks.git', '/tmp/eda-project-tyd62sso/src']' returned non-zero exit status 128.
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: Traceback (most recent call last):
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/git.py", line 159, in call
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: try:
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib64/python3.9/subprocess.py", line 528, in run
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: raise CalledProcessError(retcode, process.args,
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: subprocess.CalledProcessError: Command '['/usr/bin/git', 'clone', '--quiet', '--depth', '1', 'https://root:[email protected]/root/rulebooks.git', '/tmp/eda-project-tyd62sso/src']' returned non-zero exit status 128.
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: During handling of the above exception, another exception occurred:
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: Traceback (most recent call last):
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/rq/worker.py", line 1061, in perform_job
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: rv = job.perform()
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/rq/job.py", line 821, in perform
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: self._result = self._execute()
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/rq/job.py", line 844, in _execute
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: result = self.func(*self.args, **self.kwargs)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/tasks/project.py", line 39, in sync_project
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: ProjectImportService().sync_project(project)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/imports.py", line 57, in wrapper
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: func(self, project)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/imports.py", line 100, in sync_project
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: repo = self._git_cls.clone(
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/git.py", line 132, in clone
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: _executor(cmd)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: File "/usr/lib/python3.9/site-packages/aap_eda/services/project/git.py", line 179, in call
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: logger.warning(message, e.returncode, e.cmd, e.stderr)
Jul 21 08:46:58 aap-eda automation-eda-controller-worker-1[427478]: aap_eda.services.project.git.GitError: Command '['/usr/bin/git', 'clone', '--quiet', '--depth', '1', 'https://root:[email protected]/root/rulebooks.git', '/tmp/eda-project-tyd62sso/src']' returned non-zero exit status 128.
[root@aap-eda ~]#
Expected results
Project sync
Additional information
No response