project_id and zone_transfer_request_id are coming blank when you do openstack zone transfer accept list

Bug #1658974 reported by Rahul Yadav
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Confirmed
High
Unassigned

Bug Description

project_id and zone_transfer_request_id are coming blank when you do OpenStack zone transfer accept list.

As per my understanding, they are extra column or project_id/zone_transfer_request_id of zone who initiate the transfer request should appear here

1.designate@vm1:~/devstack$ openstack zone create --email admin@123.com 123.com.
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| action | CREATE |
| attributes | {} |
| created_at | 2017-01-24T07:20:14.000000 |
| description | None |
| email | admin@123.com |
| id | 36a05ceb-0315-4396-8ab1-f398719ea918 |
| masters | |
| name | 123.com. |
| pool_id | 794ccc2c-d751-44fe-b57f-8894c9f5c842 |
| project_id | 46fa5ec508604e46be15ba2f89eb17f4 |
| serial | 1485242414 |
| status | PENDING |
| transferred_at | None |
| ttl | 3600 |
| type | PRIMARY |
| updated_at | None |
| version | 1 |
+----------------+--------------------------------------+
2.designate@vm1:~/devstack$ openstack project list
+----------------------------------+--------------------+
| ID | Name |
+----------------------------------+--------------------+
| 39ec0f37244b4588876cad3350a26c63 | demo |
| 46fa5ec508604e46be15ba2f89eb17f4 | admin |
| 6c596a49f6f94bcc814f488077af9d98 | invisible_to_admin |
| 8b39cebc138142008a50ca1e76e4d7a6 | alt_demo |
| df9967f46c6d46b18ecb4a506e63c7cf | service |
+----------------------------------+--------------------+
3.designate@vm1:~/devstack$ openstack zone transfer request create --target-project-id 39ec0f37244b4588876cad3350a26c63 36a05ceb-0315-4396-8ab1-f398719ea918
+-------------------+------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------+------------------------------------------------------------------------------------------------------------+
| created_at | 2017-01-24T07:21:28.000000 |
| description | None |
| id | 5be52218-6128-4a43-8557-da3120daf225 |
| key | KMKUR6FU |
| links | {u'self': u'http://10.0.4.191:9001/v2/zones/tasks/transfer_requests/5be52218-6128-4a43-8557-da3120daf225'} |
| project_id | 46fa5ec508604e46be15ba2f89eb17f4 |
| status | ACTIVE |
| target_project_id | 39ec0f37244b4588876cad3350a26c63 |
| updated_at | None |
| zone_id | 36a05ceb-0315-4396-8ab1-f398719ea918 |
| zone_name | 123.com. |
+-------------------+------------------------------------------------------------------------------------------------------------+
4.designate@vm1:~/devstack$ openstack zone transfer accept request --transfer-id 5be52218-6128-4a43-8557-da3120daf225 --key KMKUR6FU
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| created_at | 2017-01-24T07:23:23.000000 |
| id | adb1d8c0-21ce-4c6e-9637-0631e6ebd3b3 |
| key | KMKUR6FU |
| links | {u'self': u'http://10.0.4.191:9001/v2/zones/tasks/transfer_accepts/adb1d8c0-21ce-4c6e-9637-0631e6ebd3b3', u'zone': |
| | u'http://10.0.4.191:9001/v2/zones/36a05ceb-0315-4396-8ab1-f398719ea918'} |
| project_id | 46fa5ec508604e46be15ba2f89eb17f4 |
| status | COMPLETE |
| updated_at | 2017-01-24T07:23:23.000000 |
| zone_id | 36a05ceb-0315-4396-8ab1-f398719ea918 |
| zone_transfer_request_id | 5be52218-6128-4a43-8557-da3120daf225 |
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
5.designate@vm1:~/devstack$ openstack zone transfer accept show adb1d8c0-21ce-4c6e-9637-0631e6ebd3b3
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| created_at | 2017-01-24T07:23:23.000000 |
| id | adb1d8c0-21ce-4c6e-9637-0631e6ebd3b3 |
| key | None |
| links | {u'self': u'http://10.0.4.191:9001/v2/zones/tasks/transfer_accepts/adb1d8c0-21ce-4c6e-9637-0631e6ebd3b3', u'zone': |
| | u'http://10.0.4.191:9001/v2/zones/36a05ceb-0315-4396-8ab1-f398719ea918'} |
| project_id | 46fa5ec508604e46be15ba2f89eb17f4 |
| status | COMPLETE |
| updated_at | 2017-01-24T07:23:23.000000 |
| zone_id | 36a05ceb-0315-4396-8ab1-f398719ea918 |
| zone_transfer_request_id | 5be52218-6128-4a43-8557-da3120daf225 |
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+
6.designate@vm1:~/devstack$ . openrc demo demo
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
designate@vm1:~/devstack$
designate@vm1:~/devstack$
designate@vm1:~/devstack$
designate@vm1:~/devstack$
designate@vm1:~/devstack$
7.designate@vm1:~/devstack$ openstack zone list
+--------------------------------------+----------+---------+------------+--------+--------+
| id | name | type | serial | status | action |
+--------------------------------------+----------+---------+------------+--------+--------+
| c9b9353c-4f33-47ba-a076-baf2ec11393d | xyz.com. | PRIMARY | 1485155068 | ACTIVE | NONE |
+--------------------------------------+----------+---------+------------+--------+--------+
8.designate@vm1:~/devstack$ openstack zone transfer accept list
+--------------------------------------+--------------------------------------+------------+--------------------------+----------+-----+
| id | zone_id | project_id | zone_transfer_request_id | status | key |
+--------------------------------------+--------------------------------------+------------+--------------------------+----------+-----+
| b5258557-b240-4318-b0a4-6f1f60039b61 | df6eaec9-92d8-4347-8a4a-679d4bc83856 | | | COMPLETE | |
| 5be52218-6128-4a43-8557-da3120daf225 | 36a05ceb-0315-4396-8ab1-f398719ea918 | | | COMPLETE | |
+--------------------------------------+--------------------------------------+------------+--------------------------+----------+-----+
designate@vm1:~/devstack$ openstack zone transfer accept list
+--------------------------------------+--------------------------------------+------------+--------------------------+----------+-----+
| id | zone_id | project_id | zone_transfer_request_id | status | key |
+--------------------------------------+--------------------------------------+------------+--------------------------+----------+-----+
| b5258557-b240-4318-b0a4-6f1f60039b61 | df6eaec9-92d8-4347-8a4a-679d4bc83856 | | | COMPLETE | |
| 5be52218-6128-4a43-8557-da3120daf225 | 36a05ceb-0315-4396-8ab1-f398719ea918 | | | COMPLETE | |
+--------------------------------------+--------------------------------------+------------+--------------------------+----------+-----+

9.project_id and zone_transfer_request_id are coming blank in above table, as per my understanding it should not be blank by this I am not able to backtrace how made zone transfer.
and if this is the correct behaviour why we are using these two columns?

Revision history for this message
Tim Simmons (timsim) wrote :

I'll investigate this.

Changed in designate:
assignee: nobody → Tim Simmons (timsim)
Revision history for this message
Tim Simmons (timsim) wrote :

Confirmed
http://paste.openstack.org/show/596613/

It looks like it's calling for transfer_requests when it should be calling transfer_accepts in the API on that CLI call.

On another note, it looks like you forgot to source your user creds before you accepted the transfer, so it doesn't look like the zone got transferred to me, unless I read that wrong.

Changed in designate:
status: New → Confirmed
importance: Undecided → High
milestone: none → ocata-rc1
Revision history for this message
maestropandy (maestropandy) wrote :

Hi,

is it similar like this bug https://bugs.launchpad.net/designate/+bug/1580014 where zone_name response is null and have fixed ? or something is missing like forgot to provide source project details, which is received as null while accepting. if its right, then i feel while sending request from source it should ask details as mandatory

Tim Simmons (timsim)
Changed in designate:
assignee: Tim Simmons (timsim) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.