cloud-init
cloud-init copied to clipboard
Add support for Container-Optimized OS
Signed-off-by: varsha teratipally [email protected]
Proposed Commit Message
Add support for Container-Optimized OS
Additional Context
Test Steps
Installed cloud-init on an instance, tested manually.
Checklist:
- [X] My code follows the process laid out in the documentation
- [X] I have updated or added any unit tests accordingly
- [X] I have updated or added any documentation accordingly
Hi @vteratipally, thanks for the PR!
A passing comment: I don't know if you've seen this, but just for context there was some discussion related to adding support for COS, but it was dropped at that time due to broken behavior observed in the downstream images while testing. I think we'll want to make sure the concerns raised in that PR are addressed in this submission.
Hi @vteratipally, thanks for the PR!
A passing comment: I don't know if you've seen this, but just for context there was some discussion related to adding support for COS, but it was dropped at that time due to broken behavior observed in the downstream images while testing. I think we'll want to make sure the concerns raised in that PR are addressed in this submission.
Yes, I have tested whether all the modules are working or not. The modules that don't work are cc_chef,cc-growpart,cc_install_hotplug,cc_locale,cc_mcollective,cc_migrator,cc_package_update_upgrade,cc_phone_home,cc_power_state_change,cc_puppet,cc_refresh_rmc_and_interface,cc_reset_rmc
Yes, I have tested whether all the modules are working or not. The modules that don't work are ...
Thanks for the response.
How can we test this on an image? The test steps say "Installed cloud-init on an instance, tested manually.", but without a package manager how does one install cloud-init on an instance? I checked the docs, but after reading the "concepts" pages and the "build from open source" page, I still don't know how to test this.
Yes, I have tested whether all the modules are working or not. The modules that don't work are ...
Thanks for the response.
How can we test this on an image? The test steps say "Installed cloud-init on an instance, tested manually.", but without a package manager how does one install cloud-init on an instance? I checked the docs, but after reading the "concepts" pages and the "build from open source" page, I still don't know how to test this.
COS uses gentoo package system. COS is based on the chromium os build system where we install the package using emerge cloud-init
. The ebuild for cloud-init is here https://cos.googlesource.com/cos/overlays/board-overlays/+/refs/heads/master/project-lakitu/app-emulation/cloud-init/. As root filesystem is read-only in COS, we can install the cloud-init only during the build time.
Thanks for the background @vteratipally. Since we can't install this on a live image, is there some other way we can test this code on an image?
Thanks for the background @vteratipally. Since we can't install this on a live image, is there some other way we can test this code on an image?
I think we can test it on ubuntu image, as in COS(with distro: cos in system_info), we were using the ubuntu version of the cloud-init rather than the gentoo version.
I think we can test it on ubuntu image, as in COS(with distro: cos in system_info), we were using the ubuntu version of the cloud-init rather than the gentoo version.
No problem, I'll poke around and see if I can make that work.
Do you have sample logs (/var/log/cloud-init.log
and /var/log/cloud-init-output.log
) from a booted COS? If so, that would help with review.
I think we can test it on ubuntu image, as in COS(with distro: cos in system_info), we were using the ubuntu version of the cloud-init rather than the gentoo version.
No problem, I'll poke around and see if I can make that work.
Do you have sample logs (
/var/log/cloud-init.log
and/var/log/cloud-init-output.log
) fro cloud-init.log cloud-init-output.log m a booted COS? If so, that would help with review.
sure, here it is cloud-init.log cloud-init-output.log
@vteratipally We need all of our CI checks passing before we can merge this. Otherwise, the changes look good.