Bug 824362

Summary: Katello-configure fails on F16 (when the machine is fast enough)
Product: [Retired] Katello Reporter: Lukas Zapletal <lzap>
Component: InstallerAssignee: Lukas Zapletal <lzap>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: gkhachik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 13:09:21 UTC Type: Bug
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: 824405    
Bug Blocks:    

Description Lukas Zapletal 2012-05-23 10:52:53 UTC
Description of problem:

err: /Stage[main]/Pulp::Config/Exec[migrate_pulp_db]/returns: change from notrun to 0 failed: pulp-migrate >/var/log/katello/katello-configure/pulp_migrate.log 2>&1 && touch /var/lib/pulp/init.flag returned 1 instead of one of [0] at /usr/share/katello/install/puppet/modules/pulp/manifests/config.pp:33

The issue is pulp-migration is just after service is started. We need to add a bit that will wait until mongodb accepts connections.

Comment 1 Lukas Zapletal 2012-05-23 12:34:48 UTC
4a07c90 Pushing sleep workaround.

Comment 3 Lukas Zapletal 2012-05-28 07:26:09 UTC
Did not help, the issue is in the mongodb preallocation. We need to add this additional Puppet step before we start mongo:

dd if=/dev/zero of=/var/lib/mongodb/journal/prealloc.0 bs=1M count=1K

(For three files - 0, 1 and 2. That's 3 GB by default.)

But only if /var/lib/mongodb/journal/j._0 does NOT exist. If it exist, mongod is already running - there is no need of explicit creation. Use "creates" for this.

Comment 4 Lukas Zapletal 2012-06-14 12:18:21 UTC
09f2c8e	

Merge pull request #152 from lzap/preallocation_824362

Comment 5 Bryan Kearney 2012-07-17 13:09:21 UTC
Moving all community bugs with fixes to closed.