Bug 767362

Summary: Possible race condition during katello-configure DB creation step
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: InstallationAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: bkearney, gkhachik, mkoci
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 767139 Environment:
Last Closed: 2012-08-22 18:13:45 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: 747354    
Attachments:
Description Flags
katello configuration logs none

Description Og Maciel 2011-12-13 21:33:20 UTC
Created attachment 546410 [details]
katello configuration logs

Description of problem:

Experienced a half-baked katello configuration while following https://fedorahosted.org/katello/wiki/Install. Based on error message (below), I suspect that postresql was not fully functional when the candlepin user was being created. Tried re-running the initial configuration and everything worked fine.

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

katello-0.1.135-1.el6.x86_64

How reproducible:


Steps to Reproduce:
1. Follow instructions from https://fedorahosted.org/katello/wiki/Install
2. Run katello-configure
3.
  
Actual results:

# katello-configure
Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20111213-142921/main.log]
err: /Stage[main]/Candlepin::Config/Postgres::Createuser[candlepin]/Sqlexec[createuser-candlepin]/Exec[psql -h localhost --username=postgres postgres -c "CREATE ROLE candlepin WITH LOGIN PASSWORD 'candlepin' CREATEDB;" >> /var/log/katello/katello-configure/create-postgresql-candlepin-user.log 2>&1]/returns: change from notrun to 0 failed: psql -h localhost --username=postgres postgres -c "CREATE ROLE candlepin WITH LOGIN PASSWORD 'candlepin' CREATEDB;" >> /var/log/katello/katello-configure/create-postgresql-candlepin-user.log 2>&1 returned 2 instead of one of [0] at /usr/share/katello/install/puppet/modules/postgres/manifests/sqlexec.pp:12

Expected results:


Additional info:

Attached all log files related to configuration process.

Comment 1 Lukas Zapletal 2011-12-19 08:10:51 UTC
Dupe of 767139

Fixed in katello-configure-0.1.36-1

Comment 2 Garik Khachikyan 2011-12-19 10:53:55 UTC
# VERIFIED

confirm: katello-configure-0.1.41-1.git.1.07c0612.el6.noarch fixes the issue for me.

Run of katello-configure produces with $?==0 and the katello/api/ping/ works fine.