Skip to content

Commit

Permalink
mantle: kola: use by-partuuid instead of by-partlabel for mount parti…
Browse files Browse the repository at this point in the history
…tions test

As with mounting disks, the same change is needed for mounting partitions for s390x. A little
delay in pushing this because of this issue in ignition: coreos/ignition#930
which is now fixed
  • Loading branch information
Prashanth684 authored and openshift-merge-robot committed Mar 5, 2020
1 parent 9c6f294 commit 81b2796
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions mantle/kola/tests/ignition/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,14 @@ func init() {
{
"label": "CONTR",
"size": 2097152,
"start": 0
"start": 0,
"guid": "63194b49-e4b7-43f9-9a8b-df0fd8279bb7"
},
{
"label": "LOG",
"size": 2097152,
"start": 0
"start": 0,
"guid": "6385b84e-2c7b-4488-a870-667c565e01a8"
}
]
}
Expand All @@ -226,15 +228,15 @@ func init() {
{
"name": "CONTR",
"mount": {
"device": "/dev/disk/by-partlabel/CONTR",
"device": "/dev/disk/by-partuuid/63194b49-e4b7-43f9-9a8b-df0fd8279bb7",
"format": "xfs",
"wipeFilesystem": true
}
},
{
"name": "LOG",
"mount": {
"device": "/dev/disk/by-partlabel/LOG",
"device": "/dev/disk/by-partuuid/6385b84e-2c7b-4488-a870-667c565e01a8",
"format": "xfs",
"wipeFilesystem": true
}
Expand Down Expand Up @@ -264,12 +266,12 @@ func init() {
{
"name": "var-lib-containers.mount",
"enabled": true,
"contents": "[Mount]\nWhat=/dev/disk/by-partlabel/CONTR\nWhere=/var/lib/containers\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
"contents": "[Mount]\nWhat=/dev/disk/by-partuuid/63194b49-e4b7-43f9-9a8b-df0fd8279bb7\nWhere=/var/lib/containers\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
},
{
"name": "var-log.mount",
"enabled": true,
"contents": "[Mount]\nWhat=/dev/disk/by-partlabel/LOG\nWhere=/var/log\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
"contents": "[Mount]\nWhat=/dev/disk/by-partuuid/6385b84e-2c7b-4488-a870-667c565e01a8\nWhere=/var/log\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
}
]
}
Expand All @@ -286,28 +288,30 @@ func init() {
"label": "CONTR",
"sizeMiB": 1024,
"startMiB": 0,
"wipePartitionEntry": true
"wipePartitionEntry": true,
"guid":"63194b49-e4b7-43f9-9a8b-df0fd8279bb7"
},
{
"label": "LOG",
"sizeMiB": 1024,
"startMiB": 0,
"wipePartitionEntry": true
"wipePartitionEntry": true,
"guid":"6385b84e-2c7b-4488-a870-667c565e01a8"
}
]
}
],
"filesystems": [
{
"path": "/var/lib/containers",
"device": "/dev/disk/by-partlabel/CONTR",
"device": "/dev/disk/by-partuuid/63194b49-e4b7-43f9-9a8b-df0fd8279bb7",
"format": "xfs",
"label": "CONTR",
"wipeFilesystem": true
},
{
"path": "/var/log",
"device": "/dev/disk/by-partlabel/LOG",
"device": "/dev/disk/by-partuuid/6385b84e-2c7b-4488-a870-667c565e01a8",
"format": "xfs",
"label": "LOG",
"wipeFilesystem": true
Expand All @@ -333,12 +337,12 @@ func init() {
{
"name": "var-lib-containers.mount",
"enabled": true,
"contents": "[Mount]\nWhat=/dev/disk/by-partlabel/CONTR\nWhere=/var/lib/containers\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
"contents": "[Mount]\nWhat=/dev/disk/by-partuuid/63194b49-e4b7-43f9-9a8b-df0fd8279bb7\nWhere=/var/lib/containers\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
},
{
"name": "var-log.mount",
"enabled": true,
"contents": "[Mount]\nWhat=/dev/disk/by-partlabel/LOG\nWhere=/var/log\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
"contents": "[Mount]\nWhat=/dev/disk/by-partuuid/6385b84e-2c7b-4488-a870-667c565e01a8\nWhere=/var/log\nType=xfs\nOptions=defaults\n[Install]\nWantedBy=local-fs.target"
}]
}
}`),
Expand Down

0 comments on commit 81b2796

Please sign in to comment.