canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
3.01k stars 887 forks source link

Cloud-init status error #5903

Open ayushagrawal338 opened 4 days ago

ayushagrawal338 commented 4 days ago

Bug report

In my vm the script that I gave to the cloud-init file run successfully but still the when I am checking the status of cloud-init it is showing error. I have gone through the debugging process. I have gone through the debugging process that's been given on the cloud-init documentation page. when I am running the command: sudo cloud-init status --format json I am getting this as an response, here in the extended source I am getting status as error. { "boot_status_code": "enabled-by-generator", "datasource": "oracle", "detail": "DataSourceOracle", "errors": [], "extended_status": "error", "init": { "errors": [], "finished": 1732547547.5313206, "recoverable_errors": {}, "start": 1732547546.840897 }, "init-local": { "errors": [], "finished": 1732547545.630215, "recoverable_errors": {}, "start": 1732547545.3890238 }, "last_update": "Mon, 25 Nov 2024 15:16:40 +0000", "modules-config": { "errors": [], "finished": 1732547549.8567138, "recoverable_errors": {}, "start": 1732547549.4562278 }, "modules-final": { "errors": [], "finished": 1732547800.8979197, "recoverable_errors": {}, "start": 1732547550.2112055 }, "recoverable_errors": {}, "stage": null, "status": "error" } I collected logs as well and tried to grep if there were any failure or error but there were none. This is my output for result.json under folder /var/lib/cloud/data { "v1": { "datasource": "DataSourceOracle", "errors": [] } } Even phases seems to be all complete from the json: { "v1": { "datasource": "DataSourceOracle", "init": { "errors": [], "finished": 1732547547.5313206, "recoverable_errors": {}, "start": 1732547546.840897 }, "init-local": { "errors": [], "finished": 1732547545.630215, "recoverable_errors": {}, "start": 1732547545.3890238 }, "modules-config": { "errors": [], "finished": 1732547549.8567138, "recoverable_errors": {}, "start": 1732547549.4562278 }, "modules-final": { "errors": [], "finished": 1732547800.8979197, "recoverable_errors": {}, "start": 1732547550.2112055 }, "stage": null } }

Environment details

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8" ORACLE_BUGZILLA_PRODUCT_VERSION=8.10 ORACLE_SUPPORT_PRODUCT="Oracle Linux" ORACLE_SUPPORT_PRODUCT_VERSION=8.10

TheRealFalcon commented 4 days ago

@ayushagrawal338 , thanks for report. Can you also run cloud-init collect-logs and upload the results here?

ayushagrawal338 commented 4 days ago

@ayushagrawal338 , thanks for report. Can you also run cloud-init collect-logs and upload the results here?

Attaching the logs. cloud-init.tar.gz @TheRealFalcon