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]: RANDOMLY github_actions_variable can't be created - root object was present, but now absent #2047

Open
1 task done
kborowiec-mag opened this issue Dec 6, 2023 · 3 comments · May be fixed by #2378
Open
1 task done
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@kborowiec-mag
Copy link

kborowiec-mag commented Dec 6, 2023

Expected Behavior

Variable for repository is created.

Howevever it randomly doesn't work and error occurs (described below)

Actual Behavior

github_actions_variable.repo,
provider "provider["registry.terraform.io/integrations/github"]" produced
an unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own

Terraform Version

Terraform 1.6.4
integrations/github v5.42.0

Affected Resource(s)

  • github_actions_variable

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

github_actions_variable.repo,
provider "provider[\"registry.terraform.io/integrations/github\"]" produced
an unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kborowiec-mag kborowiec-mag added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Dec 6, 2023
@kborowiec-mag kborowiec-mag changed the title [BUG]: RANDOMLY repo variable can't be created - root object was present, but now absent [BUG]: RANDOMLY github_actions_variable can't be created - root object was present, but now absent Dec 6, 2023
@nickfloyd nickfloyd added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jan 4, 2024
@CandiedCode
Copy link

CandiedCode commented Jan 8, 2024

I am getting the same error as well but for adding/updating branch protection and collaborators.

Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to module.repos.github_repository_collaborators.repo_collaborators["api"], provider
│ "provider[\"registry.terraform.io/integrations/github\"]" produced an unexpected new value: Root resource was present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

This is with terraform 1.5.7 and github provider 5.43.0

@RobertAlbus
Copy link

I have a similar error when trying to create multiple github_emu_group_mapping with a single team.

github_emu_group_mapping.DevOps["686806"]: Creation complete after 6s [id=teams/DevOps/external-groups]
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to github_emu_group_mapping.DevOps["686807"], provider "provider[\"registry.terraform.io/integrations/github\"]" produced an unexpected new value: Root object was
│ present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.


│ Error: Provider produced inconsistent result after apply

│ When applying changes to github_emu_group_mapping.DevOps["686808"], provider "provider[\"registry.terraform.io/integrations/github\"]" produced an unexpected new value: Root object was
│ present, but now absent.

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

@marcoths
Copy link

marcoths commented Sep 4, 2024

Same problem with github_actions_environment_variable:

Error: Provider produced inconsistent result after apply

When applying changes to
github_actions_environment_variable.my_variable, provider
"provider[\"registry.terraform.io/integrations/github\"]" produced an
unexpected new value: Root object was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

I've found a fix, going to create a PR for this resource only - but it might apply to all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
None yet
5 participants