-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Provide option to force delete the project #4617
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
| List<NetworkVO> networks = _networkDao.listByOwner(project.getProjectAccountId()); | ||
| List<? extends Vpc> vpcs = _vpcMgr.getVpcsForAccount(project.getProjectAccountId()); | ||
|
|
||
| Optional<String> message = Stream.of(userTemplates, vmSnapshots, vms, volumes, networks, vpcs) |
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.
Overall, LGTM. But would it be better, if we could inform the user about all the resources that are tied to the project as opposed to the first one that's found - by doing something like this:
List<String> message = Stream.of(userTemplates, vmSnapshots, vms, volumes, networks, vpcs)
.filter(entity -> !entity.isEmpty())
.map(entity -> entity.size() + " " + entity.get(0).getEntityType().getSimpleName())
.collect(Collectors.toList());
...
String msg = String.join(",", message) + " to clean up";
CloudRuntimeException e = new CloudRuntimeException("Can't delete the project yet because it has " + msg);
...
Such that the end error would look like:
Or is this too much info??
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.
@Pearl1594 I can do that
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-2880 |
|
@ravening can you investigate the build failure, I'll rekick as well |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 254 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-1092) |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 583 |
|
@ravening Can you fix the conflicts ? Thanks |
|
Hi @ravening can you please fix the conflicts? |
|
ping @ravening |
7b1bf04 to
df66682
Compare
|
@rhtyd @nvazquez @davidjumani done |
api/src/main/java/org/apache/cloudstack/api/command/user/project/DeleteProjectCmd.java
Outdated
Show resolved
Hide resolved
weizhouapache
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.
code lgtm
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 922 |
|
@blueorangutan test |
|
Trillian test result (tid-1958)
|
|
@ravening can you review and fix the failing project related smoketests? |
|
Ping @ravening |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✖️ suse15. SL-JID 1364 |
@rhtyd will look into it |
be deleted only when there are no resources left in the project. If users click on delete project by mistake then everything is deleted.
df66682 to
1845d02
Compare
|
@rhtyd @nvazquez fixed travis issues.. can you trigger it again? |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1375 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-2191) |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2193)
|

Description
Provide a cleanup flag so that the project will
be deleted only when there are no resources left
in the project. If users click on delete project
by mistake then everything is deleted.
Ui changes ported from apache/cloudstack-primate#848
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?