Unable to remove DNS records where name is in the format <name>.<domain>

Bug #1814164 reported by Ryan on 2019-01-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
Newell Jensen

Bug Description

I have a domain: "pdl-openstack" and instantiated an A record named "cinder.pdl-openstack" (as opposed to being named "cinder").

Attempting to delete this record fails with the following error: https://pastebin.com/JRFmBULG

This also prevents deletion of the domain as it has existing records.

Tags: dns Edit Tag help
Ryan (rr-pdl) on 2019-01-31
description: updated
Changed in maas:
milestone: none → 2.5.2
importance: Undecided → Medium
status: New → Triaged
importance: Medium → High
Changed in maas:
milestone: 2.5.2 → 2.5.3
Changed in maas:
milestone: 2.5.3 → 2.5.4
zw.paper (zw-paper) on 2019-05-05
Changed in maas:
status: Triaged → Confirmed
Changed in maas:
milestone: 2.5.4 → 2.6.0rc1
Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
Newell Jensen (newell-jensen) wrote :

Ryan,

I have not been able to reproduce this. I am able to add a domain named "pdl-openstack" and then after that I am able to add a resource record of type A with a name of "cinder.pdl-openstack" and I am able to delete it and then the domain subsequently without any issues. I am trying this in MAAS 2.6. What version of MAAS are you seeing this in?

Newell Jensen (newell-jensen) wrote :

I am also able to the above steps via the API and I don't have any issues. Marking invalid until more steps are given.

# maas admin domains create name=pdl-openstack
Success.
Machine-readable output follows:
{
    "authoritative": true,
    "ttl": null,
    "resource_record_count": 0,
    "name": "pdl-openstack",
    "is_default": false,
    "id": 14,
    "resource_uri": "/MAAS/api/2.0/domains/14/"
}

# maas admin dnsresource-records create domain=pdl-openstack name=cinder.pdl-openstack rrtype=TXT rrdata=10.0.0.14
Success.
Machine-readable output follows:
{
    "ttl": null,
    "rrtype": "TXT",
    "rrdata": "10.0.0.14",
    "id": 1,
    "fqdn": "cinder.pdl-openstack.pdl-openstack",
    "resource_uri": "/MAAS/api/2.0/dnsresourcerecords/1/"
}

# maas admin dnsresources read
Success.
Machine-readable output follows:
[
    {
        "address_ttl": null,
        "id": 30,
        "resource_records": [
            {
                "ttl": null,
                "rrtype": "TXT",
                "rrdata": "10.0.0.14",
                "id": 1,
                "fqdn": "cinder.pdl-openstack.pdl-openstack",
                "resource_uri": "/MAAS/api/2.0/dnsresourcerecords/1/"
            }
        ],
        "ip_addresses": [],
        "fqdn": "cinder.pdl-openstack.pdl-openstack",
        "resource_uri": "/MAAS/api/2.0/dnsresources/30/"
    }
]

# maas admin dnsresource delete 30
Success.
Machine-readable output follows:

# maas admin domain delete 14
Success.
Machine-readable output follows:

Changed in maas:
status: Confirmed → Incomplete
Changed in maas:
milestone: 2.6.0rc1 → 2.6.0rc2
Changed in maas:
milestone: 2.6.0rc2 → 2.7.0alpha1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers