-
Notifications
You must be signed in to change notification settings - Fork 32
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
Beta 3185.1.0: ignition fails to create partition on second disk (vmware) #729
Comments
Ignition file for Flatcar Beta 3185.1.0 (failing) ignition-v3-example.json.txt Ignition file for Flatcar Stable 3139.2.0 (working) ignition-v2-example.json.txt |
Hi @pothos, I have stumbled across your PR coreos/ignition#1319 which is not merged yet and is planned for coreos/ignition release 2.14.0. |
What's the value of data.vsphere_virtual_machine.template.scsi_type? Can you paste the yaml you use to create the ignition json (both for v2 and v3)? |
Ignition v3 file (sorry have to add .txt to upload) ignition.tf.txt To avoid messing with v2, I just edit v3 file to make it to v2. And for scsi_type:
I missed to provide output of device paths when VM comes up (with disk attached but without
Hope this helps. |
The fix is already part of our Flatcar release. Can you try the same v2 config on 3185.1.0? It will be translated to v3 on the fly and I wonder it could make a difference. |
Thanks for confirming. |
Just confirmed that same is happening with latest beta 3227.1.0. |
Hi @defo89, looked into this: --- a/ignition-v2-example.json.txt
+++ b/ignition-v2-example.json.txt
@@ -2,7 +2,7 @@
"ignition": {
"config": {},
"timeouts": {},
- "version": "2.1.0"
+ "version": "2.3.0"
},
"passwd": {
"users": [
@@ -15,13 +15,13 @@
"storage": {
"disks": [
{
- "device": "/dev/disk/by-path/pci-0000:00:07.0",
+ "device": "/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:1:0",
"partitions": [
{
"label": "etc-test",
"number": 1,
- "size": 10240000,
- "start": 2048,
+ "sizeMiB": 5120000,
+ "startMiB": 1024,
"typeGuid": ""
}
] The older "size" and "start" properties are expressed in sectors, which is mostly 512 bytes. As to ignition-v3.json not working: are you sure your disk is 10TB in size? |
Thanks for looking at this @jepio. For now I worked this around by switching to a single vsphere disk for the affected VMs.
|
Seeing this quite often when updating and replacing Flatcar with an attached durable disk:
Flatcar version: 3815.2.0 Only deleting the disk brings me forward when this happens. It does not happen all the time though... This is the disk setup I am using in the butane template:
|
Isn't that a different issue, related to terraform: flatcar/flatcar-website#296 ? |
No, this is not related. This is a problem with an already existing disk when recreating the flatcar VM. |
So there is some race involved and it doesn't always happen? The same error message was reported in coreos/bugs#2100 (comment) Edit: answer from there says the same as Jeremi below |
@TimoKramer:
so I understand that you would expect the match to happen on the |
Description
With Beta 3185.1.0 and ignition v3 we observe issues when vSphere VM has more than one disk.
Impact
Cannot deploy VM.
Environment and steps to reproduce
create partitions failed: Failed to pretend to create partitions: exit status 4. Stderr: Could not create partition 1 from 4194304 to 20975714303
. Sometimes ignition fails without an error message. In both cases entering Emergency shell is not possible (reboot loop).Expected behavior
VM is deployed as it is the case with Flatcar Stable 3139.2.0 OVA with Ignition v2 spec file
Additional information
To narrow it down to Beta release, same ignition json is used (just few lines edited that differ between v2 and v3 spec file).
Attaching both files to the issue.
VM config to reproduce:
The text was updated successfully, but these errors were encountered: