Zone transfer fails for the targeted project using non admin creds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Triaged
|
Medium
|
Unassigned |
Bug Description
Zone transfer fails from source project to target project
Source a creds of a project/user with role non admin
For this usercase i have two member creds project1.osrc and project2.osrc
Using user1 created a zone .
source project1.osrc
stack@user1:~$ openstack zone list
+------
| id | name | type | serial | status | action |
+------
| 6aee0065-
+------
*Note tenant_id of project1.osrc creds : 67850ec5eba444e
Transfer request is made to transfer the zone from project1 to project2 (3307862989444a
stack@user1:~$ openstack zone transfer request create --target-project-id 3307862989444a1
+------
| Field | Value |
+------
| created_at | 2016-09-
| description | None |
| id | 6606d411-
| key | OMZ0CP4T |
| links | {u'self': u'https:/
| project_id | 67850ec5eba444e
| status | ACTIVE |
| target_project_id | 3307862989444a1
| updated_at | None |
| zone_id | 6aee0065-
| zone_name | None |
+------
While trying to made accept request
stack@user1:~$ openstack zone transfer accept request --transfer-id 6606d411-
forbidden
Reason: https:/
Hence using the admin creds
stack@user1:~$ source service.osrc
stack@user1:~$ openstack zone transfer accept request --transfer-id 6606d411-
+------
| Field | Value |
+------
| created_at | 2016-09-
| id | 48c116cc-
| key | OMZ0CP4T |
| links | {u'self': u'https:/
| | u'https:/
| project_id | 79d05e929d04417
| status | COMPLETE |
| updated_at | 2016-09-
| zone_id | 6aee0065-
| zone_transfer_
+------
Now using the project2/prject1 creds trying listing the zone
stack@user1:~$ source project2.osrc
stack@user1:~$ openstack zone list
stack@user1:~$ source project1.osrc
stack@user1:~$ openstack zone list
Rather the zone get transferred to But using admin (79d05e929d0441
stack@user1:~$ openstack zone show u1.com.
+------
| Field | Value |
+------
| action | NONE |
| attributes | {} |
| created_at | 2016-09-
| description | None |
| email | <email address hidden> |
| id | 6aee0065-
| masters | |
| name | u1.com. |
| pool_id | 794ccc2c-
| project_id | 79d05e929d04417
| serial | 1474954123 |
| status | ACTIVE |
| transferred_at | None |
| ttl | 3600 |
| type | PRIMARY |
| updated_at | 2016-09-
| version | 5 |
+------
description: | updated |
Changed in designate: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → ocata-1 |