[SSSD] [sssd PR#5931][opened] Translations update from Fedora Weblate

2021-12-21 Thread weblate
   URL: https://github.com/SSSD/sssd/pull/5931
Author: weblate
 Title: #5931: Translations update from Fedora Weblate
Action: opened

PR body:
"""
Translations update from [Fedora Weblate](https://translate.fedoraproject.org) 
for [SSSD/sssd](https://translate.fedoraproject.org/projects/sssd/sssd-master/).


It also includes following components:

* 
[SSSD/sssd-manpage](https://translate.fedoraproject.org/projects/sssd/sssd-manpage-master/)



Current translation status:

![Weblate translation 
status](https://translate.fedoraproject.org/widgets/sssd/-/sssd-master/horizontal-auto.svg)

"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5931/head:pr5931
git checkout pr5931
From 7fe4ad6314627111f4cd0c5ab886237f27aa061d Mon Sep 17 00:00:00 2001
From: Weblate 
Date: Wed, 22 Dec 2021 08:19:08 +0100
Subject: [PATCH] po: update translations

(Korean) currently translated at 13.8% (362 of 2615 strings)
Translation: SSSD/sssd-manpage
Translate-URL: https://translate.fedoraproject.org/projects/sssd/sssd-manpage-master/ko/

po: update translations

(Korean) currently translated at 100.0% (619 of 619 strings)
Translation: SSSD/sssd
Translate-URL: https://translate.fedoraproject.org/projects/sssd/sssd-master/ko/

po: update translations

(Chinese (Simplified) (zh_CN)) currently translated at 100.0% (619 of 619 strings)
Translation: SSSD/sssd
Translate-URL: https://translate.fedoraproject.org/projects/sssd/sssd-master/zh_CN/

po: update translations

(Japanese) currently translated at 100.0% (619 of 619 strings)
Translation: SSSD/sssd
Translate-URL: https://translate.fedoraproject.org/projects/sssd/sssd-master/ja/

po: update translations

(French) currently translated at 100.0% (619 of 619 strings)
Translation: SSSD/sssd
Translate-URL: https://translate.fedoraproject.org/projects/sssd/sssd-master/fr/
---
 po/fr.po |  59 ++--
 po/ja.po |  31 +-
 po/ko.po | 881 ---
 po/zh_CN.po  |  25 +-
 src/man/po/ko.po |  23 +-
 5 files changed, 526 insertions(+), 493 deletions(-)

diff --git a/po/fr.po b/po/fr.po
index fe4d20cbf6..0712c801d0 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -8,7 +8,7 @@
 # Fabien Archambault , 2012
 # Mariko Vincent , 2012
 # Jérôme Fenal , 2016. #zanata
-# Ludek Janda , 2020. #zanata
+# Ludek Janda , 2020. #zanata, 2021.
 # Pavel Brezina , 2020. #zanata
 # Jean-Baptiste Holcroft , 2020.
 # Sundeep Anand , 2021.
@@ -17,8 +17,8 @@ msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: sssd-devel@lists.fedorahosted.org\n"
 "POT-Creation-Date: 2021-11-09 16:03+0100\n"
-"PO-Revision-Date: 2021-07-20 07:04+\n"
-"Last-Translator: Sundeep Anand \n"
+"PO-Revision-Date: 2021-12-22 07:16+\n"
+"Last-Translator: Ludek Janda \n"
 "Language-Team: French \n"
 "Language: fr\n"
@@ -26,7 +26,7 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=n > 1;\n"
-"X-Generator: Weblate 4.7.1\n"
+"X-Generator: Weblate 4.10\n"
 
 #: src/config/SSSDConfig/sssdoptions.py:20
 #: src/config/SSSDConfig/sssdoptions.py:21
@@ -872,9 +872,8 @@ msgstr ""
 "sur le serveur IPA lorsque la dernière requête n'a trouvé aucune règle"
 
 #: src/config/SSSDConfig/sssdoptions.py:244
-#, fuzzy
 msgid "Search base for SUBID ranges"
-msgstr "Base de recherche des conteneurs de vues"
+msgstr "Base de recherche pour les plages SUBID"
 
 #: src/config/SSSDConfig/sssdoptions.py:245
 msgid "The LDAP attribute that contains FQDN of the host."
@@ -2038,7 +2037,7 @@ msgstr "Option -g incompatible avec -D ou -i\n"
 #: src/monitor/monitor.c:2401
 #, c-format
 msgid "Running under %, must be root\n"
-msgstr ""
+msgstr "S’exécutant sous %, doit être superutilisateur (root)\n"
 
 #: src/monitor/monitor.c:2483
 msgid "SSSD is already running\n"
@@ -2280,7 +2279,7 @@ msgstr ""
 #: src/sss_client/ssh/sss_ssh_knownhostsproxy.c:330
 #, c-format
 msgid "sss_ssh_knownhostsproxy: connect to host %s port %d: %s\n"
-msgstr "sss_ssh_knownhostsproxy : se connecter à l'hôte %s port %d: %s\n"
+msgstr "sss_ssh_knownhostsproxy : se connecter à l'hôte %s port %d : %s\n"
 
 #: src/sss_client/ssh/sss_ssh_knownhostsproxy.c:334
 #, c-format
@@ -2426,14 +2425,14 @@ msgid "Error while executing external command\n"
 msgstr "Erreur lors de l'exécution d'une commande externe\n"
 
 #: src/tools/sssctl/sssctl.c:123
-#, fuzzy, c-format
+#, c-format
 msgid "Error while executing external command '%s'\n"
-msgstr "Erreur lors de l'exécution d'une commande externe\n"
+msgstr "Erreur lors de l’exécution de la commande externe '%s'\n"
 
 #: src/tools/sssctl/sssctl.c:126
-#, fuzzy, c-format
+#, c-format
 msgid "Command '%s' failed with [%d]\n"
-msgstr "dlopen a échoué avec [%s].\n"
+msgstr "La commande '%s' a échoué avec [%d]\n"
 
 #: src/tools/sssctl/sssctl.c:173
 msgid "SSSD needs to be running. Start SSSD

[SSSD] [sssd PR#5863][synchronized] Responder and Child process tevent chain id improvements

2021-12-21 Thread justin-stephenson
   URL: https://github.com/SSSD/sssd/pull/5863
Author: justin-stephenson
 Title: #5863: Responder and Child process tevent chain id improvements
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5863/head:pr5863
git checkout pr5863
From 8f4672f7028c4b538a6fb554d6d0d4413b5655c2 Mon Sep 17 00:00:00 2001
From: Justin Stephenson 
Date: Wed, 10 Nov 2021 15:41:23 +
Subject: [PATCH 01/17] util: Split chain ID tevent functions

Commonly used chain ID functions sss_chain_id_get() and
sss_chain_id_set() will be isolated from requiring
tevent when building sources.
---
 Makefile.am  |   2 +
 src/providers/data_provider_be.c |   1 +
 src/util/sss_chain_id.c  | 130 +
 src/util/sss_chain_id.h  |   7 +-
 src/util/sss_chain_id_tevent.c   | 138 +++
 src/util/sss_chain_id_tevent.h   |  29 +++
 6 files changed, 175 insertions(+), 132 deletions(-)
 create mode 100644 src/util/sss_chain_id_tevent.c
 create mode 100644 src/util/sss_chain_id_tevent.h

diff --git a/Makefile.am b/Makefile.am
index 5fed0d0973..54a681bc53 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -685,6 +685,7 @@ dist_noinst_HEADERS = \
 src/util/session_recording.h \
 src/util/strtonum.h \
 src/util/sss_cli_cmd.h \
+src/util/sss_chain_id_tevent.h \
 src/util/sss_chain_id.h \
 src/util/sss_ptr_hash.h \
 src/util/sss_ptr_list.h \
@@ -1266,6 +1267,7 @@ libsss_util_la_SOURCES = \
 src/util/files.c \
 src/util/selinux.c \
 src/util/sss_regexp.c \
+src/util/sss_chain_id_tevent.c \
 src/util/sss_chain_id.c \
 src/util/nss_dl_load.c \
 src/util/nss_dl_load_extra.c \
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 9d63b448ea..c632ec9461 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -47,6 +47,7 @@
 #include "util/child_common.h"
 #include "resolv/async_resolv.h"
 #include "sss_iface/sss_iface_async.h"
+#include "util/sss_chain_id_tevent.h"
 #include "util/sss_chain_id.h"
 
 #define ONLINE_CB_RETRY 3
diff --git a/src/util/sss_chain_id.c b/src/util/sss_chain_id.c
index f892e2eb78..db312698ab 100644
--- a/src/util/sss_chain_id.c
+++ b/src/util/sss_chain_id.c
@@ -18,115 +18,8 @@
 along with this program.  If not, see .
 */
 
-#include "config.h"
-
-#include 
-
-#ifdef BUILD_CHAIN_ID
-extern uint64_t debug_chain_id;
-
-static void sss_chain_id_trace_fde(struct tevent_fd *fde,
-   enum tevent_event_trace_point point,
-   void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_fd_set_tag(fde, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_chain_id = tevent_fd_get_tag(fde);
-break;
-default:
-/* Do nothing. */
-break;
-}
-}
-
-static void sss_chain_id_trace_signal(struct tevent_signal *se,
-  enum tevent_event_trace_point point,
-  void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_signal_set_tag(se, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_chain_id = tevent_signal_get_tag(se);
-break;
-default:
-/* Do nothing. */
-break;
-}
-}
-
-static void sss_chain_id_trace_timer(struct tevent_timer *timer,
- enum tevent_event_trace_point point,
- void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_timer_set_tag(timer, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_chain_id = tevent_timer_get_tag(timer);
-break;
-default:
-/* Do nothing. */
-break;
-}
-}
-
-static void sss_chain_id_trace_immediate(struct tevent_immediate *im,
- enum tevent_event_trace_point point,
- void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_immediate_set_tag(im, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_c

[SSSD] [sssd PR#5863][synchronized] Responder and Child process tevent chain id improvements

2021-12-21 Thread justin-stephenson
   URL: https://github.com/SSSD/sssd/pull/5863
Author: justin-stephenson
 Title: #5863: Responder and Child process tevent chain id improvements
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5863/head:pr5863
git checkout pr5863
From 8f4672f7028c4b538a6fb554d6d0d4413b5655c2 Mon Sep 17 00:00:00 2001
From: Justin Stephenson 
Date: Wed, 10 Nov 2021 15:41:23 +
Subject: [PATCH 01/17] util: Split chain ID tevent functions

Commonly used chain ID functions sss_chain_id_get() and
sss_chain_id_set() will be isolated from requiring
tevent when building sources.
---
 Makefile.am  |   2 +
 src/providers/data_provider_be.c |   1 +
 src/util/sss_chain_id.c  | 130 +
 src/util/sss_chain_id.h  |   7 +-
 src/util/sss_chain_id_tevent.c   | 138 +++
 src/util/sss_chain_id_tevent.h   |  29 +++
 6 files changed, 175 insertions(+), 132 deletions(-)
 create mode 100644 src/util/sss_chain_id_tevent.c
 create mode 100644 src/util/sss_chain_id_tevent.h

diff --git a/Makefile.am b/Makefile.am
index 5fed0d0973..54a681bc53 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -685,6 +685,7 @@ dist_noinst_HEADERS = \
 src/util/session_recording.h \
 src/util/strtonum.h \
 src/util/sss_cli_cmd.h \
+src/util/sss_chain_id_tevent.h \
 src/util/sss_chain_id.h \
 src/util/sss_ptr_hash.h \
 src/util/sss_ptr_list.h \
@@ -1266,6 +1267,7 @@ libsss_util_la_SOURCES = \
 src/util/files.c \
 src/util/selinux.c \
 src/util/sss_regexp.c \
+src/util/sss_chain_id_tevent.c \
 src/util/sss_chain_id.c \
 src/util/nss_dl_load.c \
 src/util/nss_dl_load_extra.c \
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 9d63b448ea..c632ec9461 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -47,6 +47,7 @@
 #include "util/child_common.h"
 #include "resolv/async_resolv.h"
 #include "sss_iface/sss_iface_async.h"
+#include "util/sss_chain_id_tevent.h"
 #include "util/sss_chain_id.h"
 
 #define ONLINE_CB_RETRY 3
diff --git a/src/util/sss_chain_id.c b/src/util/sss_chain_id.c
index f892e2eb78..db312698ab 100644
--- a/src/util/sss_chain_id.c
+++ b/src/util/sss_chain_id.c
@@ -18,115 +18,8 @@
 along with this program.  If not, see .
 */
 
-#include "config.h"
-
-#include 
-
-#ifdef BUILD_CHAIN_ID
-extern uint64_t debug_chain_id;
-
-static void sss_chain_id_trace_fde(struct tevent_fd *fde,
-   enum tevent_event_trace_point point,
-   void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_fd_set_tag(fde, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_chain_id = tevent_fd_get_tag(fde);
-break;
-default:
-/* Do nothing. */
-break;
-}
-}
-
-static void sss_chain_id_trace_signal(struct tevent_signal *se,
-  enum tevent_event_trace_point point,
-  void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_signal_set_tag(se, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_chain_id = tevent_signal_get_tag(se);
-break;
-default:
-/* Do nothing. */
-break;
-}
-}
-
-static void sss_chain_id_trace_timer(struct tevent_timer *timer,
- enum tevent_event_trace_point point,
- void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_timer_set_tag(timer, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_chain_id = tevent_timer_get_tag(timer);
-break;
-default:
-/* Do nothing. */
-break;
-}
-}
-
-static void sss_chain_id_trace_immediate(struct tevent_immediate *im,
- enum tevent_event_trace_point point,
- void *private_data)
-{
-switch (point) {
-case TEVENT_EVENT_TRACE_ATTACH:
-/* Assign the current chain id when the event is created. */
-tevent_immediate_set_tag(im, debug_chain_id);
-break;
-case TEVENT_EVENT_TRACE_BEFORE_HANDLER:
-/* Set the chain id when a handler is being called. */
-debug_c

[SSSD] [sssd PR#5908][+Waiting for review] Check default debug level of sssd and corresponding logs

2021-12-21 Thread alexey-tikhonov
  URL: https://github.com/SSSD/sssd/pull/5908
Title: #5908: Check default debug level of sssd and corresponding logs

Label: +Waiting for review
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5908][-Changes requested] Check default debug level of sssd and corresponding logs

2021-12-21 Thread alexey-tikhonov
  URL: https://github.com/SSSD/sssd/pull/5908
Title: #5908: Check default debug level of sssd and corresponding logs

Label: -Changes requested
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5908][comment] Check default debug level of sssd and corresponding logs

2021-12-21 Thread alexey-tikhonov
  URL: https://github.com/SSSD/sssd/pull/5908
Title: #5908: Check default debug level of sssd and corresponding logs

alexey-tikhonov commented:
"""
Thank you for the updates. Looks good to me.
"""

See the full comment at 
https://github.com/SSSD/sssd/pull/5908#issuecomment-998771951
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5930][-Changes requested] Tests: Health and Support Analyzer - Add request log parsing utility

2021-12-21 Thread aborah-sudo
  URL: https://github.com/SSSD/sssd/pull/5930
Title: #5930: Tests: Health and Support Analyzer - Add request log parsing 
utility

Label: -Changes requested
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5930][+Accepted] Tests: Health and Support Analyzer - Add request log parsing utility

2021-12-21 Thread aborah-sudo
  URL: https://github.com/SSSD/sssd/pull/5930
Title: #5930: Tests: Health and Support Analyzer - Add request log parsing 
utility

Label: +Accepted
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5930][comment] Tests: Health and Support Analyzer - Add request log parsing utility

2021-12-21 Thread aborah-sudo
  URL: https://github.com/SSSD/sssd/pull/5930
Title: #5930: Tests: Health and Support Analyzer - Add request log parsing 
utility

aborah-sudo commented:
"""
LGTM 
"""

See the full comment at 
https://github.com/SSSD/sssd/pull/5930#issuecomment-998750012
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5930][synchronized] Tests: Health and Support Analyzer - Add request log parsing utility

2021-12-21 Thread shridhargadekar
   URL: https://github.com/SSSD/sssd/pull/5930
Author: shridhargadekar
 Title: #5930: Tests: Health and Support Analyzer - Add request log parsing 
utility
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5930/head:pr5930
git checkout pr5930
From fe5bfbe551e570875afb88f6fd1dc72b2b8857de Mon Sep 17 00:00:00 2001
From: Shridhar Gadekar 
Date: Tue, 21 Dec 2021 00:35:14 +0530
Subject: [PATCH] Tests: Health and Support Analyzer - Add request log parsing
 utility

Verifies: #5712
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1294670
---
 .../alltests/test_sssctl_analyzer.py  | 183 ++
 1 file changed, 183 insertions(+)
 create mode 100644 src/tests/multihost/alltests/test_sssctl_analyzer.py

diff --git a/src/tests/multihost/alltests/test_sssctl_analyzer.py b/src/tests/multihost/alltests/test_sssctl_analyzer.py
new file mode 100644
index 00..b4a99b40f6
--- /dev/null
+++ b/src/tests/multihost/alltests/test_sssctl_analyzer.py
@@ -0,0 +1,183 @@
+"""Automation tests for sssctl analyzer
+:requirement: sssctl analyzer
+:casecomponent: sssd
+:subsystemteam: sst_idm_sssd
+:upstream: yes
+"""
+import pytest
+from sssd.testlib.common.utils import sssdTools
+from sssd.testlib.common.expect import pexpect_ssh
+from sssd.testlib.common.exceptions import SSHLoginException
+from constants import ds_instance_name
+
+
+def analyzer(multihost, req_arg, arg=None):
+"""
+Execute sssctl analyze command with given action and options
+and return the exit status as well as command output
+:param str req_arg: command action to perform, values could be
+'list' or 'show' or 'show '
+: param str arg: optional argument string. values could be
+'--source ' or '--logdir ' or '--help'
+"""
+if arg is None:
+arg = ''
+cmd1 = f'sssctl analyze {arg} request {req_arg}'
+cmd = multihost.client[0].run_command(cmd1, raiseonerr=False)
+return cmd.returncode, cmd.stdout_text
+
+
+@pytest.mark.usefixtures('setup_sssd', 'create_posix_usersgroups')
+@pytest.mark.analyzer
+@pytest.mark.tier1_2
+class TestSssctlAnalyzer(object):
+""" sssctl analyze test suite """
+def test_analyzer_list(self, multihost, backupsssdconf):
+"""
+:title: sssctl analyzer list to show captured nss related
+ requests from sssd log
+:id: 95e18ae1-6c4a-4baa-8202-fe33fe82bdec
+:description: sssctl analyzer request list is able to capture the user
+ and group related requests raised when commands like id and getent
+ are executed
+:bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1294670
+:steps:
+1. Configure sssd to authenticate against directory server
+2. Enable debug_level to 9 in the 'nss', 'pam' and domain section
+3. Restart SSSD with cleared cache
+4. Fetch user and group information using 'id' and 'getent' tools
+5. Run 'sssctl analyzer request list'
+6. Check with sssctl analyzer is listing id and getent instances
+7. sssctl analyzer with subcmd 'show' and request number is listing
+   logs related to that number only
+:expectedresults:
+1. Should succeed
+2. Should succeed
+3. Should succeed
+4. Should succeed
+5. Should succeed
+6. Should succeed
+7. Should succeed
+"""
+tools = sssdTools(multihost.client[0])
+sec = ['nss', 'pam']
+sssd_params = {'debug_level': '9'}
+for sec_op in sec:
+tools.sssd_conf(sec_op, sssd_params, action='update')
+multihost.client[0].service_sssd('start')
+tools.clear_sssd_cache()
+cmd = f'getent group ldapusers@{ds_instance_name}'
+multihost.client[0].run_command(cmd, raiseonerr=False)
+cmd = f'id foo1@{ds_instance_name}'
+multihost.client[0].run_command(cmd, raiseonerr=False)
+for act_op in ['list', 'list -v']:
+_, stdout = analyzer(multihost, act_op)
+assert all(ptn in stdout for ptn in ['id', 'getent'])
+tools.clear_sssd_cache()
+cmd = f'getent passwd foo1@{ds_instance_name}'
+multihost.client[0].run_command(cmd, raiseonerr=False)
+for act_op in ['list', 'list -v']:
+_, stdout = analyzer(multihost, act_op)
+assert all(ptn in stdout for ptn in ['CID #1', 'getent'])
+
+def test_analyzer_diff_log_location(self, multihost, backupsssdconf):
+"""
+:title: sssctl analyzer able to parse sssd logs from non-default
+ location
+:description: sssctl analyzer should be able to parse the sssd logs
+ from different location or logs from other host
+:id: d297b394-3502-4ade-a5a5-5fb4c4333645
+:bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1294670
+:steps:
+1. Configure sssd to authenticate against di

[SSSD] [sssd PR#5930][+Changes requested] Tests: Health and Support Analyzer - Add request log parsing utility

2021-12-21 Thread aborah-sudo
  URL: https://github.com/SSSD/sssd/pull/5930
Title: #5930: Tests: Health and Support Analyzer - Add request log parsing 
utility

Label: +Changes requested
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5908][synchronized] Check default debug level of sssd and corresponding logs

2021-12-21 Thread sgoveas
   URL: https://github.com/SSSD/sssd/pull/5908
Author: sgoveas
 Title: #5908: Check default debug level of sssd and corresponding logs
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5908/head:pr5908
git checkout pr5908
From be0a00f91b4095842cc2d2ec859f5dcb8b17aaea Mon Sep 17 00:00:00 2001
From: Madhuri Upadhye 
Date: Fri, 22 Jan 2021 15:35:17 +0530
Subject: [PATCH] Check default debug level of sssd and corresponding logs

It consists of five test cases:
  1. Check default debug level when sssd start
successfully
  2. Check default debug level by
successful authentication of the user
  3. Check default level as 0 and 1
  4. Check default level as 2
  5. Check SBUS code should not trigger failure
message during modules startup

Verifies:
Issues: #5422
#5425

Bugs: https://bugzilla.redhat.com/show_bug.cgi?id=1893159
  https://bugzilla.redhat.com/show_bug.cgi?id=1915319
---
 src/tests/multihost/alltests/pytest.ini   |   1 +
 .../alltests/test_default_debug_level.py  | 153 ++
 2 files changed, 154 insertions(+)
 create mode 100644 src/tests/multihost/alltests/test_default_debug_level.py

diff --git a/src/tests/multihost/alltests/pytest.ini b/src/tests/multihost/alltests/pytest.ini
index ac127c07f3..e23f23d21d 100644
--- a/src/tests/multihost/alltests/pytest.ini
+++ b/src/tests/multihost/alltests/pytest.ini
@@ -25,6 +25,7 @@ markers =
 ssh: Tests related to ssh responder
 ldaplibdebuglevel: Test ldap_library_debug_level option
 no_tier: test cases are not executed on any tier
+defaultdebuglevel: Test default debug level sssd
 tier1: tier1 test cases with run time of aproximately 60 minutes
 tier1_2: tier1 test cases split to keep runtime upto 60 minutes
 tier2: tier2 test cases
diff --git a/src/tests/multihost/alltests/test_default_debug_level.py b/src/tests/multihost/alltests/test_default_debug_level.py
new file mode 100644
index 00..d9c2d759a9
--- /dev/null
+++ b/src/tests/multihost/alltests/test_default_debug_level.py
@@ -0,0 +1,153 @@
+"""Automation for default debug level
+
+:requirement: SSSD - Default debug level
+:casecomponent: sssd
+:subsystemteam: sst_idm_sssd
+:upstream: yes
+"""
+
+from __future__ import print_function
+import re
+import time
+import pytest
+from sssd.testlib.common.utils import sssdTools
+from sssd.testlib.common.expect import pexpect_ssh
+from constants import ds_instance_name
+
+
+@pytest.mark.usefixtures('setup_sssd', 'create_posix_usersgroups')
+@pytest.mark.defaultdebuglevel
+@pytest.mark.tier1_2
+class TestDefaultDebugLevel(object):
+""" Check sssd default debug level """
+def test_0001_check_default_debug_level(self, multihost, backupsssdconf):
+"""
+:title: default debug logs: Check default debug level when sssd start
+ successfully
+:id: 1f38b560-27dc-4144-895d-e667420b0467
+"""
+section = "domain/%s" % ds_instance_name
+domain_params = {'debug_level': ''}
+tools = sssdTools(multihost.client[0])
+tools.sssd_conf(section, domain_params, action='delete')
+# stop sssd, delete sssd logs and cache, start sssd
+tools.clear_sssd_cache()
+time.sleep(5)
+log_list = ['sssd', f'sssd_{ds_instance_name}',
+'sssd_nss', 'sssd_pam']
+for log_filename in log_list:
+log = '/var/log/sssd/%s.log' % log_filename
+log_str = multihost.client[0].get_file_contents(log).decode(
+'utf-8')
+pattern1 = re.compile(r'Starting with debug level = 0x0070')
+default_debug = pattern1.search(log_str)
+assert default_debug is not None
+log_split = log_str.split("\n")
+for index in range(len(log_split)-1):
+log_single_line = log_split[index]
+pattern2 = re.compile(r'(0x\w+)')
+pattern3 = re.compile(r'(0x\d+)')
+debug_str1 = pattern2.search(log_single_line)
+debug_str2 = pattern3.search(log_single_line)
+assert debug_str1.group() == '0x1f7c0' or \
+debug_str2.group() <= 0x0040
+
+def test_0002_check_default_level_with_auth(self, multihost,
+backupsssdconf):
+"""
+:title: default debug logs: Check successful login with default
+ log level doesn't generate any logs
+:id: f40a7c66-6b5f-4f3c-8fcb-6aa12f415473
+"""
+section = "domain/%s" % ds_instance_name
+domain_params = {'debug_level': ''}
+tools = sssdTools(multihost.client[0])
+tools.sssd_conf(section, domain_params, action='delete')
+domain_params = {'fallback_homedir': '/home/%u'}
+tools.sssd_conf(section, domain_params)
+# stop sssd, delete logs and cache, start sssd
+tools.clear_sssd_c

[SSSD] [sssd PR#5908][comment] Check default debug level of sssd and corresponding logs

2021-12-21 Thread sgoveas
  URL: https://github.com/SSSD/sssd/pull/5908
Title: #5908: Check default debug level of sssd and corresponding logs

sgoveas commented:
"""
> PEP check is failing:
> 
> * https://s3.eu-central-1.amazonaws.com/sssd-ci/PR-5908/3/fedora34/ci-pep8.log
> * https://s3.eu-central-1.amazonaws.com/sssd-ci/PR-5908/3/rhel8/ci-pep8.log

Fixed the errors from this PR. Will send a separate commit for the other errors 
if they still exist
"""

See the full comment at 
https://github.com/SSSD/sssd/pull/5908#issuecomment-998567450
___
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-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/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


[SSSD] [sssd PR#5908][synchronized] Check default debug level of sssd and corresponding logs

2021-12-21 Thread sgoveas
   URL: https://github.com/SSSD/sssd/pull/5908
Author: sgoveas
 Title: #5908: Check default debug level of sssd and corresponding logs
Action: synchronized

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5908/head:pr5908
git checkout pr5908
From 052829b3d1445c03aa015983511f2cd6398179ee Mon Sep 17 00:00:00 2001
From: Madhuri Upadhye 
Date: Fri, 22 Jan 2021 15:35:17 +0530
Subject: [PATCH] Check default debug level of sssd and corresponding logs

It consists of five test cases:
  1. Check default debug level when sssd start
successfully
  2. Check default debug level by
successful authentication of the user
  3. Check default level as 0 and 1
  4. Check default level as 2
  5. Check SBUS code should not trigger failure
message during modules startup

Verifies:
Issues: #5422
#5425

Bugs: https://bugzilla.redhat.com/show_bug.cgi?id=1893159
  https://bugzilla.redhat.com/show_bug.cgi?id=1915319
---
 src/tests/multihost/alltests/pytest.ini   |   1 +
 .../alltests/test_default_debug_level.py  | 153 ++
 2 files changed, 154 insertions(+)
 create mode 100644 src/tests/multihost/alltests/test_default_debug_level.py

diff --git a/src/tests/multihost/alltests/pytest.ini b/src/tests/multihost/alltests/pytest.ini
index ac127c07f3..e23f23d21d 100644
--- a/src/tests/multihost/alltests/pytest.ini
+++ b/src/tests/multihost/alltests/pytest.ini
@@ -25,6 +25,7 @@ markers =
 ssh: Tests related to ssh responder
 ldaplibdebuglevel: Test ldap_library_debug_level option
 no_tier: test cases are not executed on any tier
+defaultdebuglevel: Test default debug level sssd
 tier1: tier1 test cases with run time of aproximately 60 minutes
 tier1_2: tier1 test cases split to keep runtime upto 60 minutes
 tier2: tier2 test cases
diff --git a/src/tests/multihost/alltests/test_default_debug_level.py b/src/tests/multihost/alltests/test_default_debug_level.py
new file mode 100644
index 00..b96498a1e6
--- /dev/null
+++ b/src/tests/multihost/alltests/test_default_debug_level.py
@@ -0,0 +1,153 @@
+"""Automation for default debug level
+
+:requirement: SSSD - Default debug level
+:casecomponent: sssd
+:subsystemteam: sst_idm_sssd
+:upstream: yes
+"""
+
+from __future__ import print_function
+import re
+import time
+import pytest
+from sssd.testlib.common.utils import sssdTools
+from sssd.testlib.common.expect import pexpect_ssh
+from constants import ds_instance_name
+
+
+@pytest.mark.usefixtures('setup_sssd', 'create_posix_usersgroups')
+@pytest.mark.defaultdebuglevel
+@pytest.mark.tier1_2
+class TestDefaultDebugLevel(object):
+""" Check sssd default debug level """
+def test_0001_check_default_debug_level(self, multihost, backupsssdconf):
+"""
+:title: default debug logs: Check default debug level when sssd start
+ successfully
+:id: 1f38b560-27dc-4144-895d-e667420b0467
+"""
+section = "domain/%s" % ds_instance_name
+domain_params = {'debug_level': ''}
+tools = sssdTools(multihost.client[0])
+tools.sssd_conf(section, domain_params, action='delete')
+# stop sssd, delete sssd logs and cache, start sssd
+tools.clear_sssd_cache()
+time.sleep(5)
+log_list = ['sssd', f'sssd_{ds_instance_name}',
+'sssd_nss', 'sssd_pam']
+for log_filename in log_list:
+log = '/var/log/sssd/%s.log' % log_filename
+log_str = multihost.client[0].get_file_contents(log).decode(
+'utf-8')
+pattern1 = re.compile(r'Starting with debug level = 0x0070')
+default_debug = pattern1.search(log_str)
+assert default_debug is not None
+log_split = log_str.split("\n")
+for index in range(len(log_split)-1):
+log_single_line = log_split[index]
+pattern2 = re.compile(r'(0x\w+)')
+pattern3 = re.compile(r'(0x\d+)')
+debug_str1 = pattern2.search(log_single_line)
+debug_str2 = pattern3.search(log_single_line)
+assert debug_str1.group() == '0x1f7c0' or \
+   debug_str2.group() <= 0x0040
+
+def test_0002_check_default_level_with_auth(self, multihost,
+backupsssdconf):
+"""
+:title: default debug logs: Check successful login with default
+ log level doesn't generate any logs
+:id: f40a7c66-6b5f-4f3c-8fcb-6aa12f415473
+"""
+section = "domain/%s" % ds_instance_name
+domain_params = {'debug_level': ''}
+tools = sssdTools(multihost.client[0])
+tools.sssd_conf(section, domain_params, action='delete')
+domain_params = {'fallback_homedir': '/home/%u'}
+tools.sssd_conf(section, domain_params)
+# stop sssd, delete logs and cache, start sssd
+tools.clear_sss