Red Hat Bugzilla – Bug 824362
Katello-configure fails on F16 (when the machine is fast enough)
Last modified: 2012-07-17 09:09:21 EDT
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  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.
4a07c90 Pushing sleep workaround.
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.
Merge pull request #152 from lzap/preallocation_824362
Moving all community bugs with fixes to closed.