From d8ba53aefcbef5425f0355d26c324a082f74feaf Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 13 Dec 2016 16:38:22 -0800 Subject: [PATCH] workaround #1402427 in support_server support_server was failing because of #1402427. I re-generated the disk image with latest F25 so the fixed selinux-policy is used, but even then, it seems we have to run 'restorecon' on rpcbind manually before starting nfs. --- tests/_support_server.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/_support_server.pm b/tests/_support_server.pm index 0c53911c..c510bfca 100644 --- a/tests/_support_server.pm +++ b/tests/_support_server.pm @@ -54,6 +54,9 @@ sub run { assert_script_run "printf '/export 10.0.2.0/24(ro)\n/repo 10.0.2.0/24(ro)' > /etc/exports"; # open firewall port assert_script_run "firewall-cmd --add-service=nfs"; + # workaround RHBZ #1402427: somehow the file is incorrectly labelled + # even after a clean install with fixed selinux-policy + assert_script_run "restorecon /usr/bin/rpcbind"; # start the server assert_script_run "systemctl restart nfs-server.service"; assert_script_run "systemctl is-active nfs-server.service";