Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 874228

Summary: katello-configure fails during pulp-migrate
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: InstallationAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: ehelms, lzap, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 14:47:55 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:

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