View Issue Details

IDProjectCategoryView StatusLast Update
0000471Pgpool-IIBugpublic2019-03-13 09:21
Reporterthias Assigned Tohoshiai  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Platformx86OSLinuxOS VersionRHEL 7.6
Product Version4.0.3 
Summary0000471: pcp_watchdog_info alternatives missing or wrong
Descriptionpcp_watchdog_info tools prompt for Password, despite .pcppass File
if called directly bypassing alternatives ,
as alternatives are not created correctly
Steps To Reproducepcp_watchdog_info not in path

Additional Informationpostinstall of RPM Paket from postgresql.org ( https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7Server-x86_64/pgpool-II-10-4.0.3-1.rhel7.x86_64.rpm )

contains

# Create alternatives entries for common binaries and man files
(...)
/usr/sbin/update-alternatives --install /usr/bin/pcp_watchdog pgpool-pcp_watchdog_info /usr/pgpool-10/bin/pcp_watchdog_info 100
(...)

calling /usr/sbin/update-alternatives --install /usr/bin/pcp_watchdog_info pgpool-pcp_watchdog_info /usr/pgpool-10/bin/pcp_watchdog_info 100

results in
the primary link for pgpool-pcp_watchdog_info must be /usr/bin/pcp_watchdog

but calling gives us:
~#$ pcp_watchdog
pcp_watchdog is a invalid PCP utility

BTW, this should read in "pcp_watchdog is an invalid PCP utility"


manually creating a softlink
ln -s /etc/alternatives/pgpool-pcp_watchdog_info /bin/pcp_watchdog_info
results in a workable
   pcp_watchdog_info -U user -h localhost -p 9898 -v -w
without password query
TagsNo tags attached.

Activities

hoshiai

2019-03-05 10:52

developer   ~0002419

This problem is pcp_* command name is different.
pcp_* command use command name in intenal.
You set other command name to use by 'update-alternatives ', so commad failed.

> BTW, this should read in "pcp_watchdog is an invalid PCP utility"
You're right, thank you for your coment.

thias

2019-03-05 18:03

reporter   ~0002420

sorry for my misconception,
lightly taking you for the packager of https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7Server-x86_64 distributed Packages.

This is clearly a packaging and no coding glitch

sorry again for waisting your time - regard tis ticket as withdrawn please . I'll contact Devrim to iron this out

hoshiai

2019-03-06 09:16

developer   ~0002421

OK, thank you for your report.
May I close this ticket?

Free to ask me , when there is something again.

thias

2019-03-06 17:12

reporter   ~0002422

sure, pls close this ticket - and thanks a lot for your help

Issue History

Date Modified Username Field Change
2019-02-28 22:03 thias New Issue
2019-03-01 10:15 administrator Assigned To => hoshiai
2019-03-01 10:15 administrator Status new => assigned
2019-03-05 10:52 hoshiai Note Added: 0002419
2019-03-05 18:03 thias Note Added: 0002420
2019-03-06 09:16 hoshiai Note Added: 0002421
2019-03-06 17:12 thias Note Added: 0002422
2019-03-07 09:10 hoshiai Status assigned => resolved
2019-03-07 09:10 hoshiai Resolution open => no change required
2019-03-13 09:21 administrator Status resolved => closed