Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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.