-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Updating a google_cloud_identity_group_membership to remove a role fails with an error #7616
Updating a google_cloud_identity_group_membership to remove a role fails with an error #7616
Comments
modifyMembershipRoles may follow below call |
Got it. This resource is largely not implemented with update support, adding our "large bug" tag because this needs a lot of work. I'll try to get around to this one later this week, but it could be that this will have to wait for a migration we're planning on in early 2021 to a new way of managing resources which is more compatible with odd resources like this one. |
Hi, I’m facing a similar error, in a similar situation:
I think it may be related to this issue, and hopefully it can be fix at the same time in the same release. It could be even a reason to speed-up the effort of solving the problem. This requirement is critical, as it is the mechanism that we can use to grant roles to a project of a different organisation. The external organisation grant the roles to our group, and we add users and services accounts to that group. ERROR:
The group exist in the server, I have tried using both the name and the email of the group. |
@ndmckinley any updates on this? |
I had an issue with this resource which might be related to the update method as well. When I re-apply the same config without any changes. It shows the following plan:
|
I can work around the above issue by switching the order of the two roles in the resource, i.e. From
to
|
Interesting, it looks like those are meant to be a set rather than a list. As for updates, this is in our "Goals" milestone, which means that we agree it should be done, but don't currently have the resources to do it and also don't think we will have the resources soon (by contrast with "Near Term Goals"). We would love to accept a community PR that fixes this issue - otherwise it may be quite some time. We re-prioritize based on issue thumbs-ups - if many people give the issue a thumbs-up, we'll get around to it sooner. "Many people" here depends on how hard the issue is - 30+ for sure, but could be as low as 10+ if the issue is an easy one. |
@ndmckinley I filed a PR to fix this: GoogleCloudPlatform/magic-modules#4658, so I would be happy if you (or other maintainer) could review it. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Terraform Version
Affected Resource(s)
Terraform Configuration Files (if applicable)
First apply this configuration then change it to what follows (notice that the block that defines the MANAGER membership has been removed) and apply again.
Issue Description
Changing a user membership (specifically downgrading a member from MANAGER to MEMBER) triggers the following error:
Error: Error updating GroupMembership "groups/xxxxxxxxxxxxxxx/memberships/NNNNNNNNNNNNNNNNNNNNNNNN": googleapi: got HTTP response code 404 with body:
The text was updated successfully, but these errors were encountered: