Bug 874228 - katello-configure fails during pulp-migrate
Summary: katello-configure fails during pulp-migrate
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-07 18:10 UTC by Kedar Bidarkar
Modified: 2019-09-26 13:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-03 14:47:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kedar Bidarkar 2012-11-07 18:10:55 UTC
Description of problem:

Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20121107-232031/main.log]
Creating Katello database user
############################################################ ... OK
Creating Katello database
############################################################ ... OK
Creating Candlepin database user
############################################################ ... OK
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:63

---------------------------------------------------------------------------

121107-23:22:16 debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig mongod on'
121107-23:22:16 notice: /Stage[main]/Mongodb::Service/Service[mongod]/ensure: ensure changed 'stopped' to 'running'
121107-23:22:16 debug: Exec[migrate_pulp_db](provider=posix): Executing 'pulp-migrate >/var/log/katello/katello-configure/pulp_migrate.log 2>&1 && touch /var/lib/pulp/init.flag'
121107-23:22:16 debug: Executing 'pulp-migrate >/var/log/katello/katello-configure/pulp_migrate.log 2>&1 && touch /var/lib/pulp/init.flag'
121107-23:22:17 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:63
121107-23:22:17 notice: /Stage[main]/Apache2::Service/Service[httpd]: Dependency Exec[migrate_pulp_db] has failures: true
121107-23:22:17 warning: /Stage[main]/Apache2::Service/Service[httpd]: Skipping because of failed dependencies
121107-23:22:17 debug: Service[httpd](provider=redhat): Executing '/sbin/service httpd status'

--------------------------------------------------------------------

pulp_migrate.log

Traceback (most recent call last):
  File "/usr/bin/pulp-migrate", line 19, in <module>
    from pulp.server.db.migrate import script
  File "/usr/lib/python2.6/site-packages/pulp/server/db/migrate/script.py", line 26, in <module>
    connection.initialize()
  File "/usr/lib/python2.6/site-packages/pulp/server/db/connection.py", line 47, in initialize
    _connection = pymongo.Connection(seeds)
  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 381, in __init__
    self.__find_node()
  File "/usr/lib64/python2.6/site-packages/pymongo/connection.py", line 659, in __find_node
    raise AutoReconnect(', '.join(errors))
pymongo.errors.AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:
katello-configure fails 

Expected results:


Additional info:

Comment 2 Lukas Zapletal 2012-11-09 15:42:00 UTC
Kedar, I need to see katello-debug output, please attach. Also I miss exact versions of katello rpms, can you please do:

alias versions='rpm -q katello katello-cli katello-agent pulp candlepin subscription-manager python-rhsm yum'

Is this CloudForms 1.1 or Katello?

Comment 3 Mike McCune 2013-09-03 14:47:55 UTC
working fine in upstream


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