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

Bug Modification of project for Application ArgoCD version = "6.1.1" #403

Open
Ichigo97438 opened this issue Jun 26, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Ichigo97438
Copy link

Ichigo97438 commented Jun 26, 2024

Terraform Version, ArgoCD Provider Version and ArgoCD Version

terraform {
  required_version = ">= 1.2.0, < 2.0.0"
}

    argocd = {
      source = "oboukili/argocd"
      version = "6.1.1"
    }

Affected Resource(s)

  • argocd_application

Debug Output

fatal error: concurrent map writes

goroutine 226 [running]:
github.com/oboukili/terraform-provider-argocd/argocd.resourceArgoCDProjectRead({0x38c3020, 0xc001684bd0}, 0xc001386500, {0x3029160?, 0xc0007eaf00})
        github.com/oboukili/terraform-provider-argocd/argocd/resource_argocd_project.go:127 +0x177
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc000eb70a0, {0x38c3058, 0xc001780e10}, 0xd?, {0x3029160, 0xc0007eaf00})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:795 +0x12e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc000eb70a0, {0x38c3058, 0xc001780e10}, 0xc0017a2dd0, {0x3029160, 0xc0007eaf00})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:1089 +0x59e
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ReadResource(0xc000008558, {0x38c3058?, 0xc001780c90?}, 0xc001786340)
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:661 +0x4a5
github.com/hashicorp/terraform-plugin-mux/tf5to6server.v5tov6Server.ReadResource({{0x38d9a00?, 0xc000008558?}}, {0x38c3058?, 0xc001780c90?}, 0xc0017861c0?)
        github.com/hashicorp/[email protected]/tf5to6server/tf5to6server.go:119 +0x242
github.com/hashicorp/terraform-plugin-mux/tf6muxserver.(*muxServer).ReadResource(0x38c2fb0?, {0x38c3058?, 0xc001780960?}, 0xc0017861c0)
        github.com/hashicorp/[email protected]/tf6muxserver/mux_server_ReadResource.go:35 +0x1b5
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc0007f4be0, {0x38c3058?, 0xc001780180?}, 0xc00178e060)
        github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:787 +0x4b1
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x30ed980?, 0xc0007f4be0}, {0x38c3058, 0xc001780180}, 0xc00179c000, 0x0)
        github.com/hashicorp/[email protected]/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:431 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003c83c0, {0x38c3058, 0xc0017800c0}, {0x38d2200, 0xc000738000}, 0xc001792000, 0xc000f45650, 0x53ecce8, 0x0)
        google.golang.org/[email protected]/server.go:1343 +0xe49
google.golang.org/grpc.(*Server).handleStream(0xc0003c83c0, {0x38d2200, 0xc000738000}, 0xc001792000)
        google.golang.org/[email protected]/server.go:1737 +0xca6
google.golang.org/grpc.(*Server).serveStreams.func1.1()
        google.golang.org/[email protected]/server.go:986 +0x8c
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/[email protected]/server.go:997 +0x15c

goroutine 1 [select]:
github.com/hashicorp/go-plugin.Serve(0xc0000b2fc0)
        github.com/hashicorp/[email protected]/server.go:481 +0x14c5
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.Serve({0x32c9b21, 0x25}, 0xc0005cfcf0, {0x0, 0x0, 0x0})
        github.com/hashicorp/[email protected]/tfprotov6/tf6server/server.go:315 +0xcaa
main.main()
        github.com/oboukili/terraform-provider-argocd/main.go:73 +0x35e

goroutine 6 [select]:
github.com/patrickmn/go-cache.(*janitor).Run(0xc0003a8770, 0x0?)
        github.com/patrickmn/[email protected]+incompatible/cache.go:1079 +0x85
created by github.com/patrickmn/go-cache.runJanitor
        github.com/patrickmn/[email protected]+incompatible/cache.go:1099 +0xed

goroutine 52 [sleep]:
time.Sleep(0x6fc23ac00)
        runtime/time.go:195 +0x13a
sigs.k8s.io/controller-runtime/pkg/log.init.0.func1()
        sigs.k8s.io/[email protected]/pkg/log/log.go:63 +0x38
created by sigs.k8s.io/controller-runtime/pkg/log.init.0
        sigs.k8s.io/[email protected]/pkg/log/log.go:62 +0x25

goroutine 11 [select]:
github.com/hashicorp/go-plugin.(*gRPCBrokerServer).Recv(0x0?)
        github.com/hashicorp/[email protected]/grpc_broker.go:125 +0x67
github.com/hashicorp/go-plugin.(*GRPCBroker).Run(0xc000ac8360)
        github.com/hashicorp/[email protected]/grpc_broker.go:437 +0x44
created by github.com/hashicorp/go-plugin.(*GRPCServer).Init
        github.com/hashicorp/[email protected]/grpc_server.go:88 +0x545

goroutine 12 [syscall, locked to thread]:
syscall.SyscallN(0x0?, {0xc0004cbc28?, 0x0?, 0x0?})
        runtime/syscall_windows.go:557 +0x109
syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        runtime/syscall_windows.go:501 +0x50
syscall.readFile(0x0?, {0xc00030a000?, 0x1000, 0x227ed3?}, 0x2000?, 0x800000?)
        syscall/zsyscall_windows.go:1024 +0x94
syscall.ReadFile(...)
        syscall/syscall_windows.go:404
syscall.Read(0xc000964000?, {0xc00030a000?, 0xc0004cbd88?, 0x2278ab?})
        syscall/syscall_windows.go:383 +0x33
internal/poll.(*FD).Read(0xc000964000, {0xc00030a000, 0x1000, 0x1000})
        internal/poll/fd_windows.go:422 +0x1c5
os.(*File).read(...)
        os/file_posix.go:31
os.(*File).Read(0xc000972788, {0xc00030a000?, 0x400?, 0x2c09e40?})
        os/file.go:118 +0x5e
bufio.(*Reader).Read(0xc0004cbf40, {0xc000198800, 0x400, 0x0?})
        bufio/bufio.go:237 +0x1bb
github.com/hashicorp/go-plugin.copyChan({0x38e0450, 0xc0007f4aa0}, 0x0?, {0x389d9a0?, 0xc000972788?})
        github.com/hashicorp/[email protected]/grpc_stdio.go:184 +0x1f6
created by github.com/hashicorp/go-plugin.newGRPCStdioServer
        github.com/hashicorp/[email protected]/grpc_stdio.go:40 +0xf5

goroutine 13 [syscall, locked to thread]:
syscall.SyscallN(0x0?, {0xc000f4dc28?, 0x0?, 0x0?})
        runtime/syscall_windows.go:557 +0x109
syscall.Syscall6(0x27f193?, 0x239c45?, 0xc000f4dc88?, 0x26a7e683208?, 0x239ca0?, 0x545d860?, 0x1?, 0xc000f4dc80?)
        runtime/syscall_windows.go:501 +0x50

Steps to Reproduce

Create a argocd project different than default
Create an application argocd and use the project created different than default

Expected Behavior

argocd application should be in project different than default

Actual Behavior

Plugin crash and no modification
With plugin argocd in version 6.1.0 it's work fine

@Ichigo97438 Ichigo97438 added the bug Something isn't working label Jun 26, 2024
Copy link

github-actions bot commented Oct 2, 2024

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.

@github-actions github-actions bot added the Stale label Oct 2, 2024
@mkilchhofer
Copy link
Collaborator

Hi @Ichigo97438

Would it be possible to share some details:

  • TF code of both the project and the application
  • Argo CD version used
  • Kubernetes Cluster version used

?

Thank you 🙏

@mkilchhofer mkilchhofer removed the Stale label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants