wipedisk command is failing

Bug #1877579 reported by Frank Miller
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Ovidiu Poncea

Bug Description

Brief Description
-----------------
The wipedisk command is failing. Issue introduced when the new backup partition was introduced: https://review.opendev.org/#/c/720256/

sudo wipedisk
This will result in the loss of all data on the hard drives and
will require this node to be re-installed.
The following disks will be wiped:
/dev/nvme0n1
/dev/nvme0n1p5

Are you absolutely sure? [y/n] y
Type 'wipediskscompletely' to confirm: wipediskscompletely
Wiping /dev/nvme0n1p5...
/dev/nvme0n1p5: 8 bytes were erased at offset 0x00000218 (LVM2_member): 4c 56 4d 32 20 30 30 31
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000144525 s, 120 MB/s
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000120675 s, 144 MB/s
Skipping wipe backup partition /dev/nvme0n1p1...
Wiping partition /dev/nvme0n1p2...
/dev/nvme0n1p2: 8 bytes were erased at offset 0x00000036 (vfat): 46 41 54 31 36 20 20 20
/dev/nvme0n1p2: 1 bytes were erased at offset 0x00000000 (vfat): eb
/dev/nvme0n1p2: 2 bytes were erased at offset 0x000001fe (vfat): 55 aa
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000152572 s, 114 MB/s
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000171672 s, 101 MB/s
Wiping partition /dev/nvme0n1p3...
/dev/nvme0n1p3: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000125315 s, 139 MB/s
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000145348 s, 120 MB/s
Wiping partition /dev/nvme0n1p4...
/dev/nvme0n1p4: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef
34+0 records in
34+0 records out
17408 bytes (17 kB) copied, 0.000145255 s, 120 MB/s
/usr/local/bin/wipedisk: line 130: /usr/sbin/blockdev: Input/output error
/usr/local/bin/wipedisk: line 130: /usr/bin/dd: Input/output error
/usr/local/bin/wipedisk: line 117: /usr/bin/flock: Input/output error
/usr/local/bin/wipedisk: line 118: /usr/bin/awk: Input/output error
/usr/local/bin/wipedisk: line 118: /usr/bin/grep: Input/output error
Wiping partition /dev/nvme0n1p5...
/usr/local/bin/wipedisk: line 124: /usr/sbin/wipefs: Input/output error
/usr/local/bin/wipedisk: line 129: /usr/bin/dd: Input/output error
/usr/local/bin/wipedisk: line 130: /usr/sbin/blockdev: Input/output error
/usr/local/bin/wipedisk: line 130: /usr/bin/dd: Input/output error
/usr/local/bin/wipedisk: line 149: /usr/bin/sync: Input/output error
The disk(s) have been wiped.

Severity
--------
Major

Steps to Reproduce
------------------
sudo wipedisk

Expected Behavior
------------------
No errors should occur

Actual Behavior
----------------
Errors occur

Reproducibility
---------------
Reproducible

System Configuration
--------------------
All systems

Branch/Pull Time/Commit
-----------------------
Loads built on May 7

Last Pass
---------
Apr 29

Timestamp/Logs
--------------
n/a

Test Activity
-------------
Preparing a system for a re-install

Workaround
----------
n/a

Frank Miller (sensfan22)
Changed in starlingx:
assignee: nobody → Ovidiu Poncea (ovidiu.poncea)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to metal (master)

Fix proposed to branch: master
Review: https://review.opendev.org/726437

Changed in starlingx:
status: New → In Progress
Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.4.0 / high priority - issue introduced by recent code change

tags: added: stx.4.0 stx.storage
Changed in starlingx:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to metal (master)

Reviewed: https://review.opendev.org/726437
Committed: https://git.openstack.org/cgit/starlingx/metal/commit/?id=24499f8f25a72abbb109a3a6494ad38744a1d147
Submitter: Zuul
Branch: master

commit 24499f8f25a72abbb109a3a6494ad38744a1d147
Author: Ovidiu Poncea <email address hidden>
Date: Fri May 8 19:21:20 2020 +0300

    Fix wipedisk rootfs partition and bootloader removal

    This commit changes:
     o DD wipe is no longer executed on / or we loose access
       to system commands before wipe is complete. Wiping
       root beginning and end is not mandatory as on reinstall
       it is reformatted.
     o Partitions on rootfs, other than platform-backup are
       removed.
     o Bootloader is removed so that boot from secondary devices
       can be done. This is useful at host reinstall. W/o this
       change boot hangs and manual intervention is needed.

    Change-Id: I1ab9f70d00a38568fc00063cdaa54ec3be48dc33
    Closes-Bug: 1877579
    Signed-off-by: Ovidiu Poncea <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to metal (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/729821

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to metal (f/centos8)
Download full text (9.2 KiB)

Reviewed: https://review.opendev.org/729821
Committed: https://git.openstack.org/cgit/starlingx/metal/commit/?id=51bd3f945544cb97da2ef2a0b12bdf2c5468514c
Submitter: Zuul
Branch: f/centos8

commit efbaf2cd0db97fc1b43ffbf2a8346eb12638a08f
Author: Sharath Kumar K <email address hidden>
Date: Mon May 4 10:24:30 2020 +0200

    De-branding in starlingx/metal: TIS -> StarlingX

    1. Rename TIS to StarlingX for .spec file

    Test:
    After the de-brand change, bootimage.iso has been built in the flock
    Layer and installed on the dev machine to validate the changes.

    Please note, doing de-brand changes in batches, this is batch11 changes.

    Story: 2006387
    Task: 36207

    Change-Id: I52673924a8186afb7482d7ba7b601f4733268afb
    Signed-off-by: Sharath Kumar K <email address hidden>

commit 24499f8f25a72abbb109a3a6494ad38744a1d147
Author: Ovidiu Poncea <email address hidden>
Date: Fri May 8 19:21:20 2020 +0300

    Fix wipedisk rootfs partition and bootloader removal

    This commit changes:
     o DD wipe is no longer executed on / or we loose access
       to system commands before wipe is complete. Wiping
       root beginning and end is not mandatory as on reinstall
       it is reformatted.
     o Partitions on rootfs, other than platform-backup are
       removed.
     o Bootloader is removed so that boot from secondary devices
       can be done. This is useful at host reinstall. W/o this
       change boot hangs and manual intervention is needed.

    Change-Id: I1ab9f70d00a38568fc00063cdaa54ec3be48dc33
    Closes-Bug: 1877579
    Signed-off-by: Ovidiu Poncea <email address hidden>

commit a56b99c84693149a035ffe6594099f60db71584e
Author: Ovidiu Poncea <email address hidden>
Date: Sat May 2 11:47:44 2020 -0400

    Fix partition removal after wipe

    After the wipe step, partitions are not removed when installing the load.
    This commit fixes this.

    Also, on some systems with NVMe, udev doesn't correctly remove the device
    nodes to the deleted partitions from /dev/nvme* causing them to be seen as
    non block devices, this leads to failures on format or assigning LVM PVs.

    Change-Id: I3ab9f70d00a38568fc00063cdaa54ec3be48dc58
    Closes-Bug: 1876374
    Signed-off-by: Ovidiu Poncea <email address hidden>

commit ece0dd0ce5e36c461c93a5cc3b803fb3b5c5e59e
Author: Mihnea Saracin <email address hidden>
Date: Wed Apr 15 20:25:22 2020 +0300

    Persistent backup partition

    Add a backup partition that has
    the following characteristics:
    - It will never be deleted
      (not at install, reinstall, upgrade nor B&R)
    - The partition will have 10G
    - It will be resizable at upgrades

    Story: 2007403
    Task: 39548
    Change-Id: I2ec9f70d00a38568fc00063cdaa54ec3be48dc47
    Signed-off-by: Mihnea Saracin <email address hidden>

commit 84c720f4562bde3d06b245bca0b7ad41655d35f5
Author: Don Penney <email address hidden>
Date: Mon Apr 27 22:50:10 2020 -0400

    Drop copy of .cfg files from controller kickstarts

    In a boot from an ISO modified by update-iso.sh with a ks-addon, the
    ...

Read more...

tags: added: in-f-centos8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.