sync-record is failing with 500 error

Bug #1430455 reported by Ron Rickard on 2015-03-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Undecided
Unassigned
Icehouse
Medium
Unassigned

Bug Description

In Icehouse, 'designate sync-record <domain-id> <record-id>' is failing with a 500 error:

designate sync-record a4ec2aaf-43d2-4087-ae81-fce895209129 283231c3-59ab-4812-be90-891d9e45130a
+-------+---------+
| Field | Value |
+-------+---------+
| Code | 500 |
| Type | unknown |
+-------+---------+
ERROR: The requested action did not complete successfully

From the designate-api.log file:

2015-03-10 10:28:46.219 51240 ERROR designate.api.middleware [req-e20e37a1-25b9-
440c-96a6-ca02793f5326 cc710f940ffd4c92938339282951f6fc baf2ba906c6b48a19349bab5
4072e091 - - -] sync_record() takes exactly 5 arguments (4 given)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware Traceback (most rec
ent call last):
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/designate/api/middleware.p
y", line 193, in __call__
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware return request.
get_response(self.application)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/webob/request.py", line 13
20, in send
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware application, ca
tch_exc_info=False)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/webob/request.py", line 12
84, in call_application
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware app_iter = appl
ication(self.environ, start_response)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1836,
in __call__
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware return self.wsg
i_app(environ, start_response)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1820,
in wsgi_app
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware response = self
.make_response(self.handle_exception(e))
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1403,
in handle_exception
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware reraise(exc_typ
e, exc_value, tb)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1817,
in wsgi_app
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware response = self
.full_dispatch_request()
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1477,
in full_dispatch_request
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware rv = self.handl
e_user_exception(e)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openst
ack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1381,
in handle_user_exception
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware reraise(exc_type, exc_value, tb)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openstack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware rv = self.dispatch_request()
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openstack/designate/2015.1.0.r3/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware return self.view_functions[rule.endpoint](**req.view_args)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware File "/opt/openstack/designate/2015.1.0.r3/lib/python2.7/site-packages/designate/api/v1/extensions/sync.py", line 48, in sync_record
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware central_api.sync_record(context, domain_id, record_id)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware TypeError: sync_record() takes exactly 5 arguments (4 given)
2015-03-10 10:28:46.219 51240 TRACE designate.api.middleware

Ron Rickard (rjrjr) on 2015-03-10
Changed in designate:
assignee: nobody → Ron Rickard (rjrjr)
assignee: Ron Rickard (rjrjr) → nobody
Kiall Mac Innes (kiall) wrote :

I never quite know how to markup a bug for an older release.. I've marked as in-progress for Icehouse, and Invalid for Kilo .. I think...

Changed in designate:
importance: Undecided → Medium
status: New → In Progress
status: In Progress → Invalid
importance: Medium → Undecided

Change abandoned by Ron Rickard (<email address hidden>) on branch: stable/icehouse
Review: https://review.openstack.org/163107
Reason: not needed

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers