Bug 1138275

Summary: spacewalk-debug is not fully PostgreSQL aware.
Product: Red Hat Satellite 5 Reporter: Dimitar Yordanov <dyordano>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Ales Dujicek <adujicek>
Severity: low Docs Contact:
Priority: low    
Version: 560CC: adujicek, cperry, tlestach
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.3.3-21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-13 09:55:18 UTC Type: Bug
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: 1127641    

Description Dimitar Yordanov 2014-09-04 12:05:39 UTC
Description of problem:
spacewalk-debug does not provide information about PostgreSQL User and Group.

getent passwd apache tomcat oracle nocpulse > $DIR/conf/passwd
getent group apache tomcat oracle nocpulse dba > $DIR/conf/group


Version-Release number of selected component (if applicable):
spacewalk-backend-tools-2.0.3-29

How reproducible:
100%

Steps to Reproduce:
1.Install Satellite 5.6 PostgreSQL
2.spacewalk-debug

Actual results:
    * copying apache, oracle, tomcat, nocpulse entries from /etc/passwd
    * copying apache, oracle, tomcat, nocpulse entries from /etc/group


Expected results:
oracle -> postgres

Additional info:
Some Oracle related code from the script can be removed as well.

# /rhnsat is Oracle related
ls /rhnsat/admin/rhnsat/bdump/*.trc 2>/dev/null | xargs -I file cp -fa file $DIR/database
ls /rhnsat/admin/rhnsat/logs/*.log 2>/dev/null | xargs -I file cp -fa file $DIR/database

# dba Group is Oracle related
getent group apache tomcat oracle nocpulse dba > $DIR/conf/group

Comment 1 Dimitar Yordanov 2014-09-27 10:31:32 UTC
Fixed in SW master: 2eb44a50d41b6e326e068682a2f9945ef8925a5f

Comment 2 Dimitar Yordanov 2014-11-20 11:25:11 UTC
The commit mentioned in "Comment 1" is not the correct one.

Fixed in SW master: 25d81f32c5ac8364023800d9e3e785dbc0acf870

Comment 6 Clifford Perry 2015-01-13 09:55:18 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff