Skip to content
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

fix: Remove partition table from disk removed from a VG #464

Merged

Conversation

vojtechtrefny
Copy link
Collaborator

When removing a PV from a VG we currently remove only the PV partition and not the partition table on the disk. This fixes this by removing the partition table too.

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 10.73%. Comparing base (bb51979) to head (6f6f115).
Report is 7 commits behind head on main.

Files Patch % Lines
library/blivet.py 0.00% 15 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (bb51979) and HEAD (6f6f115). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (bb51979) HEAD (6f6f115)
sanity 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #464      +/-   ##
==========================================
- Coverage   16.54%   10.73%   -5.81%     
==========================================
  Files           2        8       +6     
  Lines         284     1946    +1662     
  Branches       79        0      -79     
==========================================
+ Hits           47      209     +162     
- Misses        237     1737    +1500     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

When removing a PV from a VG we currently remove only the PV
partition and not the partition table on the disk. This fixes this
by removing the partition table too.
@richm
Copy link
Contributor

richm commented Jul 31, 2024

@vojtechtrefny looks good - did something change in el10? Because if I look at the output of wipefs -n at the end of tests_lvm_pool_members.yml with el9, the partition table is removed, even without this change

@richm
Copy link
Contributor

richm commented Jul 31, 2024

@vojtechtrefny looks good - did something change in el10? Because if I look at the output of wipefs -n at the end of tests_lvm_pool_members.yml with el9, the partition table is removed, even without this change

Sorry, I'm wrong - on centos-9 there is a partition table, but it is different.

DEVICE OFFSET TYPE UUID LABEL
sda    0x1fe  dos

@spetrosi
Copy link
Contributor

spetrosi commented Aug 1, 2024

[citest]

@richm
Copy link
Contributor

richm commented Aug 1, 2024

@richm
Copy link
Contributor

richm commented Aug 1, 2024

@spetrosi https://dl.fedoraproject.org/pub/alt/linuxsystemroles/logs/tf_storage-464_CentOS-Stream-10-2.17_20240801-082216/artifacts - I don't see any failures, but the github action result is failed?

not all of the tests ran - did the test run get killed by some sort of timeout? One problem with the storage tests is that they take hours to complete - may need to increase resources/timeout - maybe testing farm is killing the test because it takes too long.

@richm richm merged commit 55bf887 into linux-system-roles:main Aug 1, 2024
17 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants