zone_name attribute is not set in Response body of REST API call for creation of zone transfer request.

Bug #1580014 reported by sonu
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Medium
maestropandy

Bug Description

When we make REST API call for creation of zone ownership transfer request. The response to API call has zone_id set with zone id but zone name is set to 'null'.

$ curl -g -i -X POST http://192.168.11.182:9001/v2/zones/54926a13-2fb4-41db-bdb2-d344c502be4c/tasks/transfer_requests -H "User-Agent: python-designateclient-2.1.0" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 8beeb321c38a467dbc4dc65eb820f258" -d '{"target_project_id": "9cc52dd7649c4aa99fa9db2fb94dabb8"}'

HTTP/1.1 201 Created
Location: http://192.168.11.182:9001/v2/zones/tasks/transfer_requests/9e49da89-9a7c-4878-9d20-b2dd1d327d37
Content-Length: 459
Content-Type: application/json; charset=UTF-8
X-Openstack-Request-Id: req-9ce659dd-23da-419e-8ec7-367a1f995979
Date: Tue, 10 May 2016 02:29:57 GMT

{"status": "ACTIVE", "target_project_id": "9cc52dd7649c4aa99fa9db2fb94dabb8", "zone_id": "54926a13-2fb4-41db-bdb2-d344c502be4c", "links": {"self": "http://192.168.11.182:9001/v2/zones/tasks/transfer_requests/9e49da89-9a7c-4878-9d20-b2dd1d327d37"}, "created_at": "2016-05-10 02:29:57", "updated_at": null, "key": "EQ3M4GNO", "zone_name": null, "project_id": "10457ad1fe074f4a89bb1e4c0cd83d40", "id": "9e49da89-9a7c-4878-9d20-b2dd1d327d37", "description": null}

If we have zone_id set with some zone id then zone_name should also be set with the corresponding zone name.

Tim Simmons (timsim)
Changed in designate:
status: New → Triaged
milestone: none → newton-1
importance: Undecided → Medium
Jin Li (jl7351)
Changed in designate:
assignee: nobody → Jin Li (jl7351)
Changed in designate:
milestone: newton-1 → newton-2
Changed in designate:
assignee: Jin Li (jl7351) → nobody
Changed in designate:
assignee: nobody → maestropandy (maestropandy)
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/334508

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/334508
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=9deeed706e2c8423dff1f43a088af6929befd895
Submitter: Jenkins
Branch: master

commit 9deeed706e2c8423dff1f43a088af6929befd895
Author: maestropandy <email address hidden>
Date: Tue Jun 28 18:51:08 2016 +0530

    zone_name is null in zone trasfer request response

    The response to API call has zone_id set with
    zone id but zone name is set to 'null'.

    Change-Id: Id2d093891953efcbb125560ea1113b8a9e613a9c
    Closes-Bug: #1580014

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/designate 3.0.0.0b2

This issue was fixed in the openstack/designate 3.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/391460

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/mitaka)

Reviewed: https://review.openstack.org/391460
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=5203c5cb6c8bdd59792890d815c355461d46aed6
Submitter: Jenkins
Branch: stable/mitaka

commit 5203c5cb6c8bdd59792890d815c355461d46aed6
Author: maestropandy <email address hidden>
Date: Tue Jun 28 18:51:08 2016 +0530

    zone_name is null in zone trasfer request response

    The response to API call has zone_id set with
    zone id but zone name is set to 'null'.

    Change-Id: Id2d093891953efcbb125560ea1113b8a9e613a9c
    Closes-Bug: #1580014

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate 2.1.0

This issue was fixed in the openstack/designate 2.1.0 release.

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.