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

kops_cluster_updater should have more verbose logs #1097

Open
shapirus opened this issue Sep 8, 2023 · 2 comments
Open

kops_cluster_updater should have more verbose logs #1097

shapirus opened this issue Sep 8, 2023 · 2 comments

Comments

@shapirus
Copy link

shapirus commented Sep 8, 2023

module.cluster.kops_cluster_updater.updater: Still creating... [19m40s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [19m50s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [20m0s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [20m10s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [20m20s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [20m30s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [20m40s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [20m50s elapsed]
module.cluster.kops_cluster_updater.updater: Still creating... [21m0s elapsed]

At this point, all pods are up and running, all containers are healthy, all nodes are healthy, but kops_cluster_updater is still not happy. Why? What is it waiting for? This is where the ability to make it show the actual kops logs would be very helpful.

@sl1pm4t
Copy link

sl1pm4t commented Oct 10, 2023

I don't think Terraform allows provider plugins to print any useful info to the console, unless TF is run in debug mode:

TF_LOG=DEBUG terraform apply

Perhaps a compromise is for the kops provider to intercept the kops output and write it to a log file?!

@shapirus
Copy link
Author

There's probably a way, but it may work only on errors, I'm not sure. For example, with the aws provider, when there's an error creating something in the cloud and AWS returns error 400 (e.g., resource already exists), there is an actual error message printed on the console. Not sure if it's possible to do that outside of the error context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants