-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Creating partitions with Ignition bootstrap format fails when Ignition 3.1 is used. #7679
Comments
Sounds okay to me |
/triage accepted |
I have been trying to use this snippet, actually from the example here https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/templates/cluster-template-flatcar.yaml the issue i am having is that the Disk is
should we define the disks both in the |
Just to follow up, i was able to get around the issue reported here and also get the disks mounted by mixing the
which renders to
and on node
This is not very ideal though, i wonder if
What do you think ? ( sorry for interjecting in this issue btw, i just really want to move away from ubuntu into flatcar :) ) |
Hmm, thanks for your investigation @primeroz. I indeed didn't verify that the disk is mounted there. That is a serious issue I think. I'll try to investigate and come up with a proper fix next week. |
👍 thanks a lot for looking into this, let me know if i can help in anyway |
The fix is definitely doable, just requires touching CABPK, getting it released etc, so it may take some time.
We could do that, it's just another variation of a workaround. In any case, some form of it should be sent to CAPZ templates. But I think keeping the
What do you suggest to do exactly? I think as long mounting disks via mounts/filesystem/partitions combination remains functional, we should be able to change the implementation, though I guess people may rely on it to certain degree. I'm testing changes to the templates right now to get it fixed. I'll open CAPZ PR once I'm done. Sorry for the delay. |
Hm, Perhaps we could use EDIT: I've opened kubernetes-sigs/cluster-api-provider-azure#3267 to fix CAPZ. |
Sorry my statement was not very clear :) at the moment we do
if we changed it to something like
|
Workaround for a CABPK bug with conversion of Ignition v2 to v3 as described in kubernetes-sigs/cluster-api#7679 has been added while Flatcar templates were still in development. While it boots and does not produce any errors, it turns out that the disk does not actually get mounted. This is because at the moment 'mounts' CABPK field requires 'diskSetup.filesystems' to be populated for mapping disk names to device path. This commit fixes missing mount. Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
/priority important-longterm |
based on my (limited) understanding, this is related to #9157, so I will dedup; please feel free to re-open in case I'm wrong /close |
@fabriziopandini: Closing this issue. In response to this:
Instructions 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/test-infra repository. |
What steps did you take and what happened:
Following fragment of
KubeadmControlPlane
spec:Creates a following Ignition fragment:
Which with latest (3374.2.0) Flatcar stable, using Ignition 3.1, produces the following error which makes machine fail to boot:
What did you expect to happen:
Machine to boot successfully.
Anything else you would like to add:
While migrating to Ignition 3.1 natively would be the best thing to do, I think we can just add a
number: N
for each partition we create, which should solve the issue.As a workaround, one can apply
number: N
themselves usingignition.containerLinuxConfig.additionalConfig
with fragment like this:Environment:
kubectl version
): v1.23.13/etc/os-release
): latest (3374.2.0) Flatcar stable/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: