canonical / cloud-init

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

Issue with this cloud-init-23.4-7.el9_4.3.0.1.noarch #5534

Open PriyankaNegi13 opened 3 months ago

PriyankaNegi13 commented 3 months ago

I have launched a server in Rightscale where this cloud-init-23.4-7.el9_4.3.0.1.noarch package is getting installed but with this package boot scripts are not getting executed and at the last it is giving time out error. But after rebooting it manually boot scripts are getting executed. Could you please confirm why this package is creating issue?

aciba90 commented 3 months ago

Hello, @PriyankaNegi13. Thanks for reporting this.

cloud-init-23.4-7.el9_4.3.0.1.noarch looks like an RHEL downstream packaged version of cloud-init. That version is not package by us.

In order to determine if the issue lies in the packaging bits or in upstream cloud-init itself, could you please attach the output of cloud-init collect-logs, making sure any sensitive information is redacted?

More info: https://docs.cloud-init.io/en/latest/howto/bugs.html

PriyankaNegi13 commented 3 months ago

hi @aciba90 , Please find the output below: cloud-init collect-logs version: /bin/cloud-init 23.4-7.el9_4.3.0.1

Wrote /var/log/cloud-init.tar.gz

aciba90 commented 3 months ago

@PriyankaNegi13. The command generates a tarball in the current directory, I meant attaching that tarball.

aciba90 commented 3 months ago

I see. Cloud-init is meant to run at boot time. Normally, cloud-init comes preinstalled in cloud images. If you are creating a new image, try to find a cloud base image with cloud-init preinstalled.

If that's not an option, and you require customizing a cloud image. Install cloud-init and optionally enable the cloud-init services, refer to the distro downstream documentation / help on how to do that, in your case Rocky Linux.

But in any case, cloud-init runs at boot time.

Does that resolve your issue? If not, could you please help us understand what the problem / use-case is?