Bug 709631
Summary: | Getting KeyError: 'next_scheduled_sync' in rhui.log while checking sync status | ||
---|---|---|---|
Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Sachin Ghai <sghai> |
Component: | Tools | Assignee: | Jay Dobies <jason.dobies> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.0 | CC: | kbidarka, 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:56:38 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: | 711223 |
Description
Sachin Ghai
2011-06-01 08:56:03 UTC
added to rhui-20 tracker This should be fixed in Pulp 0.190. I verified this in build 0.190. This is still reproducible. When I checked the sync status in morning, its saying ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Repository Synchronization Status =- Last Refreshed: 11:33:04 (updated every 5 seconds, ctrl+c to exit) Next Sync Last Sync Last Result ------------------------------------------------------------------------------ Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64) 06-17-2011 11:32 06-16-2011 19:36 running Red Hat Enterprise Linux Server 6 Optional Updates (RPMs) (6Server-x86_64) 06-17-2011 11:32 06-16-2011 19:37 running Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) 06-17-2011 12:18 06-16-2011 21:19 scheduled Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) 06-17-2011 12:18 06-16-2011 21:19 scheduled Connected: dhcp193-163.pnq.redhat.com ------------------------------------------------------------------------------ I restarted the pulp-server service, still it was showing the same status. Notice that "last sync" completed yesterday at 19:37. So I tried to trigger the invdividual sync for other two repos (RHUI1.2) and got same error as mentioned in this defect's description. ------------------------------------------------------------------------------ rhui (sync) => sr An unexpected error has occurred during the last operation. More information can be found in /root/.rhui/rhui.log. ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Synchronization Status =- dr display repo synchronization schedules sr trigger an individual repository sync dc display CDS synchronization schedules sc trigger an individual CDS sync logout removes stored authentication credentials and exits < move to the previous screen ^, home move to the home screen /, clear clears the screen ?, help display help q, quit, exit exit Connected: dhcp193-163.pnq.redhat.com ------------------------------------------------------------------------------ rhui (sync) => exit [root@dhcp193-60 ~]# tail -f /root/.rhui/rhui.log Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 75, in safe_listen self.listen(clear=first_run) File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 94, 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 92, in repo_sync repo_menu_items.append(select_text % (self._color_sync_state(repo), render.format_date(repo['next_scheduled_sync']), repo['name'])) KeyError: 'next_scheduled_sync' I again restarted the pulp-server and this time..I got following using 'dr' Connected: dhcp193-163.pnq.redhat.com ------------------------------------------------------------------------------ rhui (sync) => dr ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Repository Synchronization Status =- Last Refreshed: 12:08:12 (updated every 5 seconds, ctrl+c to exit) Next Sync Last Sync Last Result ------------------------------------------------------------------------------ Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64) An unexpected error has occurred during the last operation. More information can be found in /root/.rhui/rhui.log. ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Synchronization Status =- dr display repo synchronization schedules sr trigger an individual repository sync dc display CDS synchronization schedules sc trigger an individual CDS sync logout removes stored authentication credentials and exits < move to the previous screen ^, home move to the home screen /, clear clears the screen ?, help display help q, quit, exit exit Connected: dhcp193-163.pnq.redhat.com ------------------------------------------------------------------------------ rhui (sync) => exit [root@dhcp193-60 ~]# tail -f /root/.rhui/rhui.log self.listen(clear=first_run) File "/usr/lib/python2.6/site-packages/rhui/tools/shell.py", line 94, 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 236, in _sync_display if data['next_scheduled_sync'] is None and data['sync_state'] == 'running': KeyError: 'next_scheduled_sync' Bulk moving a bunch of sync related bugs to ON_QA to test with version 2.0.32. Verified this with new build pulp 0.201 and rhui-tools 2.0.34. This issue is not reproducible. I started sync for two large rhel6 repos and checked the sync status couple of times. Also I started the CDS sync in parallel. Moving this to Verified since it is not reproducible in new build. moving to release pending closing out, product released |