A zone import defaults to a ttl of zero (outside schema limits)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Undecided
|
Dai Dang Van | ||
Mitaka |
Triaged
|
Undecided
|
Unassigned | ||
Newton |
Triaged
|
High
|
sonu |
Bug Description
To reproduce, create a zone with no ttls specified:
POST /v2/zones/
Content-Type: text/dns
Accept: application/json
$ORIGIN wumbo.com.
wumbo.com. IN SOA ns.wumbo.com. nsadmin.wumbo.com. 101 102 103 104 105
wumbo.com. IN NS ns.wumbo.com.
ns.wumbo.com. IN A 127.0.0.1
Designate assigns a ttl of zero to the zone:
{
"status": "ACTIVE",
"name": "wumbo.com.",
"id": "447c28b7-
"ttl": 0,
...
}
This is outside of the allowed ttl boundaries, according to the schema: https:/
This is a problem because all updates to the zone will fail (provided the update does not rectify the ttl). For example,
Request:
## Patching the zone with an empty json object
PATCH /v2/zones/
Content-Type: application/json
Accept: application/json
{}
Response:
{
"code": 400,
"type": "invalid_object",
"errors": {
"errors": [
{
"path": [
"ttl"
],
}
]
},
"request_id": "req-7055407e-
}
Changed in designate: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → newton-2 |
Changed in designate: | |
assignee: | Graham Hayes (grahamhayes) → Hieu LE (hieulq) |
Changed in designate: | |
assignee: | Hieu LE (hieulq) → Nguyen Van Trung (trungnv) |
Changed in designate: | |
assignee: | Nguyen Van Trung (trungnv) → Dai Dang Van (daidv) |
Fix proposed to branch: master /review. openstack. org/464037
Review: https:/