Uh oh!
There was an error while loading. Please reload this page.
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??
yadvr
commented
Mar 6, 2021
@blueorangutan package |
blueorangutan
commented
Mar 6, 2021
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Mar 6, 2021
Packaging result: ✖centos7 ✖centos8 ✖debian. JID-2880 |
yadvr
commented
Jun 17, 2021
@ravening can you investigate the build failure, I'll rekick as well |
blueorangutan
commented
Jun 17, 2021
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jun 17, 2021
Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 254 |
sureshanaparti
commented
Jun 24, 2021
@blueorangutan test |
blueorangutan
commented
Jun 24, 2021
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Jun 24, 2021
Trillian Build Failed (tid-1092) |
davidjumani
commented
Jul 19, 2021
@blueorangutan package |
blueorangutan
commented
Jul 19, 2021
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jul 19, 2021
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 583 |
davidjumani
commented
Jul 19, 2021
@ravening Can you fix the conflicts ? Thanks |
nvazquez
commented
Jul 27, 2021
Hi @ravening can you please fix the conflicts? |
yadvr
commented
Aug 9, 2021
ping @ravening |
ravening
commented
Aug 18, 2021
@rhtyd @nvazquez@davidjumani done |
Uh oh!
There was an error while loading. Please reload this page.
nvazquez
commented
Aug 19, 2021
@blueorangutan package |
blueorangutan
commented
Aug 19, 2021
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Aug 19, 2021
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 922 |
nvazquez
commented
Aug 19, 2021
@blueorangutan test |
blueorangutan
commented
Sep 3, 2021
Trillian test result (tid-1958)
|
yadvr
commented
Sep 15, 2021
@ravening can you review and fix the failing project related smoketests? |
yadvr
commented
Sep 22, 2021
Ping @ravening |
yadvr
commented
Sep 22, 2021
@blueorangutan package |
blueorangutan
commented
Sep 22, 2021
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 22, 2021
Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✖️ suse15. SL-JID 1364 |
ravening
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
1845d02Compareravening
commented
Sep 23, 2021
@rhtyd @nvazquez fixed travis issues.. can you trigger it again? |
weizhouapache
commented
Sep 23, 2021
@blueorangutan package |
blueorangutan
commented
Sep 23, 2021
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Sep 23, 2021
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1375 |
sureshanaparti
commented
Sep 24, 2021
@blueorangutan test |
blueorangutan
commented
Sep 24, 2021
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Sep 24, 2021
Trillian Build Failed (tid-2191) |
sureshanaparti
commented
Sep 24, 2021
@blueorangutan test |
blueorangutan
commented
Sep 24, 2021
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
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?