Bug 219514 - query.py should get email address from web_user_personal_info
Summary: query.py should get email address from web_user_personal_info
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Backend
Version: rhn415
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mike Orazi
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On:
Blocks: 204860
TreeView+ depends on / blocked
 
Reported: 2006-12-13 17:43 UTC by Mike Orazi
Modified: 2008-01-11 16:59 UTC (History)
2 users (show)

Fixed In Version: RHN 504
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-11 16:59:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike Orazi 2006-12-13 17:43:24 UTC
Description of problem:
  A tool used by prod ops (backend/tools/query.py) references rhnEmailAddress to
look up email addresses.  The UserService does not keep this information in
sync, so the temporary fix is probably to make this tool consistent with other
areas of the application until full UserService integration has been completed.
 Other portions of the application get email from the web_user_personal_info table.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.  Change email address through RHN web site.
2.  Errata email from prod-ops goes to the old email address listed in
rhnEmailAddress.
  
Actual results:
  Email goes to the old address in rhnEmailAddress

Expected results:
  Email goes to the address that is updated through UserService in
web_user_personal_info table.

Additional info:

Comment 1 Jesus M. Rodriguez 2006-12-14 01:33:22 UTC
Another work item:

DROP TABLE RHNEMAILADDRESS;

Comment 2 Mike Orazi 2007-01-02 21:22:45 UTC
r108129 in svn includes the change for trunk will be merged into 416 in
preparation for a hotfix once QA approves.


Comment 3 Mike McCune 2007-01-08 16:22:59 UTC
1) Use an account in webqa that has existed since before 4.1.5.  Login and make
sure you have systems registered that need errata.

2) Find a system needing errata and look for the ID of a specific errata by
looking at the ID in the path:

https://rhn.webqa.redhat.com/rhn/errata/details/Details.do?eid=5281

the ID is 5281

3) Change your email address in your account to something new.  Say,
mmccune+erratatest

4) stop sendmail on scripts.back-webqa so we don't send any real mail

5) Start fakemail server on scripts (util I found while testing this bug):

/usr/bin/fakemail.py --port 25 --log=/var/log/errata/mail-log.log

Its a fake email server that listends on port 25.

6) Fire up the errata mail tool for above bug:

/usr/share/rhn/sbin/mail_errata --errataid=5281

7) It takes an hour or 2.  When its done running grep the
/var/log/errata/mail-log.log for your updated email address, should be included.




Comment 4 Brandon Perkins 2007-01-09 13:56:16 UTC
Verified.  Ready to go to stage.


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