Heat stack using OS::Designate::Record cannot be deleted if Domain has been deleted

Bug #1748225 reported by Anatolii Neliubin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
New
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Create a Designate Domain:
# openstack zone create --email <email address hidden> example.com.
2. Make a new Heat stack using records in that Designate domain using following template:
# cat stack_creating_record.yaml
heat_template_version: 2015-10-15
description: Basic Cluster Test
parameters:
  domain_name:
    type: string
    default: "example.com."
resources:
  record_test:
    type: OS::Designate::Record
    properties:
      name: { list_join: [".",[testrecord, {get_param: domain_name }]]}
      type: A
      data: 1.2.3.4
      domain: { get_param: domain_name }
      ttl: 900
# openstack stack create -t stack_creating_record.yaml stack_creating_record
3. Delete a Designate zone created before:
# openstack zone delete example.com.
4. delete Heat stack created earlier:
# openstack stack delete stack_creating_record
5. Heat stack cannot be deleted:
openstack stack show stack_creating_record -c stack_status_reason
+---------------------+------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+---------------------+------------------------------------------------------------------------------------------------------------------------+
| stack_status_reason | Resource DELETE failed: EntityNotFound: resources.record_test: The Designate Domain (example.com.) could not be found. |
+---------------------+------------------------------------------------------------------------------------------------------------------------+

Workaround: To recreate Domain and then to delete the stack.

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.