Updating record (v1) returns 500 with PowerDNS backend

Bug #1398587 reported by Paul Glass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Endre Karlson

Bug Description

Doing a PUT /v1/{domain_id}/records/{record_id} returns a 500 when using the PowerDNS backend.

Request:

PUT /v1/domains/e6e1deb3-e574-4a16-85f8-d1c604bb5c88/records/0efd7564-b5ff-4304-b096-ddd5ab46c251

{ "data": "202.202.202.203" }

Response:

{"code": 500, "type": "unknown", "request_id": "req-39e0576e-9f2b-4537-9730-ac844a48faed"}

And designate-api.log gives the error - Backend: Unknown backend failure: AttributeError("'Record' object has no attribute 'priority'",).

Adding in a null priority field to the request also gives errors.

Switching to `backend_driver = fake` in designate.conf causes this error to disappear.

I've narrowed the issue down to this commit: https://github.com/openstack/designate/commit/67cf6b7b6f76eeb4a9d76f27b827782e1527b480. That is, 67cf6b7 exhibits the issue while the previous commit (bd5aae2) does not.

Kiall Mac Innes (kiall)
Changed in designate:
importance: Undecided → High
milestone: none → kilo-1
status: New → Triaged
assignee: nobody → Endre Karlson (endre-karlson)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/138717

Changed in designate:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/138717
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=ac14927a22f6007a818112bcd01909c29e0afada
Submitter: Jenkins
Branch: master

commit ac14927a22f6007a818112bcd01909c29e0afada
Author: Endre Karlson <email address hidden>
Date: Wed Dec 3 14:15:06 2014 +0100

    Handle priority the same way as when create_record

    If not it assumes that priority is a part of the record which is now a part of
    the record.data

    Change-Id: I6c7921b88ac31b0c8f2ffa615e6b1237bcb0b4bc
    Closes-Bug: #1398587

Changed in designate:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.