Skip to content

CLOUDSTACK-10269: On deletion of role set name to null - #2444

Merged
DaanHoogland merged 1 commit into
apache:4.11from
shapeblue:4.11-delete-roles-fix
Feb 9, 2018
Merged

CLOUDSTACK-10269: On deletion of role set name to null#2444
DaanHoogland merged 1 commit into
apache:4.11from
shapeblue:4.11-delete-roles-fix

Conversation

@yadvr

@yadvr yadvr commented Feb 2, 2018

Copy link
Copy Markdown
Member

During deletion of role, set name to null. This fixes concurrent
exception issue where previously it would rename the deleted role
with a timestamp.

Pinging for review - @DaanHoogland @nvazquez @borisstoyanov and others.

@blueorangutan package

During deletion of role, set name to null. This fixes concurrent
exception issue where previously it would rename the deleted role
with a timestamp.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr added the type:bug label Feb 2, 2018
@yadvr yadvr added this to the 4.11.1 milestone Feb 2, 2018
@yadvr

yadvr commented Feb 2, 2018

Copy link
Copy Markdown
Member Author

Roles related tests pass:

Test to ensure 4 default roles cannot be deleted ... === TestName: test_default_role_deletion | Status : SUCCESS ===
ok
Test to check role, role permissions and account life cycles ... === TestName: test_role_account_acls | Status : SUCCESS ===
ok
Test for role-rule enforcement in case of multiple mgmt servers ... === TestName: test_role_account_acls_multiple_mgmt_servers | Status : SUCCESS ===
ok
Test to ensure role in use cannot be deleted ... === TestName: test_role_inuse_deletion | Status : SUCCESS ===
ok
Tests normal lifecycle operations for roles ... === TestName: test_role_lifecycle_create | Status : SUCCESS ===
ok
Tests role update ... === TestName: test_role_lifecycle_delete | Status : SUCCESS ===
ok
Tests that default four roles exist ... === TestName: test_role_lifecycle_list | Status : SUCCESS ===
ok
Tests role update ... === TestName: test_role_lifecycle_update | Status : SUCCESS ===
ok
Tests role update when role is in use by an account ... === TestName: test_role_lifecycle_update_role_inuse | Status : SUCCESS ===
ok
Tests concurrent order updation of role permission ... === TestName: test_rolepermission_lifecycle_concurrent_updates | Status : SUCCESS ===
ok
Tests creation of role permission ... === TestName: test_rolepermission_lifecycle_create | Status : SUCCESS ===
ok
Tests deletion of role permission ... === TestName: test_rolepermission_lifecycle_delete | Status : SUCCESS ===
ok
Tests listing of default role's permission ... === TestName: test_rolepermission_lifecycle_list | Status : SUCCESS ===
ok
Tests order updation of role permission ... === TestName: test_rolepermission_lifecycle_update | Status : SUCCESS ===
ok
Tests update of Allow to Deny permission of a rule ... === TestName: test_rolepermission_lifecycle_update_permission | Status : SUCCESS ===
ok
Tests negative test for setting incorrect value as permission ... === TestName: test_rolepermission_lifecycle_update_permission_negative | Status : SUCCESS ===
ok

----------------------------------------------------------------------
Ran 16 tests in 33.095s

@DaanHoogland DaanHoogland reopened this Feb 5, 2018
@apache apache deleted a comment from blueorangutan Feb 5, 2018
@apache apache deleted a comment from blueorangutan Feb 5, 2018
@blueorangutan

Copy link
Copy Markdown

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@DaanHoogland DaanHoogland reopened this Feb 6, 2018
@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@DaanHoogland DaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code seems to do what it says

@apache apache deleted a comment from blueorangutan Feb 6, 2018
@apache apache deleted a comment from borisstoyanov Feb 6, 2018
@apache apache deleted a comment from blueorangutan Feb 6, 2018
@apache apache deleted a comment from blueorangutan Feb 6, 2018
@apache apache deleted a comment from borisstoyanov Feb 6, 2018
@apache apache deleted a comment from blueorangutan Feb 6, 2018
@apache apache deleted a comment from blueorangutan Feb 6, 2018
@apache apache deleted a comment from blueorangutan Feb 7, 2018
@apache apache deleted a comment from blueorangutan Feb 7, 2018
@apache apache deleted a comment from borisstoyanov Feb 7, 2018
@apache apache deleted a comment from blueorangutan Feb 7, 2018
@yadvr

yadvr commented Feb 7, 2018

Copy link
Copy Markdown
Member Author

@blueorangutan package

@apache apache deleted a comment from blueorangutan Feb 7, 2018
@apache apache deleted a comment from blueorangutan Feb 7, 2018
@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1692

@apache apache deleted a comment from blueorangutan Feb 8, 2018
@apache apache deleted a comment from blueorangutan Feb 8, 2018
@apache apache deleted a comment from borisstoyanov Feb 8, 2018
@yadvr

yadvr commented Feb 8, 2018

Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-2240)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 27361 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2444-t2240-kvm-centos7.zip
Smoke tests completed. 67 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@borisstoyanov borisstoyanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DaanHoogland
DaanHoogland merged commit 0befb2c into apache:4.11 Feb 9, 2018
asfgit pushed a commit that referenced this pull request Feb 9, 2018
CLOUDSTACK-10269: On deletion of role set name to null (#2444)
CLOUDSTACK-10146 checksum in java instead of script (#2405)
CLOUDSTACK-10222: Clean snaphosts from primary storage when taking (#2398)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants