Bug 1395089

Summary: [RFE] The user's home directory should be persisted after upgrade
Product: [oVirt] ovirt-node Reporter: Qin Yuan <qiyuan>
Component: RFEsAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED NOTABUG QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0CC: bugs, cshao, dguo, fdeutsch, huzhao, jiawu, leiwang, qiyuan, rbarry, weiwang, yaniwang, ycui, yzhao
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
cshao: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 08:43:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
/var/log*,/tmp/* none

Description Qin Yuan 2016-11-15 06:13:28 UTC
Description of problem:
Install an old RHVH build via interactive anaconda, and add an user named test(or other name). After reboot, the user can work well.

Then upgrade to the latest build, after reboot, login to the user using "su - test", there is a warning printed out on the screen:
"su: warning: cannot change directory to /home/test: No such file or
directory"

Although the Bug 1366248 described: 
"Content in only the /etc and /var directories is preserved during an update.  
 Data in other paths is completely replaced during an upgrade."

But it looks weird to make the user's home directory disappear after upgrade, as the user is added during installation procedure.

So, it may be good to persist the user's home directory(exclude the contents in it) after upgrading.


Version-Release number of selected component (if applicable):
Build1:
redhat-virtualization-host-4.0-20160919.0
imgbased-0.8.5-0.1.el7ev.noarch
Build2(the latest build):
redhat-virtualization-host-4.0-20161111.0
imgbased-0.8.9-0.1.el7ev.noarch


How reproducible:
100%


Steps to Reproduce:
1. Install Build1 via interactive anaconda, and add an user named test
(or other name).
2. Reboot and login to Build1, check /home/test.
3. Upgrade to Build2.
4. Reboot and login to Build2.
5. check /home/test.

Actual results:
1. After step2, the /home/test directory is there.
2. After step5, the /home/test directory is disappeared.

Expected results:
1. After step2, the /home/test directory is there.
2. After step5, the /home/test directory is still there.

Additional info:

Comment 1 Qin Yuan 2016-11-15 07:19:47 UTC
Created attachment 1220700 [details]
/var/log*,/tmp/*

Comment 2 Fabian Deutsch 2016-11-15 08:43:01 UTC
Local users are not intended, thus we don't plan to persist the home directory.

After all RHVH is a specialized appliance which doe snot require local users.