"record-list" should be case insensitive

Bug #1639307 reported by Hao Chen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-designateclient
Triaged
High
Unassigned

Bug Description

In a newton deployment, we created a domain with two upper letters "TTesting.net.". Then we associate it with a network. If we run record-list using TTesting.net. we can get the right result, but if we run record-list using ttesting.net. We got a "couldn't find resource" error.

Based on https://tools.ietf.org/html/rfc4343 domain name should be case insensitive. And we also verify that in the same environment we can't create another domain with ttesting.net. because of duplicate_domain error. We should fix this record-list problem so "TTesting.net." and "ttesting.net." will return the same result.

honolulu-citron:/opt/openstack # designate --insecure domain-list
+--------------------------------------+---------------+------------+
| id | name | serial |
+--------------------------------------+---------------+------------+
| 2c37cfe4-bd5c-40be-a6e9-35a2321df601 | TTesting.net. | 1478277961 |
+--------------------------------------+---------------+------------+
honolulu-citron:/opt/openstack # neutron --insecure net-update 05644fca-b2f0-40e1-810b-bcc48bcdef1e --dns_domain TTesting.net.

honolulu-citron:/opt/openstack # designate --insecure record-list TTesting.net.
+--------------------------------------+------+---------------+--------------------------------------------------------------------+
| id | type | name | data |
+--------------------------------------+------+---------------+--------------------------------------------------------------------+
| 1be49a57-5872-48c1-9d57-711055a833df | NS | TTesting.net. | ns1-1.example.org. |
| 3c4ddd32-6ec9-4c2d-85a0-48f95263e9b8 | NS | TTesting.net. | ns.foo.com. |
| 43164f1b-fbd3-4bd8-a8a5-d151be26e12e | SOA | TTesting.net. | ns1-1.example.org. me.mydomain.com. 1478277961 3508 600 86400 3600 |
+--------------------------------------+------+---------------+--------------------------------------------------------------------+

honolulu-citron:/opt/openstack # designate --insecure record-list ttesting.net.
ERROR: Could not find resource with name "ttesting.net."

honolulu-citron:/opt/openstack # designate --insecure domain-create --name ttesting.net. --email <email address hidden>
+---------+------------------+
| Field | Value |
+---------+------------------+
| Code | 409 |
| Type | duplicate_domain |
| Message | Duplicate Zone |
+---------+------------------+
ERROR: The requested action did not complete successfully

Tim Simmons (timsim)
Changed in designate:
importance: Undecided → High
importance: High → Undecided
Tim Simmons (timsim)
affects: designate → python-designateclient
Changed in python-designateclient:
importance: Undecided → High
status: New → Triaged
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.