Asynchronous Zone Import

Registered by Tim Simmons on 2015-05-04

This is related to https://bugs.launchpad.net/designate/+bug/1443366

Large zone imports (and possibly exports?) may take longer than various API timeouts due to long parsing and INSERT time. These APIs should be fully asynchronous tasks.

e.g. an import example:

POST /zones/tasks/import

202 Accepted
{"id": "<task ID>", "status": PENDING}

.. Wait 1 second... Task is NOT done

GET /zones/tasks/import/<task ID>

200 OK
{"id": "<task ID>", "status": PENDING}

.. Wait 5 minutes... Task is done

GET /zones/tasks/import/<task ID>

200 OK
{"id": "<task ID>", "status": COMPLETE, "zone_id": <Zone ID>}

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Tim Simmons
Direction:
Needs approval
Assignee:
Tim Simmons
Definition:
Discussion
Series goal:
Accepted for liberty
Implementation:
Implemented
Milestone target:
milestone icon 1.0.0
Started by
Tim Simmons on 2015-05-29
Completed by
Kiall Mac Innes on 2015-06-24

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.