Bug 273501

Summary: Replication monitor CGI seems misconfigured
Product: [Retired] 389 Reporter: Noriko Hosoi <nhosoi>
Component: AdminAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: low Docs Contact:
Priority: high    
Version: 1.1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 17:00:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 240316, 427409    
Attachments:
Description Flags
cvs diffs (ldapserver)
none
cvs diffs (adminserver)
none
adminserver/admserv/cgi-src40/repl-monitor-cgi.pl.in
none
cvs commit message (comment #1-3) none

Description Noriko Hosoi 2007-09-01 00:24:54 UTC
Description of problem:

From the Admin Express:
http://<host>:<port>/admin-serv/tasks/configuration/HTMLAdmin?op=index

Click "Replication Status"

Specify "Configuration file:"

Click "OK"

Result: http://<host>:<port>/admin-serv/tasks/configuration/HTMLAdmin?op=index
Not Found
The requested URL /admin-serv/tasks/configuration/repl-monitor-cgi.pl was not
found on this server.

Comment 1 Noriko Hosoi 2007-09-05 00:54:59 UTC
Created attachment 186751 [details]
cvs diffs (ldapserver)

Modified File: ldapserver/ldap/admin/src/scripts/repl-monitor.pl

Deleted File: ldapserver/ldap/admin/src/scripts/template-repl-monitor-cgi.pl.in


Description: 1) get_replica: missing return value for the success case
2) support the case "shadowport" is not passed

Comment 2 Noriko Hosoi 2007-09-05 01:00:04 UTC
Created attachment 186761 [details]
cvs diffs (adminserver)

Modified Files: 
 Makefile.am
 admserv/schema/ldif/21astasks.ldif.tmpl
 admserv/cgi-src40/monreplication.properties

New File: ./admserv/cgi-src40/repl-monitor-cgi.pl.in  (attaching next)

Description: 1) added repl-monitor-cgi.pl(.in)
2) removed "perl?" from nsExecRef, with which CGI expects "perl" is in the
cgi-bin directory

Comment 3 Noriko Hosoi 2007-09-05 01:03:04 UTC
Created attachment 186771 [details]
adminserver/admserv/cgi-src40/repl-monitor-cgi.pl.in

New file: adminserver/admserv/cgi-src40/repl-monitor-cgi.pl.in

Description: it's moved from ldapserver/ldap/admin/src/scripts, and renamed
from template-repl-monitor-cgi.pl to repl-monitor-cgi.pl.

Comment 4 Noriko Hosoi 2007-09-05 01:11:35 UTC
Sample repl monitor sample1: (all the replicas share the same replication
manager/password)
------------------------------------------
[connection]
*:*:cn=repl manager,cn=config:my_password:
------------------------------------------

Sample repl monitor sample2: (all the replicas except one on host1 share the
same replication manager/password
------------------------------------------
[connection]
*:*:cn=repl manager,cn=config:my_password:
host1:*:cn=repl manager,cn=config:your_password:
------------------------------------------

Perhaps, this file can be automatically generated/updated when the replication
agreement is created?  Also, repl-monitor.pl could display/point a default path
refering this default config file.

Comment 5 Noriko Hosoi 2007-09-05 16:32:14 UTC
(In reply to comment #4)
> Sample repl monitor sample1: 
Should be read ...
Sample repl monitor config file 1:
:p

Comment 6 Noriko Hosoi 2007-09-05 16:47:38 UTC
Created attachment 187711 [details]
cvs commit message (comment #1-3)

Reviewed by Rich (Thank you!!)

Checked in into HEAD.