Project

General

Profile

Actions

Bug #12677

closed

agent has AttributeErrors on wrong exception references

Added by Alfredo Deza over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The agent is causing errors like:

2015-08-12 03:48:37,789.789 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:2015-08-12 03:48:37,782 13877 [radosgw_agent.worker][WARNING] error unlocking log, continuing anyway since lock will timeout. Traceback:
2015-08-12 03:48:37,789.789 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:Traceback (most recent call last):
2015-08-12 03:48:37,790.790 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:  File "/home/ubuntu/cephtest/radosgw-agent.client.0/radosgw_agent/worker.py", line 65, in unlock_shard
2015-08-12 03:48:37,790.790 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:    self.lock.release_and_clear()
2015-08-12 03:48:37,790.790 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:  File "/home/ubuntu/cephtest/radosgw-agent.client.0/radosgw_agent/lock.py", line 98, in release_and_clear
2015-08-12 03:48:37,790.790 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:    except client.HttpError as e:
2015-08-12 03:48:37,791.791 INFO:tasks.radosgw_agent.ubuntu@vpm174.front.sepia.ceph.com.8000.syncdaemon.vpm174.stderr:AttributeError: 'module' object has no attribute 'HttpError'

And there are a few instances where this is referenced (in the wrong way). The `HttpError` needs to come from `radosgw_agent.exc` not `client`

Actions

Also available in: Atom PDF