Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure DevOps git fetch fails due to go-git issue #5235

Closed
mmckane opened this issue Feb 27, 2021 · 6 comments
Closed

Azure DevOps git fetch fails due to go-git issue #5235

mmckane opened this issue Feb 27, 2021 · 6 comments
Labels

Comments

@mmckane
Copy link

mmckane commented Feb 27, 2021

Summary

Trying to use Azure DevOps artifact clone for git over SSH and it fails.

example git input artifact block:

      artifacts:
      - name: k8s-mgmt
        path: /src
        git:
          repo: git@ssh.dev.azure.com:v3/REDACTED/k8s-applications
          revision: "master"
          sshPrivateKeySecret:
            name: ado-ssh
            key: id_rsa
          depth: 3

This appears to be related to argoproj/argo-cd#1067 and go-git/go-git#64

Can something like argoproj/argo-cd#1071 be implemented for argo workflows.

What version of Argo Workflows are you running?
2.9.1

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: workflow-template-cookiecutter
  namespace: argo
spec:
  templates:
  - name: deploy-application
    inputs:
      parameters:
      - name: repo_url
      - name: repo_path
      - name: app_env
      - name: cluster_env
      - name: revision
      - name: branch
      - name: helm
      artifacts:
      - name: k8s-mgmt
        path: /src
        git:
          repo: git@ssh.dev.azure.com:v3/REDACTED/k8s-applications
          revision: "master"
          sshPrivateKeySecret:
            name: ado-ssh
            key: id_rsa
          depth: 3
    script:
      command: ["python3"]
      image: REDACTED
      source: REDACTED
      volumeMounts:
      - mountPath: /src
        name: workdir
    outputs:
      parameters:
      - name: argocd_endpoints
        valueFrom:
          path: /src/ARGOCD_ENDPOINTS
      - name: argocd_app_name
        valueFrom:
          path: /src/ARGOCD_APP_NAME
      - name: argocd_app_init_name
        valueFrom:
          path: /src/ARGOCD_APP_INIT_NAME
      - name: argocd_team_name
        valueFrom:
          path: /src/ARGOCD_TEAM_NAME

Error from Init pod workflow doesn't even seem to start:

empty git-upload-pack given
github.com/argoproj/argo/errors.Wrap
	/go/src/github.com/argoproj/argo/errors/errors.go:88
github.com/argoproj/argo/errors.InternalWrapError
	/go/src/github.com/argoproj/argo/errors/errors.go:71
github.com/argoproj/argo/workflow/artifacts/git.gitClone
	/go/src/github.com/argoproj/argo/workflow/artifacts/git/git.go:96
github.com/argoproj/argo/workflow/artifacts/git.(*GitArtifactDriver).Load
	/go/src/github.com/argoproj/argo/workflow/artifacts/git/git.go:42
github.com/argoproj/argo/workflow/executor.(*WorkflowExecutor).LoadArtifacts
	/go/src/github.com/argoproj/argo/workflow/executor/executor.go:165
github.com/argoproj/argo/cmd/argoexec/commands.loadArtifacts
	/go/src/github.com/argoproj/argo/cmd/argoexec/commands/init.go:34
github.com/argoproj/argo/cmd/argoexec/commands.NewInitCommand.func1
	/go/src/github.com/argoproj/argo/cmd/argoexec/commands/init.go:14
github.com/spf13/cobra.(*Command).execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.4-0.20181021141114-fe5e611709b0/command.go:766
github.com/spf13/cobra.(*Command).ExecuteC
	/go/pkg/mod/github.com/spf13/cobra@v0.0.4-0.20181021141114-fe5e611709b0/command.go:852
github.com/spf13/cobra.(*Command).Execute
	/go/pkg/mod/github.com/spf13/cobra@v0.0.4-0.20181021141114-fe5e611709b0/command.go:800
main.main
	/go/src/github.com/argoproj/argo/cmd/argoexec/main.go:17
runtime.main
	/usr/local/go/src/runtime/proc.go:203
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357

Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@stale
Copy link

stale bot commented Apr 30, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 30, 2021
@stale stale bot closed this as completed May 9, 2021
@Kraego
Copy link

Kraego commented May 12, 2021

I'm also run into some authentication problems using a AzureDevOps - git repository ([stackoverflow question]).(https://stackoverflow.com/questions/67494705/authentication-issue-argo-cd-with-azure-devops-server-2020-git-repo).

Setup:

  • Argo CD: v2.0.1+33eaf11
  • AzureDevops2020 - Version Dev18.M170.8

@mmckane
Copy link
Author

mmckane commented May 19, 2021

Can we reopen this? This blocks using git artifacts with azure devops..

@Transmitt0r
Copy link
Contributor

@mmckane yes please reopen this issue

@dagdynamik
Copy link

I am still experiencing this issue. i can help to test some changes if needed, please reopen

@gabrielfsousa
Copy link

im have this issue too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants