The case of the disappearing GCP metadata-server
See original GitHub issueI was browsing the logs as the service starts, as I want to ensure it uses GCP for backups, and I saw:
app-analytics-db-0 postgres 2020-12-20 14:16:08,259 - bootstrapping - INFO - Figuring out my environment (Google? AWS? Openstack? Local?)
app-analytics-db-0 postgres 2020-12-20 14:16:08,264 - bootstrapping - INFO - Could not connect to 169.254.169.254, assuming local Docker setup
app-analytics-db-0 postgres 2020-12-20 14:16:08,265 - bootstrapping - INFO - No meta-data available for this provider
app-analytics-db-0 postgres 2020-12-20 14:16:08,265 - bootstrapping - INFO - Looks like your running local
app-analytics-db-0 postgres 2020-12-20 14:16:08,299 - bootstrapping - INFO - Configuring bootstrap
However;
$ k exec app-analytics-db-0 -c postgres -- curl -v --silent http://169.254.169.254
* Rebuilt URL to: http://169.254.169.254/
* Trying 169.254.169.254...
* TCP_NODELAY set
* Connected to 169.254.169.254 (169.254.169.254) port 80 (#0)
> GET / HTTP/1.1
> Host: 169.254.169.254
> User-Agent: curl/7.58.0
> Accept: */*
>
computeMetadata/
< HTTP/1.1 200 OK
< content-type: application/text
< metadata-flavor: Google
< server: envoy
< date: Sun, 20 Dec 2020 14:18:23 GMT
< content-length: 17
< x-envoy-upstream-service-time: 0
<
{ [17 bytes data]
* Connection #0 to host 169.254.169.254 left intact
The server is there and responding. Why would Spilo say otherwise?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Troubleshooting OS Login | Compute Engine Documentation
This document describes how to troubleshoot OS Login using the metadata server. For information about setting up OS Login or for step-by-step instructions, ......
Read more >Get compute metadata from app engine, got 404 page not ...
thanks. update. I can get project-id from metadata server correctly. Here is the code: const METADATA_PROJECT_ID_URL ...
Read more >How/why would ALL our Google Cloud Platform Service ...
How/why would ALL our Google Cloud Platform Service account keys suddenly disappear/be deleted? Ask Question. Asked 3 years, 7 months ago.
Read more >ssh keys disappear from the instance
Due to these daemons user accounts and ssh keys are synced with metadata server and the VM instance. As such, the recommended method...
Read more >How Cymulate Discovered an Abuse Risk in GCP
My goal was to find a vulnerability in the GCP layer. ... GCP Metadata Server. Short explanation about GCP metadata: VM Metadata -...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
wal_gs_bucket
should setWAL_GS_BUCKET
and from there Spilo builds theWALE_GS_PREFIX
: https://github.com/zalando/spilo/blob/master/postgres-appliance/scripts/configure_spilo.py#L731-L749In case if
WALE_GS_PREFIX
happened to be set as environment, Spilo will use it directlyI’m closing because there’s no negative effect of the reported issue.