Project

Profile

Help

Issue #423

pulp-manage-db does not exit with error code when unable to connect to broker

Added by mkovacik@redhat.com over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.4 Beta
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Version-Release number of selected component (if applicable):
pulp-server-2.4.0-0.10.beta.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1. stop qpidd
2. run sudo -u apache pulp-manage-db

Actual results:
Exit status is 0 even though connection to qpidd (broker) failed

Expected results:
Exit status is non-zero when connection to qpid fails

Additional info:

  1. screen log
    [root@ec2-54-73-48-94 pulp_auto]# sudo -u apache pulp-manage-db
    Loading content types.
    Content types loaded.
    Ensuring the admin role and user are in place.
    Admin role and user are in place.
    Beginning database migrations.
    Applying pulp.server.db.migrations version 1
    Migration to pulp.server.db.migrations version 1 complete.
    Applying pulp.server.db.migrations version 2
    Migration to pulp.server.db.migrations version 2 complete.
    Applying pulp.server.db.migrations version 3
    Migration to pulp.server.db.migrations version 3 complete.
    Applying pulp.server.db.migrations version 4
    Migration to pulp.server.db.migrations version 4 complete.
    Applying pulp.server.db.migrations version 5
    Migration to pulp.server.db.migrations version 5 complete.
    Applying pulp.server.db.migrations version 6
    Migration to pulp.server.db.migrations version 6 complete.
    Applying pulp.server.db.migrations version 7
    Migration to pulp.server.db.migrations version 7 complete.
    Applying pulp.server.db.migrations version 8
    Migration to pulp.server.db.migrations version 8 complete.
    Applying pulp.server.db.migrations version 9
    Applying migration pulp.server.db.migrations.0009_qpid_queues failed. See log for details.
    Applying pulp_puppet.plugins.migrations version 1
    Migration to pulp_puppet.plugins.migrations version 1 complete.
    Applying pulp_puppet.plugins.migrations version 2
    Migration to pulp_puppet.plugins.migrations version 2 complete.
    Applying pulp_rpm.plugins.migrations version 1
    Migration to pulp_rpm.plugins.migrations version 1 complete.
    Applying pulp_rpm.plugins.migrations version 2
    Migration to pulp_rpm.plugins.migrations version 2 complete.
    Applying pulp_rpm.plugins.migrations version 3
    Migration to pulp_rpm.plugins.migrations version 3 complete.
    Applying pulp_rpm.plugins.migrations version 4
    Migration to pulp_rpm.plugins.migrations version 4 complete.
    Applying pulp_rpm.plugins.migrations version 5
    Migration to pulp_rpm.plugins.migrations version 5 complete.
    Applying pulp_rpm.plugins.migrations version 6
    Migration to pulp_rpm.plugins.migrations version 6 complete.
    Applying pulp_rpm.plugins.migrations version 7
    Migration to pulp_rpm.plugins.migrations version 7 complete.
    Applying pulp_rpm.plugins.migrations version 8
    Migration to pulp_rpm.plugins.migrations version 8 complete.
    Applying pulp_rpm.plugins.migrations version 9
    Migration to pulp_rpm.plugins.migrations version 9 complete.
    Applying pulp_rpm.plugins.migrations version 10
    Migration to pulp_rpm.plugins.migrations version 10 complete.
    Applying pulp_rpm.plugins.migrations version 11
    Migration to pulp_rpm.plugins.migrations version 11 complete.
    Applying pulp_rpm.plugins.migrations version 12
    Migration to pulp_rpm.plugins.migrations version 12 complete.
    Applying pulp_rpm.plugins.migrations version 13
    Migration to pulp_rpm.plugins.migrations version 13 complete.
    Applying pulp_rpm.plugins.migrations version 14
    Migration to pulp_rpm.plugins.migrations version 14 complete.
    Applying pulp_rpm.plugins.migrations version 15
    Migration to pulp_rpm.plugins.migrations version 15 complete.
    Database migrations complete.
    [root@ec2-54-73-48-94 pulp_auto]# echo $?
    0
  1. messages
    [root@ec2-54-73-48-94 pulp_auto]# tail -80 /var/log/messages | head -25
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Applying pulp.server.db.migrations version 6
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Migration to pulp.server.db.migrations version 6 complete.
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Applying pulp.server.db.migrations version 7
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Migration to pulp.server.db.migrations version 7 complete.
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Applying pulp.server.db.migrations version 8
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Migration to pulp.server.db.migrations version 8 complete.
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:INFO: Applying pulp.server.db.migrations version 9
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: Applying migration pulp.server.db.migrations.0009_qpid_queues failed.
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: [Errno 111] Connection refused
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: Traceback (most recent call last):
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 86, in migrate_database
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: update_current_version=not options.test)
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 161, in apply_migration
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: migration.migrate()
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "/usr/lib/python2.7/site-packages/pulp/server/db/migrations/0009_qpid_queues.py", line 67, in migrate
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: connection.attach()
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "<string>", line 6, in attach
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 291, in attach
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: if not self._ewait(lambda: self._transport_connected and not self._unlinked(), timeout=timeout):
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 224, in _ewait
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: self.check_error()
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: File "/usr/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 217, in check_error
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: raise e
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL: ConnectError: [Errno 111] Connection refused
    May 2 14:46:42 ec2-54-73-48-94 pulp: pulp.server.db.manage:CRITICAL:

+ This bug was cloned from Bugzilla Bug #1093757 +

History

#1 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#2 Updated by bmbouter over 1 year ago

  • Severity set to 1. Low

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#3 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF