Bug 767139

Summary: Puppet sometimes fails on RHEL 6.1
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: PackagingAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik, mkoci
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 767362 (view as bug list) Environment:
Last Closed: 2012-08-22 18:13:26 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    

Description Lukas Zapletal 2011-12-13 11:15:36 UTC
err: /Stage[main]/Katello::Config/Postgres::Createdb[katelloschema]/Sqlexec[katelloschema]/Exec[psql -h localhost --username=postgres postgres -c "CREATE DATABASE katelloschema WITH OWNER = katellouser ENCODING = 'UTF8';" >> ${katello::params::log_base}/katello-configure/create-postgresql-katello-database.log 2>&1]/returns: change from notrun to 0 failed: psql -h localhost --username=postgres postgres -c "CREATE DATABASE katelloschema WITH OWNER = katellouser ENCODING = 'UTF8';" >> ${katello::params::log_base}/katello-configure/create-postgresql-katello-database.log 2>&1 returned 1 instead of one of [0] at /usr/share/katello/install/puppet/modules/postgres/manifests/sqlexec.pp:12

Single quotes does not expand.

I don't know why this is working on Fedoras, but we need to change all single quotes to double quotes. Maybe a Puppet version issue.

Comment 1 Lukas Zapletal 2011-12-13 11:17:21 UTC
I need to go through ALL our Puppet codebase. We use singlequotes many many times... :-(

http://docs.puppetlabs.com/guides/style_guide.html#quoting

Comment 2 Lukas Zapletal 2011-12-13 11:22:57 UTC
4bb8625 767139 - Puppet sometimes fails on RHEL 6.1

Comment 4 Garik Khachikyan 2012-02-28 13:57:09 UTC
# VERIFIED

no failures any more on RHEL 6.1 (as well as for 6.2).

checked on recent latest versions.