-
Bug
-
Resolution: Won't Do
-
Normal
-
None
-
1.8.0, 1.6.7
-
5
-
False
-
None
-
False
-
-
-
GitOps Crimson - Sprint 3262
Description of problem:
Misleading Error Messages in GitOps ArgoCD
Please can these error messages be improved as they are very confusing and waste lots of developer time!
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- In an ArgoCD Application if an invalid hostname, wrong port number, no matching credentials are supplied the error is:
"rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"
- In an ArgoCD ApplicationSet using the git generator, if there are no matching credentials, the SSH key doesn't have permission to clone, or an invalid URL path the error is:
Error during fetching repo: `git fetch origin dev --tags --force` failed exit status 128: Could not create directory '/.ssh'. Failed to add the RSA host key for IP address '[<IP>]:2222' to the list of known hosts (/.ssh/known_hosts). gitea@gitea-ssh.dev-tools: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Reproducibility (Always/Intermittent/Only Once): Always
ACCEPTANCE CRITERIA:
- Log proper error message which explains the issue.