Cloud-init stopped working for AWS?
Hi, all. I've been using cloud-init successfully for my windows 2022 core image. All of a sudden, last week it stopped working. It doesn't look like the user is being created and the the metadata is inaccessible. Here are the lines from the bottom of the log file:
2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\base.py", line 325, in getdata 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service response = self.httprequest(path) 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service ^^^^^^^^^^^^^^^^^^^^^^^^ 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\base.py", line 319, in httprequest 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service response.raiseforstatus() 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\requests\models.py", line 1021, in raiseforstatus 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service raise HTTPError(httperrormsg, response=self) 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://169.254.169.254/2009-04-04/met... 2024-07-25 15:26:38.830 2160 ERROR cloudbaseinit.metadata.services.ec2service 2024-07-25 15:26:38.869 2160 DEBUG cloudbaseinit.metadata.services.ec2service [-] Metadata not found at URL 'http://169.254.169.254/' load C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\metadata\services\ec2service.py:46 2024-07-25 15:26:38.869 2160 ERROR cloudbaseinit.init [-] No metadata service found: cloudbaseinit.exception.MetadataNotFoundException: No available service found 2024-07-25 15:26:38.869 2160 INFO cloudbaseinit.init [-] Plugins execution done 2024-07-25 15:26:38.947 2708 INFO cloudbaseinit.init [-] Process execution ended with exit code: 0