baremetal-operator: Unable to find a valid partition table on the disk after writing the image
What steps did you take and what happened: I have prepared a baremetal image with:
export DIB_RELEASE=jammy
disk-image-create -x --no-tmpfs -t raw -o output.raw baremetal block-device-efi ubuntu-minimal
Using:
disk-image-create --version
3.38.0
Installed baremetal-operator from branch release-0.10 using from tools directory:
/deploy.sh -b -i -t
Created secrets for RedFish credentials and with ssh-key:
$cat secrets.yaml
apiVersion: v1
kind: Secret
metadata:
name: dell-idrac
type: Opaque
stringData:
username: ***
password: ***
$cat user-data.yaml
#cloud-config
users:
- name: user
ssh_authorized_keys:
- ssh-rsa ***
Then created instance of BareMetalHost that will use previously created secrets (all in default namespace):
$ cat my-baremetal-host
apiVersion: metal3.io/v1alpha1
kind: BareMetalHost
metadata:
name: my-baremetal-host
spec:
online: true
rootDeviceHints:
deviceName: "/dev/sda"
automatedCleaningMode: metadata
bootMACAddress: B8:E9:24:AA:FD:44
bootMode: UEFI
bmc:
address: idrac-virtualmedia://***:443/redfish/v1/Systems/System.Embedded.1
credentialsName: dell-idrac
disableCertificateVerification: true
image:
checksumType: sha256
checksum: http://***/SHA256SUMS
format: qcow2
url: http://***/jammy-server-cloudimg-amd64.img
userData:
name: user-data
namespace: default
Created from manifests (in default namespace):
kubectl -f secrets.yaml
kubectl -f user-data.yaml
kubectl -f my-baremetal-host.yaml
It went through the process of mounting a virtual CD and inspecting it but after deploying hit error when looking at kubectl describe baremetal my-baremetal-host:
{"level":"info","ts":1747082089.2509487,"logger":"provisioner.ironic","msg":"current provision state","host":"default~wormhole-k8s-012","lastError":"Deploy step deploy.write_image failed on node 7721932f-1d88-474a-875f-7fca369ab255. Unable to find a valid partition table on the disk after writing the image. The image may be corrupted. Error: Unexpected error while running command.\nCommand: parted -s -m /dev/sda unit MiB print\nExit code: 1\nStdout: 'BYT;\\n/dev/sda:457344MiB:scsi:4096:4096:unknown:DELL RAID:;\\n'\nStderr: 'Error: /dev/sda: unrecognised disk label\\n'","current":"wait call-back","target":"active"}
What did you expect to happen: I expected validation to pass and to boot into user image (Ubuntu in this case).
Anything else you would like to add: Baremetal hardware in use: PowerEdge R6625 RAID controller used: PERC H965i Front (Embedded) with preconfigured RAID0 with 2 x 446GB SSDs
[Miscellaneous information that will assist in solving the issue.]
Environment:
- Baremetal Operator version: release-0.10
- Environment (metal3-dev-env or other): Baremetal
/kind bug
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (9 by maintainers)
I confirm @Rozzii the Root Cause was a sector size. I have confirmed it with:
and got to the
provisionedstate and confirme via iDRAC that OS is installed.I can say this is not a bug, but a side effect of new sector size that is becoming more popular. The only sugestion I have is to some how detect sector sizes mismatch.
My next step will be how to use upstream image then i. e. UBUNTU_22.04_NODE_IMAGE_K8S_v1.33.0.qcow2
I will likely have to recreate it or convert, but that is outside of this bug.
Thank you @Rozzii for a suggestion that this might be a sector size mismatch.
I’ve created https://review.opendev.org/c/openstack/ironic-python-agent/+/954498 to provide a hint in the error message.
I’m not sure our RAID API will help. Please check if there are any kernel messages during the run. It seems we cannot read back what we’ve just written.