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 - Possible race condition during katello-configure DB creation step
Summary: Possible race condition during katello-configure DB creation step
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-13 21:33 UTC by Og Maciel
Modified: 2015-01-04 21:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 767139
Environment:
Last Closed: 2012-08-22 18:13:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
katello configuration logs (8.35 KB, application/x-gzip)
2011-12-13 21:33 UTC, Og Maciel
no flags Details

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.


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