-
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
Log Router Sink writerIdentity not found when setting up pubsub.Publisher role for it. (PART 2) #10114
Comments
FYI @edwardmedia , I opened a followup issue to the previous one. |
@rrmestl-cx do you have the full debug log that includes the related api calls? And the new config including the new related resources |
@edwardmedia , by "full debug log" you mean the stdout of the terraform execution, or another log file? |
@rrmestl-cx sorry I did not make clear. Yes, I need the log generated from terraform execution. Your above one is too short and does not tell us much |
will try to run it again, and capture it all, when I get a free minute this evening. |
@edwardmedia , here is the full output for the 3 terraform calls...
Let me know if you need me to lookup anything in the GCP console and provide feedback evidence for you. Thanks, |
@rrmestl-cx could you add below environment variable and apply the config again? Here is the doc that explains about Terraform debugging.... Sorry I did not make it clear earlier. With that, we should be able to catch some api requests & responses
|
@edwardmedia , not a problem, will get it ran again soon, and feedback posted. |
@edwardmedia , I have reran the terraform config again, with the env var in place... test_20210927_plan.txt Thanks, |
@rrmestl-cx from two logs you provided, I only see below two statements. Where to find the error you described here?
|
@edwardmedia , apologies, I had some other config code setup... let me revert and rerun the test... |
@edwardmedia , here are the debug output files for plan & apply for the correct config setup now... test_20210928_plan.txt env var set for it...
Thanks, |
@rrmestl-cx where did you get the serviceAccount for
|
@edwardmedia , it was taken from the resulting log router sink creation, using locals variable manipulation, and then placed into the iam_member resource to attempt setting the role for pubsub.publisher ...
This terraform excerpt was part of the original TF file attached in the previous/parent issue #9953 ... Thanks, |
@rrmestl-cx yes. Below is the issue which complains the account is not found. Whatever you do, you need to make sure that account exists at that point. To debug, you can start to verify if is exists. Does this make sense?
|
@edwardmedia , yes, the writerIdentity service account does exist, as I see it, after the apply is completed, though failing... luckily, I was able to get some support assistance through GCP support, and they found that if I used the following resource setup, it would work as expected, and complete successfully.
If you have any other insight as to the resource usage I was using, that would be great... guess it was no seeing what I wanted it to... Otherwise, I will be out of office the next week, so we can probly go ahead close this issue. Thanks for all your assistance, |
@rrmestl-cx |
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. |
RE: #9953
Hello, apologies, I was OOO the whole week the previous issue was closed.
Makes sense that I might need to create it separately then. but an additional issue shown in the terraform output in the description above shows the new service account not being found...
if upon execution of the terraform script, and it knows the new service account, why does it fail trying to set the role for it?
is there an execution ordering issue going on ?
Thanks,
Rob
Originally posted by @rrmestl-cx in #9953 (comment)
The text was updated successfully, but these errors were encountered: