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

Deleting project fails sometimes #96

Closed
2 of 3 tasks
pho-enix opened this issue Feb 6, 2024 · 1 comment · Fixed by #97
Closed
2 of 3 tasks

Deleting project fails sometimes #96

pho-enix opened this issue Feb 6, 2024 · 1 comment · Fixed by #97
Assignees
Labels
bug Something isn't working

Comments

@pho-enix
Copy link

pho-enix commented Feb 6, 2024

Describe the bug
A clear and concise description of what the bug is.

Requirements for and issue

  • A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue)
  • Your version of artifactory (you can curl it at $host/artifactory/api/system/version
    JFrog Platform SaaS
  • Your version of terraform
    v1.5.7

How to reproducte

  1. Create terraform config with 1 project that links to 3 virtual, 3 remote and 3 local repos using the repos key.
  2. Apply config. Project is successfully created and has all 9 repos listed
  3. Perform terraform destroy
  4. In arround 30% of executions there is the error:
400 DELETE https://xxxxxx.jfrog.io/access/api/v1/projects/project_name
{
  "errors" : [ {
    "code" : "BAD_REQUEST",
    "message" : "project containing resources can't be removed"
  } ]
}
  1. Checking in the UI you can see that the unassignment of the repos did not work. One repo still shows the project that should have been deleted.

Workaround
Execute destroy again and it will work.

Additional context

@pho-enix pho-enix added the bug Something isn't working label Feb 6, 2024
@alexhung
Copy link
Member

alexhung commented Feb 6, 2024

@pho-enix Thanks for the report! Looks like I may need to add some retry code for deletion. (We have similar issue with repos in the Artifactory provider so this isn't unknown.) I'll add this to our plan.

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

Successfully merging a pull request may close this issue.

2 participants