URL: https://github.com/freeipa/freeipa/pull/4178
Author: amore17
 Title: #4178: "Unspecified GSS failure" should not be in log when mounted with 
krb5.
Action: opened

PR body:
"""
This is an integration test:
When there is directory mounted on the ipa-client with sec=krb5
Then no "Unspecified GSS failure" should be in logs.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4178/head:pr4178
git checkout pr4178
From e56a82d26744a04b6456cab00b5bad5da127e72a Mon Sep 17 00:00:00 2001
From: Anuja More <am...@redhat.com>
Date: Thu, 30 Jan 2020 16:24:20 +0530
Subject: [PATCH 1/2] "Unspecified GSS failure" should not be in log when
 mounted with krb5.

When there is directory mounted on the ipa-client with sec=krb5
Then no "Unspecified GSS failure" should be in logs.

Signed-off-by: Anuja More <am...@redhat.com>
---
 ipatests/test_integration/test_nfs.py | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_integration/test_nfs.py b/ipatests/test_integration/test_nfs.py
index c59290f869..2d321372b5 100644
--- a/ipatests/test_integration/test_nfs.py
+++ b/ipatests/test_integration/test_nfs.py
@@ -106,6 +106,7 @@ def test_krb5_nfsd(self):
         basedir = "exports"
         exports = {
             "krbnfs": "*(sec=krb5p,rw)",
+            "krb5nfs": "*(sec=krb5,rw)",
             "stdnfs": "*(ro)",
             "home": "*(sec=krb5p,rw)"
         }
@@ -129,7 +130,7 @@ def test_krb5_nfs_manual_configuration(self):
 
         nfsclt.run_command(["systemctl", "restart", "rpc-gssd"])
         time.sleep(WAIT_AFTER_INSTALL)
-        mountpoints = ("/mnt/krb", "/mnt/std", "/home")
+        mountpoints = ("/mnt/krb", "/mnt/std", "/home", "/mnt/krb5")
         for mountpoint in mountpoints:
             nfsclt.run_command(["mkdir", "-p", mountpoint])
         nfsclt.run_command([
@@ -146,6 +147,18 @@ def test_krb5_nfs_manual_configuration(self):
             "mount", "-t", "nfs4", "-o", "sec=krb5p,vers=4.0",
             "%s:/exports/home" % nfssrv.hostname, "/home", "-v"
         ])
+        logsize = tasks.get_logsize(self.master, '/var/log/messages')
+        nfsclt.run_command(["systemctl", "restart", "gssproxy"])
+
+        # mount with krb5
+        nfsclt.run_command([
+            "mount", "-o", "sec=krb5",
+            "%s:/exports/krbnfs" % nfssrv.hostname, "/mnt/krb5", "-v"
+        ])
+        nfsclt.run_command(['umount', '/mnt/krb5'])
+        log = self.master.get_file_contents('/var/log/messages')[logsize:]
+        error_meassage = "Unspecified GSS failure"
+        assert not error_meassage.encode() in log
 
     def test_automount(self):
         """

From 6e1e7371f972d54d481f4bfc4d36dd786cfc6ca0 Mon Sep 17 00:00:00 2001
From: Anuja More <am...@redhat.com>
Date: Thu, 30 Jan 2020 17:19:46 +0530
Subject: [PATCH 2/2] temp_commit

Signed-off-by: Anuja More <am...@redhat.com>
---
 .freeipa-pr-ci.yaml                        | 2 +-
 ipatests/prci_definitions/temp_commit.yaml | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.freeipa-pr-ci.yaml b/.freeipa-pr-ci.yaml
index abcf8c5b63..8065669008 120000
--- a/.freeipa-pr-ci.yaml
+++ b/.freeipa-pr-ci.yaml
@@ -1 +1 @@
-ipatests/prci_definitions/gating.yaml
\ No newline at end of file
+ipatests/prci_definitions/temp_commit.yaml
\ No newline at end of file
diff --git a/ipatests/prci_definitions/temp_commit.yaml b/ipatests/prci_definitions/temp_commit.yaml
index 5afbe014f9..ec1b2c1090 100644
--- a/ipatests/prci_definitions/temp_commit.yaml
+++ b/ipatests/prci_definitions/temp_commit.yaml
@@ -64,7 +64,7 @@ jobs:
       class: RunPytest
       args:
         build_url: '{fedora-latest/build_url}'
-        test_suite: test_integration/test_REPLACEME.py
+        test_suite: test_integration/test_nfs.py::TestNFS
         template: *ci-master-latest
-        timeout: 3600
-        topology: *master_1repl_1client
+        timeout: 9000
+        topology: *master_3client
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org

Reply via email to