Bug 701566
Summary: | dr and sr commands throws error | ||
---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Kedar Bidarkar <kbidarka> |
Component: | Tools | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 2.0 | CC: | sghai, tsanders |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-31 12:52:40 UTC | Type: | --- |
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: | |||
Bug Blocks: | 688298, 711223 |
Description
Kedar Bidarkar
2011-05-03 08:53:36 UTC
When I selected the 'dr' to display the repo sync schedule, got same error as mentioned above: [root@dhcp193-136 rhui]# tail -n 100 /root/.rhui/rhui.log Connecting to RHUA [dhcp193-157.pnq.redhat.com]... Successfully connected to [dhcp193-157.pnq.redhat.com] Unexpected error caught at the shell level Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 73, in safe_listen self.listen(clear=first_run) File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 92, in listen Shell.listen(self) File "/usr/lib/python2.6/site-packages/rhui/common/shell.py", line 191, in listen item.func(*args, **item.kwargs) File "/usr/lib/python2.6/site-packages/rhui/tools/screens/sync.py", line 63, in repo_display self._sync_display('-= Repository Synchronization Status =-', self.pulp.repos_with_sync_status, False) File "/usr/lib/python2.6/site-packages/rhui/tools/screens/sync.py", line 241, in _sync_display self.prompt.write(SYNC_STATUS_LINE % (next_sync, render.format_date(data['last_sync']), self._color_sync_state(data))) File "/usr/lib/python2.6/site-packages/rhui/tools/screens/sync.py", line 259, in _color_sync_state return self.prompt.color(data['sync_state'], STATE_COLORS[data['sync_state']]) KeyError: None Should be fixed in 2.0.23. As we face this issue not with a freshly installed setup, planning to wait further and check/track whether this issue persists with 2.0.23 build. I have again faced this issue with the build. build : pulp-180 and rhui-2.0.25 and rhel6 2011-05-31 13:11:52,078 [INFO][Thread-158] sync() @ repo_sync.py:458 - Running createrepo, this may take a few minutes to complete. 2011-05-31 13:11:52,271 [INFO][Thread-158] create_repo() @ util.py:377 - metadata found; taking backup. 2011-05-31 13:11:52,578 [INFO][Thread-158] _create_repo() @ util.py:364 - started repo metadata update 2011-05-31 13:18:56,002 [INFO][Thread-158] _create_repo() @ util.py:370 - [createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os/repodata/1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml --update /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os ] on /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os finished 2011-05-31 13:18:59,343 [INFO][Thread-158] sync() @ repo_sync.py:472 - Createrepo finished in 427.235371828 seconds 2011-05-31 13:18:59,422 [INFO][Thread-158] sync() @ repo_sync.py:474 - YumSynchronizer reported 3396 successes, 0 downloads, 1 errors 2011-05-31 13:25:03,200 [INFO][MainThread] start() @ async.py:276 - Task reply handler, started. 2011-05-31 13:25:03,202 [INFO][asynctaskreplyqueue] connect() @ broker.py:99 - connecting: {dhcp201-103.englab.pnq.redhat.com:5674}: transport=SSL host=dhcp201-103.englab.pnq.redhat.com port=5674 cacert=/etc/pki/rhua/qpid-ca.crt clientcert=/etc/pki/rhua/qpid-client.crt 2011-05-31 13:25:03,870 [INFO][asynctaskreplyqueue] connect() @ broker.py:102 - {dhcp201-103.englab.pnq.redhat.com:5674} connected to AMQP Throws below error, on trying the 'dr' display sync schedule command after a while. But this time it shows the sync schedules, but the pulp.log file generaes the below errors. 2011-05-31 13:44:32,057 [INFO][Dummy-2] initialize() @ connection.py:48 - Attempting Database connection with seeds = dhcp201-103.englab.pnq.redhat.com 2011-05-31 13:44:32,214 [INFO][Dummy-2] initialize() @ connection.py:53 - Database connection established with: seeds = dhcp201-103.englab.pnq.redhat.com, name = pulp_database 2011-05-31 13:44:32,457 [WARNING][Dummy-2] schedule() @ task.py:289 - Task a45fec9e-8bad-11e0-a9be-54520056ed37: cull_audited_events(, ) missed 1 scheduled runs 2011-05-31 13:44:32,458 [WARNING][Dummy-2] schedule() @ task.py:289 - Task a461a1f5-8bad-11e0-a9c9-54520056ed37: cull_history(, ) missed 1 scheduled runs 2011-05-31 13:44:32,491 [ERROR][Dummy-2] clear_all_sync_in_progress() @ repo.py:76 - r = SON([(u'_id', u'repo_id-1'), (u'id', u'repo_id-1'), (u'sync_in_progress', False)]) 2011-05-31 13:44:32,492 [ERROR][Dummy-2] clear_all_sync_in_progress() @ repo.py:76 - r = SON([(u'_id', u'rhel-server-5Server-x86_64'), (u'id', u'rhel-server-5Server-x86_64'), (u'sync_in_progress', False)]) 2011-05-31 13:44:32,493 [ERROR][Dummy-2] clear_all_sync_in_progress() @ repo.py:76 - r = SON([(u'_id', u'rhui-1.2-5Server-x86_64'), (u'id', u'rhui-1.2-5Server-x86_64'), (u'sync_in_progress', False)]) 2011-05-31 13:44:32,493 [ERROR][Dummy-2] clear_all_sync_in_progress() @ repo.py:76 - r = SON([(u'_id', u'rhel-server-6-releases-6Server-x86_64'), (u'id', u'rhel-server-6-releases-6Server-x86_64'), (u'sync_in_progress', True)]) 2011-05-31 13:44:32,571 [WARNING][Dummy-2] __init__() @ scheduler.py:124 - IntervalScheduler created with start time more than one interval in the past: 2011-05-30 09:23:45-04:00, 6:00:00 2011-05-31 13:44:32,572 [ERROR][Dummy-2] set_synchronizer() @ repo_sync_task.py:32 - __name__ = pulp.server.api.repo_sync_task 2011-05-31 13:44:32,572 [WARNING][Dummy-2] schedule() @ task.py:289 - Task a47098c7-8bad-11e0-aa2c-54520056ed37: RepoApi._sync(rhel-server-5Server-x86_64, synchronizer=<pulp.server.api.repo_sync.YumSynchronizer object at 0x7f57a8b11190>) missed 5 scheduled runs 2011-05-31 13:44:32,574 [WARNING][Dummy-2] __init__() @ scheduler.py:124 - IntervalScheduler created with start time more than one interval in the past: 2011-05-30 09:23:43-04:00, 6:00:00 2011-05-31 13:44:32,574 [ERROR][Dummy-2] set_synchronizer() @ repo_sync_task.py:32 - __name__ = pulp.server.api.repo_sync_task 2011-05-31 13:44:32,574 [WARNING][Dummy-2] schedule() @ task.py:289 - Task a47349a6-8bad-11e0-aa3d-54520056ed37: RepoApi._sync(rhui-1.2-5Server-x86_64, synchronizer=<pulp.server.api.repo_sync.YumSynchronizer object at 0x7f57a8b11510>) missed 5 scheduled runs 2011-05-31 13:44:32,853 [WARNING][Dummy-2] __init__() @ scheduler.py:124 - IntervalScheduler created with start time more than one interval in the past: 2011-05-30 09:23:44-04:00, 6:00:00 2011-05-31 13:44:32,854 [ERROR][Dummy-2] set_synchronizer() @ repo_sync_task.py:32 - __name__ = pulp.server.api.repo_sync_task 2011-05-31 13:44:32,854 [WARNING][Dummy-2] schedule() @ task.py:289 - Task a49def30-8bad-11e0-ab55-54520056ed37: RepoApi._sync(rhel-server-6-releases-6Server-x86_64, synchronizer=<pulp.server.api.repo_sync.YumSynchronizer object at 0x7f57a8b11750>) missed 5 scheduled runs 2011-05-31 13:44:32,891 [WARNING][Dummy-2] __init__() @ scheduler.py:124 - IntervalScheduler created with start time more than one interval in the past: 2011-05-30 14:52:26-04:00, 6:00:00 2011-05-31 13:44:32,892 [WARNING][Dummy-2] schedule() @ task.py:289 - Task a4a3b487-8bad-11e0-ab7a-54520056ed37: CdsApi.cds_sync(dhcp201-162.englab.pnq.redhat.com, ) missed 4 scheduled runs The /root/.rhui/rhui.log file throws the below error. Connecting to RHUA [dhcp201-103.englab.pnq.redhat.com]... Successfully connected to [dhcp201-103.englab.pnq.redhat.com] Unexpected error caught at the shell level Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 73, in safe_listen self.listen(clear=first_run) File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 92, in listen Shell.listen(self) File "/usr/lib/python2.6/site-packages/rhui/common/shell.py", line 191, in listen item.func(*args, **item.kwargs) File "/usr/lib/python2.6/site-packages/rhui/tools/screens/sync.py", line 63, in repo_display self._sync_display('-= Repository Synchronization Status =-', self.pulp.repos_with_sync_status, False) File "/usr/lib/python2.6/site-packages/rhui/tools/screens/sync.py", line 196, in _sync_display data_sets = retrieve_func() File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 198, in repos_with_sync_status redhat_repos = self.redhat_repo_list() File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 153, in redhat_repo_list raise e ServerRequestError: (500, '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>500 Internal Server Error</title>\n</head><body>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request.</p>\n<p>Please contact the server administrator,\n root@localhost and inform them of the time the error occurred,\nand anything you might have done that may have\ncaused the error.</p>\n<p>More information about this error may be available\nin the server error log.</p>\n<hr>\n<address>Apache/2.2.15 (Red Hat) Server at dhcp201-103.englab.pnq.redhat.com Port 443</address>\n</body></html>\n', None) added to rhui-20 tracker Should be fixed in 0.190. Currently, do not face this issue with the new builds for a while now, will re-open if required. moving to release pending closing out, product released |