Bug 690903
| Summary: | CDS status ends in error | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | nodes | Assignee: | Jeff Ortel <jortel> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 12:09:59 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: | 647488 | ||
Fixed: d852cfd6461366de33c08b32eba92cc5217aabba Build: 0.158 fails_qa
[root@preethi ~]# rpm -q pulp
pulp-0.0.158-1.fc14.noarch
[root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
CDS Status
+------------------------------------------+
Name pulp-cds.usersys.redhat.com
Hostname pulp-cds.usersys.redhat.com
Description None
Repos f14
Last Sync 2011-03-30 17:37:06
+------------------------------------------+
Most Recent Sync Tasks
+------------------------------------------+
State error
Start Time 2011-03-30 17:35:36
Finish Time 2011-03-30 17:37:06
Exception PulpException('Timeout occurred during sync; check the server log for more information',)
Traceback
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run
result = self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/api/cds.py", line 324, in cds_sync
self.dispatcher.sync(cds, repos)
File "/usr/lib/python2.7/site-packages/pulp/server/cds/dispatcher.py", line 157, in sync
self._cds_stub(cds).sync(repo_base_url, repos)
File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 70, in __call__
return self.stub._send(request, opts)
File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 114, in _send
any=opts.any)
File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 128, in send
return self.__getreply(sn)
File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 154, in __getreply
raise RequestTimeout(sn)
PulpException: 'Timeout occurred during sync; check the server log for more information'
build: 0.160 This still fails.
[root@preethi ~]# rpm -q pulp
pulp-0.0.160-1.fc14.noarch
I think the key here is having a big repo. I am syncing f14 repo. Sync worked without any errors for smaller repos
[root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
CDS Status
+------------------------------------------+
Name pulp-cds.usersys.redhat.com
Hostname pulp-cds.usersys.redhat.com
Description None
Repos f14, f14-original
Last Sync 2011-04-08 14:33:08
+------------------------------------------+
Most Recent Sync Tasks
+------------------------------------------+
State error
Start Time 2011-04-08 14:31:38
Finish Time 2011-04-08 14:33:08
Exception PulpException('Timeout occurred during sync; check the server log for more information',)
Traceback
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run
result = self.callable(*self.args, **self.kwargs)
File "/usr/lib/python2.7/site-packages/pulp/server/api/cds.py", line 348, in cds_sync
self.dispatcher.sync(cds, repos)
File "/usr/lib/python2.7/site-packages/pulp/server/cds/dispatcher.py", line 157, in sync
self._cds_stub(cds).sync(repo_base_url, repos)
File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 70, in __call__
return self.stub._send(request, opts)
File "/usr/lib/python2.7/site-packages/gofer/messaging/stub.py", line 114, in _send
any=opts.any)
File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 128, in send
return self.__getreply(sn)
File "/usr/lib/python2.7/site-packages/gofer/messaging/policy.py", line 154, in __getreply
raise RequestTimeout(sn)
PulpException: 'Timeout occurred during sync; check the server log for more information'
You have new mail in /var/spool/mail/root
In gofer, the default timeout for synchronous RMI is (90/90). This means 90 seconds for the request to start processing and 90 seconds to complete. The fix here is to increase the time to something like (10, 3600). So, the sync has an hour to finish. What's the longest time reasonable to sync a repo? This should be fixed. Please re-verify. verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.213-1.fc14.noarch
[root@preethi ~]#
[root@preethi ~]#
[root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
CDS Status
+------------------------------------------+
Name pulp-cds.usersys.redhat.com
Hostname pulp-cds.usersys.redhat.com
Description None
Cluster None
Sync Schedule None
Repos f14
Last Sync Never
Status:
Responding Yes
Last Heartbeat 2011-07-27 17:29:23.125667+00:00
+------------------------------------------+
Most Recent Sync Tasks
+------------------------------------------+
State Running
Start Time 2011-07-27 13:27:26-04:00
Finish Time In Progress
Closing with Community Release 15 pulp-0.0.223-4. Closing with Community Release 15 pulp-0.0.223-4. |
Description of problem: I see this error when I run CDS sync and then CDS status multiple times [root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com +------------------------------------------+ CDS Status +------------------------------------------+ Name pulp-cds.usersys.redhat.com Hostname pulp-cds1 Description pulp-cds1 Repos f14 Last Sync 2011-03-25 18:34:47 +------------------------------------------+ Most Recent Sync Tasks +------------------------------------------+ State error Start Time 2011-03-25 18:41:11 Finish Time 2011-03-25 18:41:11 Exception NameError("global name 'CdsAuthsException' is not defined",) Traceback Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pulp/server/tasking/task.py", line 131, in run result = self.callable(*self.args, **self.kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/api/cds.py", line 335, in cds_sync except CdsAuthsException: NameError: global name 'CdsAuthsException' is not defined [root@preethi ~]#