Skip to content

GCP toolkit recreates node in an infinite loop #1584

Closed Answered by tpdownes
yaroslavvb asked this question in Q&A
Discussion options

You must be logged in to vote

@yaroslavvb among the most useful diagnosis tools you might find is Cloud Logging. Here are some command I might advise for retrospective analysis. Suppose you have a machine named "my-vm" that came and went before you could use it or login to it. The following command will print some pretty useful Cloud Logging entries associated with a VM:

gcloud logging read 'labels."compute.googleapis.com/resource_name"="my-vm"' --format="table(timestamp, jsonPayload.message)" --freshness 1h

Notes:

  • this prevents in the reverse order of time you expect from Linux logs; you can pipe it to tac to get it in "normal" order
  • you might need to specify --project YOUR-PROJECT if you are trying to read from so…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@yaroslavvb
Comment options

@nick-stroud
Comment options

@bsngardner
Comment options

@nick-stroud
Comment options

Comment options

You must be logged in to vote
1 reply
@yaroslavvb
Comment options

Answer selected by yaroslavvb
Comment options

You must be logged in to vote
1 reply
@yaroslavvb
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants