Bug 980042

Summary: Unable to restore DB when selinux is disabled.
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilanit Stein <istein>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: movciari
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, bdagan, emesika, iheim, jkt, lpeer, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:16:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 976337    
Bug Blocks:    

Description Ilanit Stein 2013-07-01 09:55:55 UTC
Description of problem:

Restore DB fail when selinux is disabled (see log bellow).
when switching to selinux enforced, the restore works.
 
Log:

[root@istein-32 ~]# /usr/share/ovirt-engine/dbscripts/restore.sh -u postgres -d engine -f /tmp/00579652_221211073824_pgdump.tar -r -o
Restore of database engine from /tmp/00579652_221211073824_pgdump.tar started...
/tmp/00579652_221211073824_pgdump.tar: tar archive
chcon: can't apply partial context to unlabeled file `/tmp/00579652_221211073824_pgdump.tar_dir'
Failed to restore SELinux default settings for /tmp/00579652_221211073824_pgdump.tar_dir.



Version-Release number of selected component (if applicable):
sf18.2
(The DB tar file is from 3.1 setup)

How reproducible:
always

Expected results:
Restore DB should succeed also for selinux disabled.

additional info:
This bug was found during verification of Bug 973275

Comment 1 Eli Mesika 2013-07-23 19:34:31 UTC
fixed in commit : e7f6fda

Comment 2 Itamar Heim 2014-01-21 22:16:59 UTC
Closing - RHEV 3.3 Released

Comment 3 Itamar Heim 2014-01-21 22:23:39 UTC
Closing - RHEV 3.3 Released