#638 new test case: reinstall Fedora while preserving /home
Closed: Fixed 3 years ago by kparal. Opened 3 years ago by kparal.

Read this thread:
https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org/thread/VZFJ2MWPJLSP3RFCWN4H7MWDXXWEXLNL/

Quoting @chrismurphy:

In fact, we should probably make this a Test Case. And discuss making
it a release blocking criterion, as it's a significant feature. We've
always had this capability with LVM+ext4 because /home was a separate
file system that you can just reuse. And the steps are pretty much the
same for it as for Btrfs.

Please create a new test case for this scenario.


@coremodule This might be a good opportunity to practice test case creation, if you have some spare cycles.

@coremodule @kparal Lemme know if I can help. I'll run through that 'from memory' sequence with F33 in VM and make sure it's OK.

@chrismurphy @kparal
I have drafted: https://fedoraproject.org/wiki/User:Sumantrom/Draft/preserve_home_data
tested that on the latest iso, no data is being deleted.

Please review and we will hook it up to the test day
turns out there is LOT of participation already

Metadata Update from @kparal:
- Issue assigned to sumantrom

3 years ago

Guess what? There is a small problem with the test case, that is easily fixed, I think by a NOTE.


NOTE: This test case has no step to remove anything, including the previous root subvolume. In step 5, by default Anaconda will create a new subvolume root00 mounted at /. You can choose to delete the root subvolume in the installer or at your leisure. Other than consuming space, there is no conflict with this "extra root".


An approximately similar behavior is possible with LVM thin provisioning. You can keep all your old LV's, and just create a new one for system root, without being required to delete/reformat the old one.

Guess what? There is a small problem with the test case, that is easily fixed, I think by a NOTE.


NOTE: This test case has no step to remove anything, including the previous root subvolume. In step 5, by default Anaconda will create a new subvolume root00 mounted at /. You can choose to delete the root subvolume in the installer or at your leisure. Other than consuming space, there is no conflict with this "extra root".


An approximately similar behavior is possible with LVM thin provisioning. You can keep all your old LV's, and just create a new one for system root, without being required to delete/reformat the old one.

Added the note as proposed
https://fedoraproject.org/wiki/User:Sumantrom/Draft/preserve_home_data

I moved the note in-between the steps to make it easier to follow.

Might wanna fix my fixes. There wasn't anything wrong but as I started #640, I wanted to make them as similar as possible

This test case is complete, @chrismurphy @kparal , if you both are satisfied with the case, can we close this ticket?

Well, do you want to make it live in a draft state in your home forever? :-) We need to make it official!

  1. It should be moved to a proper name, probably https://fedoraproject.org/wiki/QA:Testcase_partitioning_custom_btrfs_preserve_home
  2. Your draft page should be redirected to the new location
  3. Proper categories should be added to the test case
  4. An "Associated release criterion" box should be added to the test case, pointing to https://fedoraproject.org/wiki/Fedora_33_Beta_Release_Criteria#Custom_partitioning
  5. The test case should be added to https://fedoraproject.org/wiki/Template:Installation_test_matrix#Custom_storage_configuration targeting the Beta milestone
  6. The testcase link should be added to References under https://fedoraproject.org/wiki/Fedora_33_Beta_Release_Criteria#Custom_partitioning

I also noticed that our existing testcases use some templates which can be used instead of our custom step descriptions. For example:
https://fedoraproject.org/w/index.php?title=QA:Testcase_partitioning_custom_btrfs&action=edit
Please have a look at it and replace appropriate parts in your test case, if it fits well.

And lastly, we might need to create a copy of this test case for blivet partitioning. That seems to be the case of our existing test cases, we usually have one for custom and one for blivet.

Hey @sumantrom , do you have time to finalize this, or do you prefer some help?
1) is done
2) is done
3) is done
4) is not done, the link is incorrect
5) is done
6) is not done

The mentioned templates are not used, and some places are hardcoded instead of using a variable (like "Fedora 33" - the number should not be hardcoded).

Once this is finalized, we should create a new ticket for the blivet version.

@sumantrom This is very close to completion, can you please finish it? Thanks.

@kparal This is complete, please verify.
I am having started working on blivet one. Please create a ticket and I will be able to post the draft link. Thanks.

I am having started working on blivet one. Please create a ticket and I will be able to post the draft link. Thanks.

Don't be afraid to create a new ticket for yourself by yourself :laughing: Here it is:
https://pagure.io/fedora-qa/issue/655

Review coming.

I made a few changes to the testcase. I believe we're done here, thanks!

Metadata Update from @kparal:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata