-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
data.google_project.project.project_id randomly becoming null
#9509
Comments
@atrauzzi can you have a config sample with |
Absolutely not as I have no clue what the trigger condition is for this. It's totally unpredictable as to what's causing it. In this situation, I think the best thing I can do is offer to meet with you on a screen share to go through things. This is going to take some intuition. |
I'm also getting this if I apply the change and then do a another run:
Something is definitely not right here. But again, I get different results between different runs, so it's impossible to pin down. |
@atrauzzi the data source uses below code to retrieve terraform-provider-google/google/utils.go Line 61 in 7d52863
|
Gave that a shot, no dice. It's still generating the changes I noted above as well as the message about the provider providing an inconsistent plan. |
@atrauzzi it's hard to say for me without the complete config available. From the plan you provided above, it seems the new value can't be detected. Did you say it is provided by a
|
Hardcoding gets around the issue it seems. It's weird, the problem doesn't come up 100% of the time, sometimes I'll run again and it doesn't happen. I still feel like in some way, the google provider be having some internal state issues with that data module. |
Also interesting: I reverted the change from hard-coding, back to using the data module's value, and I get no pending changes. Again, something is not right here, and even Terraform is saying it's an issue in the provider. I'll offer again, if you want to do a screenshare to go over my templates, more than happy! |
@atrauzzi I believe the issue is in the module as your hard-coding test proves that is the case. Let me know if you are able to repro it with isolated |
What do you mean by isolated resources? |
@atrauzzi I meant using resources only (not modules). In that way we can isolate the issues within the provider. |
I'm not sure I understand what you are saying right now. This bug could very well be caused by the fact that the data provider is being used in multiple modules. Let's do a quick screen share and I'll be happy to let you poke around. You can use your familiarity with the provider to zero in on what's going on. I cannot post the entirety of it publicly. I have no way to intuitively tell what is causing this bug, and I think you need to be realistic in how much you expect me to do to isolate the issue without you looking into things a little yourself. (I'm trying to report a bug.) |
@megan07 what do you think about this issue? |
@edwardmedia - thanks for taking a look! Hi @atrauzzi ! I'm sorry you're experiencing this issue. Thank you for reaching out! In general, we prefer to see at least a snippet of the configuration so we can see exactly which datasources/resources we're dealing with. Any debug logs would definitely be beneficial as well. We don't need your entire configuration, but I think the important thing would be to know what exactly you're interpolating into Thanks! |
@megan07 - I'm not sure how to produce that value or what it even is really. None of those names look familiar to me. If there's something specific that I can give you the output from - ideally anonymized - feel free to send me commands to run or files to |
@atrauzzi oh! sorry! I can help with that :) So, for the debug logs, you can take a look here and this should help us a lot! As for sending us a snippet of your configuration, you'll have to go through your terraform files and find where that particular resource is set. I would do a search over your files for |
Well I know what I'm putting in there. It's the value from the data-module. My initial problem description has the answers to your questions. That's the problem that I'm trying to report here. The value from the google project data-module is behaving unpredictably. Sometimes it will generate a change, and other times it won't. This data-module is so basic and has no inputs, I have no influence over it. I'm simply using it to read it the current project from the environment. Even Terraforms error is pointing out that the project data-module is behaving inconsistently. That ought to be plenty to go off of here. Just going to ask this once, but is there any chance we can move past the basic "try to blame it on the user" triage? At the very least, give me something specific besides general community links, which are not specific steps. Asking me for the terraform snippet in this situation is disingenuous as I'm literally defining the data-module and then just trying to consume it. If I knew how this was happening, I'd almost invariably stumble upon the solution. I think a screen share would work best for this one, so I'll offer it again. |
Hi @atrauzzi, I'm sorry for this misunderstanding. The reason we ask for you to share your configuration is because the first step in our process is for us to reproduce the issue that you're seeing. Without your configuration, we can't see everything that is at play. Debug logs are equally as helpful, if not more. Would you please send us some debug logs so we can see what value is being returned from the API and what might be happening behind the scenes? Thanks! |
@megan07 - Is there anywhere I can post them privately? |
Hi @atrauzzi - Yes! You can use the PGP key published on our Security page or Keybase to encrypt your logs, then attach them here. Thanks! |
Oy... this is getting ridiculously convoluted. I don't use any of that. Is there any reason why we can't just do a screen share and I can show this problem happening? Or maybe I can just email one of you my |
I'm sorry it seems convoluted. Unfortunately, those are your options for sharing your debug logs with us per our workflow. We like to keep all of our communications public for the benefit of other users. This is an open source project and support is offered on a best effort basis. If you're a Terraform Cloud or Enterprise customer, you may open a ticket with HashiCorp support and they will help you collect the information needed to troubleshoot your issue. |
Nothing says we can't summarize the call in an update here. I think this ticket will serve better at this point of how this revolving door triage process can create blind spots. I can assure you something is wrong here with such a simple data provider. But I have no clue how to make you guys aware of 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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
1.0.1
Affected Resource(s)
Expected Behavior
I expect this value to never change unless I switch projects.
Actual Behavior
I'm not sure what triggers it, but I get changes like this:
Important Factoids
I've added some secrets & values and added a storage hmac resource, but that's it. Obviously nothing should ever cause the project values to become inconsistent between deploys within the same project. Yet for some reason it's becoming null.
The text was updated successfully, but these errors were encountered: