cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

Add support for Container-Optimized OS

Open vteratipally opened this issue 2 years ago • 8 comments

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

vteratipally avatar Sep 22 '22 18:09 vteratipally

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.

holmanb avatar Sep 22 '22 20:09 holmanb

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

vteratipally avatar Sep 29 '22 04:09 vteratipally

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.

holmanb avatar Sep 29 '22 13:09 holmanb

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.

vteratipally avatar Sep 29 '22 18:09 vteratipally

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?

holmanb avatar Sep 29 '22 18:09 holmanb

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.

vteratipally avatar Sep 29 '22 20:09 vteratipally

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.

holmanb avatar Oct 03 '22 21:10 holmanb

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 avatar Oct 04 '22 18:10 vteratipally

@vteratipally We need all of our CI checks passing before we can merge this. Otherwise, the changes look good.

TheRealFalcon avatar Oct 12 '22 19:10 TheRealFalcon