Bug 767139 - Puppet sometimes fails on RHEL 6.1
Summary: Puppet sometimes fails on RHEL 6.1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
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 11:15 UTC by Lukas Zapletal
Modified: 2019-09-25 21:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 767362 (view as bug list)
Environment:
Last Closed: 2012-08-22 18:13:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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