Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

GCE instance using custom image, cloud-init issue

I have a GCE instance running a custom image imported from Debian. I intend to modify the image at a later date.

However every time I reboot the instance I see "cache invalid" in /var/log/cloud-init.log, as below.

Why would the datasource cache be invalid on every reboot? And would an invalid cache cause cloud-init to treat my instance as newly provisioned?

2024-07-26 14:14:04,047 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2024-07-26 14:14:04,047 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2024-07-26 14:14:04,049 - util.py[DEBUG]: Read 6994 bytes from /var/lib/cloud/instance/obj.pkl
2024-07-26 14:14:04,062 - stages.py[DEBUG]: cache invalid in datasource: DataSourceGCELocal
2024-07-26 14:14:04,062 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: cache invalid in datasource: DataSourceGCELocal
2024-07-26 14:14:04,062 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance

 

1 0 234