Zone export is not working

Bug #1658596 reported by Rahul Yadav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Invalid
Undecided
Unassigned

Bug Description

1.Create A zone from admin account.
designate@vm1:~/devstack$ openstack zone create --email <email address hidden> abc.com.
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| action | CREATE |
| attributes | {} |
| created_at | 2017-01-23T06:16:34.000000 |
| description | None |
| email | <email address hidden> |
| id | 3776d543-02f1-4744-a148-b3535eebb75d |
| masters | |
| name | abc.com. |
| pool_id | 794ccc2c-d751-44fe-b57f-8894c9f5c842 |
| project_id | 46fa5ec508604e46be15ba2f89eb17f4 |
| serial | 1485152194 |
| status | PENDING |
| transferred_at | None |
| ttl | 3600 |
| type | PRIMARY |
| updated_at | None |
| version | 1 |
+----------------+--------------------------------------+

2.Check zone is created or not

designate@vm1:~/devstack$ openstack zone list
+--------------------------------------+-------------------+---------+------------+--------+--------+
| id | name | type | serial | status | action |
+--------------------------------------+-------------------+---------+------------+--------+--------+
| 84eae238-2103-401d-8859-ba596eaf88f8 | example5.com. | PRIMARY | 1484891436 | ACTIVE | NONE |
| b0ea129d-6397-437e-97fa-f2326573b3df | example3.com. | PRIMARY | 1484818792 | ACTIVE | NONE |
| 9e52534c-3588-4675-86c4-dbd26eae22b5 | example6.com. | PRIMARY | 1484818960 | ACTIVE | NONE |
| bfe09efc-db85-4613-b03f-614364051070 | example421.com. | PRIMARY | 1484819122 | ACTIVE | NONE |
| f7bd4638-294f-42f4-8105-e93928f14724 | example.com. | PRIMARY | 1484822630 | ACTIVE | NONE |
| a0da4346-3734-44bb-befa-a52874778b26 | example7.com. | PRIMARY | 1484822798 | ACTIVE | NONE |
| 8fee8469-5d01-4f15-a1a1-be3bb932fd78 | doctestdomain.eu. | PRIMARY | 1484895641 | ACTIVE | NONE |
| 7151e275-6369-40d5-ae2d-7600ec187c8d | example10.com. | PRIMARY | 1484899540 | ACTIVE | NONE |
| 21e63cfa-9bd9-4e81-b594-f99273e37ac5 | google.com. | PRIMARY | 1484912083 | ACTIVE | NONE |
| 3776d543-02f1-4744-a148-b3535eebb75d | abc.com. | PRIMARY | 1485152375 | ACTIVE | NONE |
+--------------------------------------+-------------------+---------+------------+--------+--------+
designate@vm1:~/devstack$

3.Do Zone export in demo using project id
+----------------------------------+--------------------+
| ID | Name |
+----------------------------------+--------------------+
| 39ec0f37244b4588876cad3350a26c63 | demo |
| 46fa5ec508604e46be15ba2f89eb17f4 | admin |
| 6c596a49f6f94bcc814f488077af9d98 | invisible_to_admin |
| 8b39cebc138142008a50ca1e76e4d7a6 | alt_demo |
| df9967f46c6d46b18ecb4a506e63c7cf | service |
+----------------------------------+--------------------+
designate@vm1:~/devstack$ openstack zone export create 3776d543-02f1-4744-a148-b3535eebb75d --sudo-project-id 39ec0f37244b4588876cad3350a26c63
+------------+--------------------------------------+
| Field | Value |
+------------+--------------------------------------+
| created_at | 2017-01-23T07:15:57.000000 |
| id | 4a5e4f58-c4ab-4628-8008-b5eb66b7de5e |
| location | None |
| message | None |
| project_id | 46fa5ec508604e46be15ba2f89eb17f4 |
| status | PENDING |
| updated_at | None |
| version | 1 |
| zone_id | 3776d543-02f1-4744-a148-b3535eebb75d |
+------------+--------------------------------------+

designate@vm1:~/devstack$ openstack zone export list
+--------------------------------------+--------------------------------------+----------------------------+----------+
| id | zone_id | created_at | status |
+--------------------------------------+--------------------------------------+----------------------------+----------+
| 1732f7c1-5ba3-45a4-8370-b78841fac144 | 8fbad45c-014d-45f9-903a-50b0c0ff754a | 2017-01-20T11:03:05.000000 | COMPLETE |
| cbddf612-8a96-428e-b31b-ec303151554a | 84eae238-2103-401d-8859-ba596eaf88f8 | 2017-01-20T11:03:21.000000 | COMPLETE |
| 9d6fa303-4748-4eaf-bf50-e5066eceda8d | 9e52534c-3588-4675-86c4-dbd26eae22b5 | 2017-01-20T11:29:38.000000 | COMPLETE |
| 9a29f357-3489-4b80-ba88-36042a970134 | 3776d543-02f1-4744-a148-b3535eebb75d | 2017-01-23T06:42:48.000000 | COMPLETE |
| 4a5e4f58-c4ab-4628-8008-b5eb66b7de5e | 3776d543-02f1-4744-a148-b3535eebb75d | 2017-01-23T07:15:57.000000 | COMPLETE |
+--------------------------------------+--------------------------------------+----------------------------+----------+

4.logout from admin account and login from another account (in my case i am using demo account )
. openrc demo demo

6.Expected behaviour is zone abc should export in demo,but no zone is created in demo
openrc: command not found
designate@vm1:~/devstack$ openstack zone list
+--------------------------+----------+---------+------------+--------+--------+
| id | name | type | serial | status | action |
+--------------------------+----------+---------+------------+--------+--------+
| c9b9353c-4f33-47ba-a076- | xyz.com. | PRIMARY | 1485155068 | ACTIVE | NONE |
| baf2ec11393d | | | | | |
+--------------------------+----------+---------+------------+--------+--------+

ZONE abc.com. not exported .

Revision history for this message
Graham Hayes (grahamhayes) wrote :

zone export is not for transferring a zone between projects.

use zone transfers for that - `openstack zone transfer request create` and `zone transfer accept request` are used for this

Changed in designate:
status: New → Invalid
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.