Bug 1913975 - SNO: harddrive needs to be cleaned prior deploying
Summary: SNO: harddrive needs to be cleaned prior deploying
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: John Wilkins
QA Contact: Xiaoli Tian
Tomas 'Sheldon' Radej
URL:
Whiteboard: SingleNode
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-07 21:53 UTC by Alexander Chuzhoy
Modified: 2023-08-02 06:29 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-31 15:12:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alexander Chuzhoy 2021-01-07 21:53:13 UTC
Version:

SNO 4.7.0-fc.0

Deploying on a disk with existing partitions fails. The following can be seen in logs during the bootstrap phase:


Jan 07 18:55:35 openshift-worker-2.qe3.kni.lab.eng.bos.redhat.com bootkube.sh[3540]: Installing Red Hat Enterprise Linux CoreOS 46.82.202009222340-0 (Ootpa) x86_64 (512-byte sectors)
Jan 07 18:55:37 openshift-worker-2.qe3.kni.lab.eng.bos.redhat.com bootkube.sh[3540]: Partitions in use on /dev/sda:
Jan 07 18:55:37 openshift-worker-2.qe3.kni.lab.eng.bos.redhat.com bootkube.sh[3540]:     /dev/sda2 in use by /dev/dm-1
Jan 07 18:55:37 openshift-worker-2.qe3.kni.lab.eng.bos.redhat.com bootkube.sh[3540]:     /dev/sda2 in use by /dev/dm-2
Jan 07 18:55:37 openshift-worker-2.qe3.kni.lab.eng.bos.redhat.com bootkube.sh[3540]: Error: checking for exclusive access to /dev/sda
Jan 07 18:55:37 openshift-worker-2.qe3.kni.lab.eng.bos.redhat.com bootkube.sh[3540]: Caused by: found busy partitions


Workaround:
Manually remove all existing parititions.

Comment 1 Rom Freiman 2021-01-18 07:25:50 UTC
@sasha it's definitely not a bug but an RFE.

@kboumedh what is usually the guideline regarding partitions cleanup in UPI installation? I cannot find anything in the docs

https://docs.openshift.com/container-platform/4.6/installing/installing_bare_metal/installing-bare-metal.html

Comment 2 Pablo Iranzo Gómez 2021-01-19 11:48:53 UTC
For baremetal, Ironic should take care of cleaning the disk on server usage or when retiring a server and returning it to the pool of available machines.

Step 6.8 at https://openshift-kni.github.io/baremetal-deploy/4.6/Troubleshooting.html#ipi-install-troubleshooting-ironic-bootstrap_ipi-install-troubleshooting

Comment 3 Rom Freiman 2021-01-27 12:18:18 UTC
@sasha it's definitely not a bug but an RFE.
Can we close this ticket? See the above comments

Comment 8 Alexander Chuzhoy 2021-11-15 19:30:49 UTC
Confirm that the cleaning step isn't needed anymore.


Note You need to log in before you can comment on or make changes to this bug.