Provide option to force delete the project - #4617
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.
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??
|
@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 |
commented
Aug 19, 2021
|
@blueorangutan package |
commented
Aug 19, 2021
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
commented
Aug 19, 2021
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 922 |
commented
Aug 19, 2021
|
@blueorangutan test |
commented
Sep 3, 2021
|
Trillian test result (tid-1958)
|
commented
Sep 15, 2021
|
@ravening can you review and fix the failing project related smoketests? |
commented
Sep 22, 2021
|
Ping @ravening |
commented
Sep 22, 2021
|
@blueorangutan package |
commented
Sep 22, 2021
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
commented
Sep 22, 2021
|
Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✖️ suse15. SL-JID 1364 |
commented
Sep 23, 2021
@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
commented
Sep 23, 2021
|
@rhtyd @nvazquez fixed travis issues.. can you trigger it again? |
commented
Sep 23, 2021
|
@blueorangutan package |
commented
Sep 23, 2021
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
commented
Sep 23, 2021
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1375 |
commented
Sep 24, 2021
|
@blueorangutan test |
commented
Sep 24, 2021
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
commented
Sep 24, 2021
|
Trillian Build Failed (tid-2191) |
commented
Sep 24, 2021
|
@blueorangutan test |
commented
Sep 24, 2021
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
commented
Sep 24, 2021
|
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?