Restoring backup files and restoring their context are two separate commands now, which means that in case we use SSHTrasport, which creates a separate SSH session for each command, we try to restore the selinux context of the changed files in a new session.
This causes problems, if the access to files themselves is necessary for the creation of the new SSH session.
[2014-01-22T13:02:07Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.cmd60.out] <DEBUG>: `/root/ipatests/file_backup/etc/sysconfig/authconfig' -> `/etc/sysconfig/authconfig' [2014-01-22T13:02:07Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.cmd60.out] <DEBUG>: `/root/ipatests/file_backup/etc/openldap/ldap.conf' -> `/etc/openldap/ldap.conf' [2014-01-22T13:02:07Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.cmd60.out] <DEBUG>: `/root/ipatests/file_backup/etc/nsswitch.conf' -> `/etc/nsswitch.conf' [2014-01-22T13:02:07Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.cmd60] <DEBUG>: Exit code: 0 [2014-01-22T13:02:07Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.OpenSSHTransport] <INFO>: RUN find /root/ipatests/file_backup | sed 's/\/root\/ipatests\/file_backup//g' | sed '/^$/d' | xargs -d ' ' /sbin/restorecon -v [2014-01-22T13:02:07Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.cmd61] <DEBUG>: RUN find /root/ipatests/file_backup | sed 's/\/root\/ipatests\/file_backup//g' | sed '/^$/d' | xargs -d ' ' /sbin/restorecon -v [2014-01-22T13:02:09Z ipa.ipatests.test_integration.host.Host.cisco-c220m3-01.cmd61.err] <DEBUG>: Connection closed by 10.16.70.65
We need to execute both tasks inside one session.
master: 1601860
ipa-3-3: 57e6b5b
master:
ipa-3-3:
Metadata Update from @tbabej: - Issue assigned to tbabej - Issue set to the milestone: FreeIPA 3.3.5 (bug fixing)
Login to comment on this ticket.