-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add API command remove management server #10325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
api/src/main/java/org/apache/cloudstack/api/command/admin/management/RemoveMgmtCmd.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/api/command/admin/management/RemoveMgmtCmd.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/api/command/admin/management/RemoveMgmtCmd.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
|
@nicoschmdt, apparently the |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
093efee to
f5e79d9
Compare
|
@blueorangutan package |
|
@bernardodemarco a [SL] 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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12343 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10325 +/- ##
============================================
+ Coverage 16.57% 16.71% +0.13%
- Complexity 13868 14144 +276
============================================
Files 5719 5731 +12
Lines 507178 517729 +10551
Branches 61571 66058 +4487
============================================
+ Hits 84085 86536 +2451
- Misses 413674 421532 +7858
- Partials 9419 9661 +242
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
api/src/main/java/org/apache/cloudstack/api/command/admin/management/RemoveMgmtCmd.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
329a111 to
84fe078
Compare
bernardodemarco
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
|
@blueorangutan package |
|
@JoaoJandre a [SL] 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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 12461 |
|
@JoaoJandre could we run package again? |
|
@nicoschmdt you do not need any permission to run package |
|
@blueorangutan package |
|
@nicoschmdt a [SL] 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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12490 |
.../main/java/org/apache/cloudstack/api/command/admin/management/RemoveManagementServerCmd.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/cloudstack/api/command/admin/management/RemoveManagementServerCmd.java
Outdated
Show resolved
Hide resolved
.../main/java/org/apache/cloudstack/api/command/admin/management/RemoveManagementServerCmd.java
Show resolved
Hide resolved
.../main/java/org/apache/cloudstack/api/command/admin/management/RemoveManagementServerCmd.java
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/server/ManagementServerImpl.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Bernardo De Marco Gonçalves <[email protected]>
Co-authored-by: Fabricio Duarte <[email protected]>
…gement/RemoveManagementServerCmd.java Co-authored-by: Fabricio Duarte <[email protected]>
dcdecf7 to
fb3e7de
Compare
|
@blueorangutan package |
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13665 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13505)
|
|
@winterhazel , is this alright by you now? |
@DaanHoogland yup, its good for me. |
winterhazel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some basic testing by attempting to remove an Up and a Down MS. The latter was removed, and the former was not (expected).
|
closing to re-kick gha |
|
Merging based on approvals and CI result (#10325 (comment)) |
* Add API command remove management server * Apply suggestions from code review Co-authored-by: Bernardo De Marco Gonçalves <[email protected]> * Apply sugestions from code review * Update log message with current management server state Co-authored-by: Bernardo De Marco Gonçalves <[email protected]> * Apply suggestions from code review Co-authored-by: Fabricio Duarte <[email protected]> * Update api/src/main/java/org/apache/cloudstack/api/command/admin/management/RemoveManagementServerCmd.java Co-authored-by: Fabricio Duarte <[email protected]> * Remove unused imports --------- Co-authored-by: Bernardo De Marco Gonçalves <[email protected]> Co-authored-by: Fabricio Duarte <[email protected]>
Description
This PR adds a command to mark a Management Server as removed on the database only if its status is marked as
Down. To execute the command, it is obligatory to inform theidof the targeted MS.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
In a local lab, I added an MS through the database.
remove managementserver id=<uuid>and verified that the MS wasn't being listed on the UI and was marked asRemovedon the database.http://<IP>:8080/client/api?command=removeManagementServer&response=json&id=<UUID>and verified the MS was marked as removed and wasn't being listed on the UI.