Comment 2 for bug 1814164

Revision history for this message
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: