Bug 1395089 - [RFE] The user's home directory should be persisted after upgrade
Summary: [RFE] The user's home directory should be persisted after upgrade
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-node
Classification: oVirt
Component: RFEs
Version: 4.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: ---
Assignee: Fabian Deutsch
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-15 06:13 UTC by Qin Yuan
Modified: 2016-11-15 08:43 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-15 08:43:01 UTC
oVirt Team: Node
rule-engine: planning_ack?
rule-engine: devel_ack?
cshao: testing_ack+


Attachments (Terms of Use)
/var/log*,/tmp/* (198.75 KB, application/x-gzip)
2016-11-15 07:19 UTC, Qin Yuan
no flags Details

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.


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