Flatcar optimize network configuration speed on vmware cloud director#478
Conversation
|
Hi @4ch3los. Thanks for your PR. I'm waiting for a kubermatic member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
|
is this about rendering the whole provision config and sending it as a userdata so that VM can be provisioned right away without fetching its provisioning instructions? |
Ahh no, the provisioning process doesnt get changed, but for flatcar on vcloud director, the network gets configured by the bootstrap service/script https://github.com/kubermatic/operating-system-manager/blob/main/deploy/osps/default/osp-flatcar.yaml#L192 |
|
/ok-to-test |
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
|
/ok-to-test |
|
@ahmedwaleedmalik Can you please provide the original idea why units was not been rendered in the first place? @4ch3los did you considered using systemd units drop-ins in order to customize that unit? An example would be a file (which is already rendered) in the specific directory. |
deploy/osps/default/osp-flatcar.yaml
Outdated
| {{- if not (eq .CloudProviderName "vmware-cloud-director") }} | ||
|
|
||
| [Unit] | ||
| Requires=network-online.target | ||
| After=network-online.target | ||
| {{- end }} |
There was a problem hiding this comment.
While i'm not against the idea per say but this is a bit of a scope creep if we add template rendering for units just for this one use case. The reason we didn't templatize them was that most, if not all, customizations can be done using drop-ins and there wasn't a use case for this.
Like @kron4eg suggested, we can simply have a drop-in like:
- path: /etc/systemd/system/bootstrap.service.d/10-no-network-wait.conf
content:
inline:
data: |
{{- if eq .CloudProviderName "vmware-cloud-director" }}
[Unit]
Requires=
After=
{{- end }}
There was a problem hiding this comment.
Totally fair and way easier :) im going to redo the pr
8360f1c to
221ed72
Compare
…ector Signed-off-by: Kai Fink <kai.fink@yahoo.de>
221ed72 to
48bc79b
Compare
…ded to negate the behaviour as dropins cant clear Requires/After but add to Signed-off-by: Kai Fink <kai.fink@yahoo.de>
Signed-off-by: Kai Fink <kai.fink@yahoo.de>
|
@kron4eg hopefully the ci should succeed now, but during testing i discovered that dropins cant clear Requires, so i inverted the behaviour to add the Requires as Dropin, for non vcloud platform |
|
LGTM label has been added. DetailsGit tree hash: d3f651f97ced6ff4d6b84a38189c3d77f864e39c |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmedwaleedmalik The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Dont wait for network when using flatcar on vmware-cloud-director, as bootstrap script configures network. To achieve this, template support for unit files was added. This reduces bootstrapping time alot, as waiting for network times out currently
What this PR does / why we need it:
Which issue(s) this PR fixes:
What type of PR is this?
/kind bug
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:
Documentation: