summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Ning <andy.ning@windriver.com>2018-10-17 11:32:18 -0400
committerAndy <andy.ning@windriver.com>2018-10-17 18:24:49 +0000
commit8fec5add95fa8b406ff8d7fbf1466a0c29697856 (patch)
treea069f5e53f21a29474678e338a60e86e99a079d8
parent30355b2cc46d4679ea077ab40e18f44261c5a779 (diff)
Fix role synchronization in distributed cloudr/2018.10
There is a typo error in role deletion that prevents deleting the role in subcloud during role synchronization. This update fixed this typo error and made role synchronization work. Closes-Bug: 1797960 Change-Id: Iff78ceffdd95b2676854d986126c6c2d001866de Signed-off-by: Andy Ning <andy.ning@windriver.com>
Notes
Notes (review): Code-Review+1: Tao Liu <tao.liu@windriver.com> Code-Review+2: John Kung <john.kung@windriver.com> Workflow+1: John Kung <john.kung@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 17 Oct 2018 21:48:23 +0000 Reviewed-on: https://review.openstack.org/611410 Project: openstack/stx-distcloud Branch: refs/heads/r/2018.10
-rw-r--r--dcorch/engine/sync_services/identity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dcorch/engine/sync_services/identity.py b/dcorch/engine/sync_services/identity.py
index e4a6ff8..6658b7e 100644
--- a/dcorch/engine/sync_services/identity.py
+++ b/dcorch/engine/sync_services/identity.py
@@ -479,10 +479,10 @@ class IdentitySyncThread(SyncThread):
479 original_role_ref = RoleReferenceWrapper(id=role_id) 479 original_role_ref = RoleReferenceWrapper(id=role_id)
480 480
481 # Delete the role in the subcloud 481 # Delete the role in the subcloud
482 self.sc_ks_client.projects.delete(original_role_ref) 482 self.sc_ks_client.roles.delete(original_role_ref)
483 # Master Resource can be deleted only when all subcloud resources 483 # Master Resource can be deleted only when all subcloud resources
484 # are deleted along with corresponding orch_job and orch_requests. 484 # are deleted along with corresponding orch_job and orch_requests.
485 LOG.info("Keystone project {}:{} [{}] deleted" 485 LOG.info("Keystone role {}:{} [{}] deleted"
486 .format(rsrc.id, role_subcloud_rsrc.id, 486 .format(rsrc.id, role_subcloud_rsrc.id,
487 role_subcloud_rsrc.subcloud_resource_id), 487 role_subcloud_rsrc.subcloud_resource_id),
488 extra=self.log_extra) 488 extra=self.log_extra)