Comment 4 for bug 2064129

Revision history for this message
Omer Schwartz (omersch) wrote : Re: python-designateclient does not require email on zone create

Regarding the case of providing email to a SECONDARY zone, I see the following behavior:

$ openstack zone create --type SECONDARY --masters example.com. --email <email address hidden> example2.com.
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| action | CREATE |
| attributes | |
| created_at | 2024-04-16T16:15:03.000000 |
| description | None |
| email | <email address hidden> | <--------------
| id | 48ed5104-266a-47a1-85a2-c4a185d7cd0f |
| masters | example.com. |
| name | example2.com. |
| pool_id | 794ccc2c-d751-44fe-b57f-8894c9f5c842 |
| project_id | 0179f0a7da3b4e5a8bb5cb32afd660bc |
| serial | 1 |
| shared | False |
| status | PENDING |
| transferred_at | None |
| ttl | 3600 |
| type | SECONDARY |
| updated_at | None |
| version | 1 |
+----------------+--------------------------------------+

Probably due to https://opendev.org/openstack/designate/src/branch/master/designate/api/v2/controllers/zones/__init__.py#L98

So as far as I understand, in case we provide an email when we create a secondary zone, we should return an error.
But what should be the assigned email for that secondary zone?

Thanks again.