Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changelog: disable DHCP RapidCommit for CloudSigma OEM #2016

Merged

Conversation

daMupfel
Copy link
Contributor

Disable DHCP RapidCommit for CLoudSigma OEM

This is related to the following issue: flatcar/Flatcar#1438

How to use

Build OEM beta image and upload it to CloudSigma. Create a host with said image.

Testing done

I tested this by manually applying the OEM config to the /oem/cloud-config.yml file and rebooting.

Note: This is my idea how to fix this issue, i am unsure if this is the desired solution and if this is the right branch to merge into as it currently only is an issue on beta builds.

Copy link
Contributor

@ader1990 ader1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the implementation, as @pothos mentioned, the OEM sysext load might be done too late in the process, thus having systemd already running with RapidCommit=True already.

Can you please try to build the image with locally and make sure the fix works with the built image?

I will try locally with maybe another OEM like qemu that is easier to use too.

Thanks.

@@ -0,0 +1 @@
- Disabled the new DHCP RapidCommit feature which is enabled by default since systemd 255. CloudSigma provides an incompatible implementation which results in cloud-init not being applied as no IP is issued. ([Flatcar#1438](https://github.com/flatcar/Flatcar/issues/1438))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, the link in the changelog should be to this PR and the commit message can contain something like:

Fixes:
or
See:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, i adapted it. Hopefully the way you meant :).

@dosomder
Copy link
Contributor

Nice work, just what I needed.. 👍

@daMupfel daMupfel force-pushed the disable-dhcp-rapid-commit-for-cloudsigma branch from 2b6f609 to 82cced7 Compare June 19, 2024 06:36
@daMupfel
Copy link
Contributor Author

Thanks for checking in to this, i will try to build it locally. Have never done it so we will see how it goes :).

@daMupfel daMupfel force-pushed the disable-dhcp-rapid-commit-for-cloudsigma branch 2 times, most recently from 9d55d20 to be1f827 Compare June 19, 2024 07:34
@daMupfel
Copy link
Contributor Author

So i was finally able to test this.

While it does work, it only works after a reboot since the network configuration is already loaded at that point.

I was not able to figure out how to restart the network service. I tried:

runcmd:
  - sudo systemctl restart systemd-networkd

But found out later that runcmd is not supported by the coreos-cloudinit implementation.

Do you have a suggestion on how i could do that?

Regards,

David

@daMupfel
Copy link
Contributor Author

By the way, what is the plan of moving the next beta to stable? Since it would break for us at that point :)

@daMupfel daMupfel force-pushed the disable-dhcp-rapid-commit-for-cloudsigma branch from be1f827 to 3975d7e Compare June 28, 2024 14:17
@daMupfel
Copy link
Contributor Author

daMupfel commented Jun 28, 2024

Okay, so after a bit of looking around in the coreos-cloud i found out that one can also provide network units to cores.units, this doesn't seem to be documented super well.

I built a custom image based on the latest beta and applied this change. This does now seem to work as intended.

Not sure if i require runtime: True i don't think it matters as it will write the file on every boot anyway?

Regards,

David

@daMupfel
Copy link
Contributor Author

@ader1990 Hi :),

Thank You for the initial review! Is there anything else i can provide to help this PR?

@daMupfel
Copy link
Contributor Author

daMupfel commented Aug 8, 2024

This seems to have missed the stable now. I would like to ask again what there is we can provide to integrate this. We currently require an own image which we would like to stop again.

@tormath1
Copy link
Contributor

tormath1 commented Sep 2, 2024

This seems to have missed the stable now. I would like to ask again what there is we can provide to integrate this. We currently require an own image which we would like to stop again.

Hello @daMupfel sorry for the delay on this PR and thanks for pinging us again. It looks good to me:

  1. Do you want me to build an image for you to test with a built image?
  2. I think we can backport this to alpha and beta first before stable

Copy link

github-actions bot commented Sep 2, 2024

@@ -0,0 +1 @@
- Disabled the new DHCP RapidCommit feature which is enabled by default since systemd 255. CloudSigma provides an incompatible implementation which results in cloud-init not being applied as no IP is issued. See: ([flatcar/scripts#2016](https://github.com/flatcar/scripts/pull/2016))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Disabled the new DHCP RapidCommit feature which is enabled by default since systemd 255. CloudSigma provides an incompatible implementation which results in cloud-init not being applied as no IP is issued. See: ([flatcar/scripts#2016](https://github.com/flatcar/scripts/pull/2016))
- CloudSigma: Disabled the new DHCP RapidCommit feature which is enabled by default since systemd 255. CloudSigma provides an incompatible implementation which results in cloud-init not being applied as no IP is issued. See: ([flatcar/scripts#2016](https://github.com/flatcar/scripts/pull/2016))

This is specific to CloudSigma so we can precise it.

@daMupfel daMupfel force-pushed the disable-dhcp-rapid-commit-for-cloudsigma branch 2 times, most recently from b02e505 to 5443785 Compare September 4, 2024 13:29
@daMupfel
Copy link
Contributor Author

daMupfel commented Sep 4, 2024

@tormath1 Hi :), no worries. Just wanted to know where we stand here :).

Thank you very much for looking into this.

I think I adapted the PR as you requested.

Regarding the built. I was able to do so by following the documentation (with the container and then the main build and than the specific built). I can test it again if you want. The last time i applied it on the last beta image (which was promoted to stable).

Regards,

David

@tormath1
Copy link
Contributor

tormath1 commented Sep 5, 2024

@daMupfel I was about to merge this change but I just noticed that there is only one commit that contains the two changes (the actual change and the changelog entry) - you can split this change into two commits, e.g:

  • changelog: add entry
  • disable DHCP rapidcommit for cloud sigma

or just amend the commit to something like disable DHCP rapidcommit for cloud sigma

@daMupfel daMupfel force-pushed the disable-dhcp-rapid-commit-for-cloudsigma branch from 5443785 to 557175b Compare September 10, 2024 05:19
@daMupfel
Copy link
Contributor Author

Hi @tormath1, i split it now up into two commits :).

@tormath1 tormath1 merged commit a89ecb7 into flatcar:main Sep 10, 2024
@tormath1
Copy link
Contributor

cherry-picked to:

  • flatcar-4081 (current alpha)
  • flatcar-4054 (current beta)

Thanks for your change!

By the way, I noticed there is no documentation for CloudSigma - is there any specific things to know to use Flatcar on this platform?

@daMupfel
Copy link
Contributor Author

@tormath1 Thank you very much for taking care of my PR!

We don't have any affiliation other than being customers of CloudSigma. At some point, CloudSigma made an effort to support CoreOS, which is where this comes from. At that time, one could select CoreOS as a base image for new VMs. CoreOS then disappeared at some point from the UI.
What we do nowadays is convert the OEM image to a raw image and then upload it as a custom base image to CloudSigma.

Please take this with a grain of salt since I am only an external observer.

@daMupfel daMupfel deleted the disable-dhcp-rapid-commit-for-cloudsigma branch September 11, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants