Distributed Cloud: Role creation and deletion from System Controller not sync with Subcloud

Bug #1797960 reported by Peng Peng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Andy

Bug Description

Brief Description
-----------------
In Distributed Cloud System, Create new role on System Controller. The new role shows up in all subclouds (manage and unmanage). Delete newly created role, the role would not be deleted from on all subclouds. period

Severity
--------
Critical

Steps to Reproduce
------------------
create/delete new role from System Controller.

Expected Behavior
------------------
role is created or deleted accordingly

Actual Behavior
----------------
when create, new role show up on unmanage subcloud;
when delete, role still show on all subcloud (manage and unmanage)

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Multi-node system

Branch/Pull Time/Commit
-----------------------
StarlingX_18.10 release branch as of 2018-10-08_01-52-01

Timestamp/Logs
--------------
On System Controller:

[wrsroot@controller-0 ~(keystone_admin)]$ openstack role create now_test-role
+-----------+----------------------------------+
| Field | Value |
+-----------+----------------------------------+
| domain_id | None |
| id | f57afa620deb40f49da54cea32921e75 |
| name | now_test-role |
+-----------+----------------------------------+
[wrsroot@controller-0 ~(keystone_admin)]$ openstack role list
+----------------------------------+------------------+
| ID | Name |
+----------------------------------+------------------+
| e675f74b138f46f9b22ad576b56291ea | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 0b2862c1f04b4b2dab5ab0c0ec683697 | heat_stack_user |
| 7c3618a17880420e8190713c47eb1edb | heat_stack_owner |
| f57afa620deb40f49da54cea32921e75 | now_test-role |
+----------------------------------+------------------+

[wrsroot@controller-0 ~(keystone_admin)]$ dcmanager subcloud manage subcloud-5
+-----------------------------+----------------------------+
| Field | Value |
+-----------------------------+----------------------------+
| id | 3 |
| name | subcloud-5 |
| description | wcp87 subcloud |
| location | ottawa lab |
| software_version | 18.10 |
| management | managed |
| availability | online |
| management_subnet | 10.10.2.16/28 |
| management_start_ip | 10.10.2.18 |
| management_end_ip | 10.10.2.30 |
| management_gateway_ip | 10.10.2.17 |
| systemcontroller_gateway_ip | 10.10.3.1 |
| created_at | 2018-10-11T19:58:02.576970 |
| updated_at | 2018-10-13T14:45:21.853437 |
+-----------------------------+----------------------------+
[wrsroot@controller-0 ~(keystone_admin)]$ openstack role delete f57afa620deb40f49da54cea32921e75
[wrsroot@controller-0 ~(keystone_admin)]$ openstack role list
+----------------------------------+------------------+
| ID | Name |
+----------------------------------+------------------+
| e675f74b138f46f9b22ad576b56291ea | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 0b2862c1f04b4b2dab5ab0c0ec683697 | heat_stack_user |
| 7c3618a17880420e8190713c47eb1edb | heat_stack_owner |
+----------------------------------+------------------+
[wrsroot@controller-0 ~(keystone_admin)]$ date
Sat Oct 13 15:12:01 UTC 2018

On manage subcloud-4:

[wrsroot@controller-0 ~(keystone_admin)]$ openstack role list
+----------------------------------+-----------------+
| ID | Name |
+----------------------------------+-----------------+
| 93a01a9edde24e95b4780552ae702272 | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 46fe795c74f6430cb9da75d314713ff8 | heat_stack_user |
| 2508528504b04c97979d7662bdc646ec | now_test-role |
+----------------------------------+-----------------+
[wrsroot@controller-0 ~(keystone_admin)]$ collect all
[sudo] password for wrsroot:
collecting data from 2 host(s): controller-0 controller-1
collecting controller-0_20181013.151255 ... done (00:01:34 42M)
collecting controller-1_20181013.151255 ... done (00:00:33 31M)
creating all-nodes tarball /scratch/ALL_NODES_20181013.151255.tar ... done (00:02:08 73M)
[wrsroot@controller-0 ~(keystone_admin)]$ openstack role delete 2508528504b04c97979d7662bdc646ec
[wrsroot@controller-0 ~(keystone_admin)]$ openstack role list
+----------------------------------+-----------------+
| ID | Name |
+----------------------------------+-----------------+
| 93a01a9edde24e95b4780552ae702272 | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 46fe795c74f6430cb9da75d314713ff8 | heat_stack_user |
+----------------------------------+-----------------+

On unmanage subcloud-5:

[wrsroot@controller-0 ~(keystone_admin)]$ openstack role list
+----------------------------------+-----------------+
| ID | Name |
+----------------------------------+-----------------+
| 5a08fb12fe2b48009368031ca3ba037b | admin |
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 1d9ba222bbd8421eb39766cd12b4c74a | heat_stack_user |
| ab07b5b4984a4afc9288859101891dc7 | now_test-role |
+----------------------------------+-----------------+

Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Andy (andy.wrs)
summary: - STX Distributed Cloud: Role creation and deletion from System Controller
- not sync with Subcloud
+ Distributed Cloud: Role creation and deletion from System Controller not
+ sync with Subcloud
tags: added: stx.distcloud
Revision history for this message
Ghada Khalil (gkhalil) wrote :

Targeting stx.2018.10 as this impacts distributed cloud functionality

Changed in starlingx:
importance: Undecided → High
tags: added: stx.2018.10
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to stx-distcloud (master)

Fix proposed to branch: master
Review: https://review.openstack.org/611375

Changed in starlingx:
status: New → In Progress
Revision history for this message
Andy (andy.wrs) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to stx-distcloud (r/2018.10)

Fix proposed to branch: r/2018.10
Review: https://review.openstack.org/611410

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-distcloud (master)

Reviewed: https://review.openstack.org/611375
Committed: https://git.openstack.org/cgit/openstack/stx-distcloud/commit/?id=95da7429465325f398bee5ad12797518164fcd57
Submitter: Zuul
Branch: master

commit 95da7429465325f398bee5ad12797518164fcd57
Author: Andy Ning <email address hidden>
Date: Wed Oct 17 11:32:18 2018 -0400

    Fix role synchronization in distributed cloud

    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 <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-distcloud (r/2018.10)

Reviewed: https://review.openstack.org/611410
Committed: https://git.openstack.org/cgit/openstack/stx-distcloud/commit/?id=8fec5add95fa8b406ff8d7fbf1466a0c29697856
Submitter: Zuul
Branch: r/2018.10

commit 8fec5add95fa8b406ff8d7fbf1466a0c29697856
Author: Andy Ning <email address hidden>
Date: Wed Oct 17 11:32:18 2018 -0400

    Fix role synchronization in distributed cloud

    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 <email address hidden>

Ken Young (kenyis)
tags: added: stx.1.0
removed: stx.2018.10
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.