Skip to content

ldap trust map cleanup on domain delete#7915

Merged
DaanHoogland merged 9 commits into
apache:4.18from
DaanHoogland:6752-ldap-mapping-leftover-when-subdomain-is-deleted
Sep 19, 2023
Merged

ldap trust map cleanup on domain delete#7915
DaanHoogland merged 9 commits into
apache:4.18from
DaanHoogland:6752-ldap-mapping-leftover-when-subdomain-is-deleted

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

Description

This PR...

Fixes: #6752

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@DaanHoogland DaanHoogland added this to the 4.18.1.0 milestone Aug 28, 2023
Comment thread server/src/main/java/com/cloud/user/AccountManagerImpl.java Outdated
@DaanHoogland DaanHoogland force-pushed the 6752-ldap-mapping-leftover-when-subdomain-is-deleted branch from 6ccbf7a to 4396526 Compare August 28, 2023 12:11
@DaanHoogland DaanHoogland marked this pull request as ready for review August 28, 2023 12:51
@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@codecov

codecov Bot commented Aug 28, 2023

Copy link
Copy Markdown

Codecov Report

Merging #7915 (28f64da) into 4.18 (439d70f) will increase coverage by 0.00%.
Report is 10 commits behind head on 4.18.
The diff coverage is 30.76%.

@@            Coverage Diff            @@
##               4.18    #7915   +/-   ##
=========================================
  Coverage     13.06%   13.06%           
- Complexity     9093     9101    +8     
=========================================
  Files          2720     2720           
  Lines        257431   257490   +59     
  Branches      40141    40147    +6     
=========================================
+ Hits          33622    33637   +15     
- Misses       219582   219623   +41     
- Partials       4227     4230    +3     
Files Changed Coverage Δ
...va/org/apache/cloudstack/ldap/LdapManagerImpl.java 4.05% <0.00%> (-0.32%) ⬇️
...c/main/java/com/cloud/user/AccountManagerImpl.java 20.47% <14.28%> (-0.01%) ⬇️
...rc/main/java/com/cloud/user/DomainManagerImpl.java 32.92% <58.06%> (+0.41%) ⬆️

... and 12 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@DaanHoogland DaanHoogland force-pushed the 6752-ldap-mapping-leftover-when-subdomain-is-deleted branch from 102549e to 81e67cb Compare August 28, 2023 14:01
@DaanHoogland DaanHoogland changed the base branch from main to 4.18 August 28, 2023 14:02
@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan package

@apache apache deleted a comment from blueorangutan Aug 28, 2023
@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@weizhouapache

Copy link
Copy Markdown
Member

verified OK

before domain removal (some mock data)

MariaDB [cloud]> select * from ldap_trust_map;
+----+-----------+------+----------------------+--------------+------------+
| id | domain_id | type | name                 | account_type | account_id |
+----+-----------+------+----------------------+--------------+------------+
|  1 |         3 | OU   | DC=CloudStack,DC=com |            2 |          0 |
|  2 |         4 | OU   | DC=CloudStack,DC=com |            2 |          0 |
|  3 |         5 | OU   | DC=CloudStack,DC=com |            2 |          0 |
+----+-----------+------+----------------------+--------------+------------+
3 rows in set (0.00 sec)

after domain removal

MariaDB [cloud]> select * from ldap_trust_map;
+----+-----------+------+----------------------+--------------+------------+
| id | domain_id | type | name                 | account_type | account_id |
+----+-----------+------+----------------------+--------------+------------+
|  1 |         3 | OU   | DC=CloudStack,DC=com |            2 |          0 |
|  2 |         4 | OU   | DC=CloudStack,DC=com |            2 |          0 |
+----+-----------+------+----------------------+--------------+------------+
2 rows in set (0.01 sec)

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6918

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6919

@weizhouapache

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6922

Comment thread server/src/main/java/com/cloud/user/AccountManagerImpl.java Outdated
@weizhouapache weizhouapache modified the milestones: 4.18.1.0, 4.18.2.0 Aug 28, 2023
@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7593)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 42969 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7915-t7593-kvm-centos7.zip
Smoke tests completed. 105 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestNetworkACL>:teardown Error 89.77 test_network_acl.py
test_02_upgrade_kubernetes_cluster Failure 532.23 test_kubernetes_clusters.py
ContextSuite context=TestNestedVirtualization>:teardown Error 2.14 test_nested_virtualization.py

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7594)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39231 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7915-t7594-kvm-centos7.zip
Smoke tests completed. 106 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestNetworkACL>:teardown Error 86.85 test_network_acl.py
ContextSuite context=TestNestedVirtualization>:teardown Error 2.15 test_nested_virtualization.py

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6953

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7618)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39688 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7915-t7618-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM didnt' test it though

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Comment thread server/src/main/java/com/cloud/user/DomainManagerImpl.java Outdated
@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7050

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan test matrix

Comment thread server/src/main/java/com/cloud/user/DomainManagerImpl.java Outdated
@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SF] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7682)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41775 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7915-t7682-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7680)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45661 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7915-t7680-xenserver-71.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7681)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 51122 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7915-t7681-vmware-67u3.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland DaanHoogland merged commit 09ae049 into apache:4.18 Sep 19, 2023
@DaanHoogland DaanHoogland deleted the 6752-ldap-mapping-leftover-when-subdomain-is-deleted branch September 19, 2023 06:01
DaanHoogland added a commit that referenced this pull request Sep 19, 2023
* 4.18:
  ldap trust map cleanup on domain delete (#7915)
  upgrade: fix upgrade from 4.18.1.0 to 4.18.2.0-SNAPSHOT (#7959)
shwstppr pushed a commit to shapeblue/cloudstack that referenced this pull request Oct 12, 2023
Co-authored-by: Wei Zhou <weizhou@apache.org>
(cherry picked from commit 09ae049)
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LDAP mapping leftover when subdomain is deleted

5 participants