Why is report-gtk displaying "Wrong settings detected for Red Hat Customer Support [..]" althou the stored credentials are used?
Environment
- Red Hat Enterprise Linux (RHEL) 6.2, 6.3 and 6.4
- package
libreport-gtk
Issue
-
Why is
report-gtkdisplayingWrong settings detected for Red Hat Customer Support [..]althou the stored credentials are used?
Resolution
This issue is investigated in (private) bz902897 and bz894335.
As a workaround, the warning dialog can be closed, the credentials Login=<rhn-user> and Password=<rhn-password> in /etc/libreport/plugins/rhtsupport.conf will be used in the same way they are used by report-rhtsupport.
As a different workaround, file /etc/libreport/events/report_RHTSupport.conf can be extended with
RHTSupport_Login=<rhn-user>
RHTSupport_Password=<rhn-password>
which will also prevent the warning from beeing displayed.
Root Cause
This behaviour is due to a bug.
Currently report-gtk uses files from /etc/libreport/events, leading to the warning because the config for rhtsupport is not there. But the actual reporting is done via the executable reporter-rhtsupport which looks for it's configuration in environment variables (where report-gtk exports it) and if the configuration is not there it falls back to it's defaults stored in /etc/libreport/plugins/.
Diagnostic Steps
To replicate the issue:
1. yum -y install libreport-gtk
2. echo 'Login=<rhn-user>' >>/etc/libreport/plugins/rhtsupport.conf
3. echo 'Password=<rhn-password>' >>/etc/libreport/plugins/rhtsupport.conf
4. sleep 100000 &
5. kill -11 $!
6. report-gtk $(ls -rtd1 /var/spool/abrt/cc*|tail -1)
7. 'forward', 'forward', 'go to next step', 'apply', check 'red hat customer support'
Actual results:
Box 'Wrong settings detected for Red Hat Customer Support, reporting will
probably fail if you continue with the current configuration.' appears
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.