RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1459965 - repl-monitor - matches null string many times in regex
Summary: repl-monitor - matches null string many times in regex
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.3
Hardware: All
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: mreynolds
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-08 17:02 UTC by Marc Sauton
Modified: 2021-03-11 15:18 UTC (History)
3 users (show)

Fixed In Version: 389-ds-base-1.3.7.5-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 14:16:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 2447 0 None None None 2020-09-13 22:02:57 UTC
Red Hat Product Errata RHBA-2018:0811 0 None None None 2018-04-10 14:17:45 UTC

Description Marc Sauton 2017-06-08 17:02:25 UTC
Description of problem:

/usr/bin/repl-monitor.pl from 1.3.5.10-18.el7_3 and perl-5 works OK , but has those messages that did not exist on RHEL-6 and earlier:

^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE (\.[^:]+)*:[0-9]+\D/ at /usr/bin/repl-monitor.pl line 1071.
^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE (\.[^:]+)*:\*:/ at /usr/bin/repl-monitor.pl line 1071.

this is a report associated with a customer request, for a possible regression.


Version-Release number of selected component (if applicable):
389-ds-base-1.3.5.10-18.el7_3.x86_64
redhat-release-server-7.3-7.el7.x86_64
perl-5.16.3-291.el7.x86_64


How reproducible:
consistently


Steps to Reproduce:

1. create a config file, for example:
cat << EOF > ./repl-monitor.conf
[connection]
*:*:*:password:

[alias]
m1 = ipaserver1.example.com:389
m2 = ipaserver2.example.com:389

[color]
0 = #ccffcc
5 = #FFFFCC
60 = #FFCCCC

EOF


2. run the tool
/usr/bin/repl-monitor.pl -h ipaserver1.example.com -p 389 -f ~/repl-monitor.conf > ~/t.html

3. verify result, looked OK:
elinks t.html -dump > t.html.elinks.output.txt
less t.html.elinks.output.txt
...snip...
                     Supplier:  ipaserver1.example.com:389

                                       Replica ID: 4 Replica Root: dc=example,dc=com Max CSN: 59397e81000000040000 (06/08/2017 16:42:41)
...snip...



Actual results:

tools works ok, but report of

^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE (\.[^:]+)*:[0-9]+\D/ at /usr/bin/repl-monitor.pl line 1071.
^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE (\.[^:]+)*:\*:/ at /usr/bin/repl-monitor.pl line 1071.


Expected results:


Additional info:

Comment 2 mreynolds 2017-10-02 20:16:58 UTC
Upstream ticket:
https://pagure.io/389-ds-base/issue/49388

Comment 4 Amita Sharma 2017-10-24 13:55:07 UTC
[root@qeos-46 replication]# rpm -qa | grep 389
389-ds-base-libs-1.3.7.5-6.el7.x86_64
389-ds-base-1.3.7.5-6.el7.x86_64
389-ds-base-snmp-1.3.7.5-6.el7.x86_64
389-ds-base-debuginfo-1.3.7.5-6.el7.x86_64

[root@qeos-46 replication]# vim repl-monitor.conf
[root@qeos-46 replication]# /usr/bin/repl-monitor.pl -h localhost -p 39001 -f repl-monitor.conf > t.html
[root@qeos-46 replication]# elinks t.html -dump > t.html.elinks.output.txt
[root@qeos-46 replication]# less t.html.elinks.output.txt
[root@qeos-46 replication]# cat t.html.elinks.output.txt
    Tue Oct 24 2017 09:25:15    Directory Server Replication     Version 1.1
                                           Status

                                 Time Lag Legend:

                            Within   Within   Over 60  Server
                   Unknown     5       60     minutes   n/a
                            minutes  minutes

   --------------------------------------------------------------------------

                                 Supplier:  m1

            Replica ID: 1 Replica Root: dc=example,dc=com Max CSN: 59ef2de3000700010000 (10/24/2017 08:11:15 7 0)
      Consumer       Time   Supplier     Consumer    Last Modify  Supplier  Sent/Skipped    Update       Update      Update    Schedule  SSL?
                     Lag     Max CSN      Max CSN       Time                                Status      Started      Ended
                                                                                          Error (0)
                                                                                          No
                                                                                          replication
 [1]localhost:39002  n/a   Unavailable  Unavailable  Unavailable     m1     0 / 0         sessions     12/31/1969  12/31/1969  always    n
 Type: Unavailable                                                                        started      19:00:00    19:00:00    in sync
                                                                                          since
                                                                                          server
                                                                                          startup
                                                                                          Error (0)
                                                                                          No
                                                                                          replication
 [2]localhost:39003  n/a   Unavailable  Unavailable  Unavailable     m1     0 / 0         sessions     12/31/1969  12/31/1969  always    n
 Type: Unavailable                                                                        started      19:00:00    19:00:00    in sync
                                                                                          since
                                                                                          server
                                                                                          startup
                                                                                          Error (0)
                                                                                          No
                                                                                          replication
 [3]localhost:39004  n/a   Unavailable  Unavailable  Unavailable     m1     0 / 0         sessions     12/31/1969  12/31/1969  always    n
 Type: Unavailable                                                                        started      19:00:00    19:00:00    in sync
                                                                                          since
                                                                                          server
                                                                                          startup

References


No error found.

Comment 7 errata-xmlrpc 2018-04-10 14:16:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0811


Note You need to log in before you can comment on or make changes to this bug.