-
Notifications
You must be signed in to change notification settings - Fork 6
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
push_rule API call causes 404 with selft-hosted gitlab CE #514
Comments
Hi @snake007v. Just to clarify, is the bug that a 404 is returned, or that the error can't be handled?
It sounds like the 404 is correct. |
Hi @iwahbe Sorry if I wasn't clear in my initial report. As a result, we will always get 404 error in case if you're creating a new group in GitlabCE. |
Thanks for clarifying. |
Hi, I have the same problem, so I have edited the terraform provider gitlab to not read push rules if Gitlab CE is used. |
For the record: I'm running into the same unexpected error message on self-hosted GitLab EE too for groups with no configured push rule(s). Looks like https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1730 (Add push rule support to group resource) wasn't fully baked. Code in question: https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/blob/684ed8e8/internal/provider/sdk/resource_gitlab_group.go#L576-579 By the way: @Medialo's patch has been merged upstream: https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/merge_requests/1891 (Fix: 404 on group creation on Pulumi with Gitlab CE) |
Hi everyone, it seems that the error still stick around, even in the last version of pulumi gitlab (which use 17.1.0 of terraform provider). Do you have any news on this bug ? Have a great day 😁 |
@Zacharieg I have no more error with my fix for my case with a gitlab CE for push rules. |
Just encountered the same issue. Upgrading |
I need to make a correction. It seems the error did not reoccur after re-running the Pulumi project. However, when deploying the stack from scratch, I still encounter even with the latest v8.1.0:
|
@skycaptain: Is this with GitLab EE? The Terraform provider is implemented in such a way that it might log this error but continue executing: https://gitlab.com/gitlab-org/terraform-provider-gitlab/-/blob/0f680cfb7da857f233bee03e202f925345843ac6/internal/provider/sdk/resource_gitlab_group.go#L576-579 |
Yes, with v17.0.3-ee. |
Same for me, in GitLab EE 17.0... Is there a way to make those errors in warnings ? When creating several nested groups, it's really a problem because it does not create subgroups if parent creation failed (even if the parent is created) |
Hi @skycaptain @Zacharieg - would it be possible for you to send us some logs for what you see?
Just to clarify - this is resulting in a hard error for you on the Pulumi side but you'd like it logged as a warning, which is what Terraform does? Thank you! |
Thanks for your awnser @guineveresaenger 😁 In facts it appear that I was wrong, the execution does continue... So this is not a critical bug (but pretty annoying). The weird behaviour seems to be on GitLab side, when no push rules are available, it return a 404 code, it's weird (but it's a choice I think) I think the correct behaviour that pulumi should have here is too ignore the 404 error on push_rule when getting group information, because it seems to be a normal return if the group has no push rule (which is the case of many groups). Just for info, here is the log of pulumi up : |
Hi @Zacharieg - sorry for the late reply here. Thank you for the logs and the confirmation that execution continues. This may be an instance of Pulumi too eagerly forwarding "errors" logged as warnings and we'll look into that as soon as we can. |
Just fyi, the error disappeared for me after i just went and set |
We can't repro, so it's hard to confirm, but I'm pretty sure that pulumi/pulumi-terraform-bridge#2686 will bring our behavior fully inline with the upstream provider here. |
What happened?
Example
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: