cloudstack-mirror/server/src/main/java/com/cloud
Wei Zhou 58a3f90a51
server: fix failed to remove template/iso if upload from local fails (#4626)
* server: fix failed to remove template/iso if upload from local fails

When upload template/iso/volume from local fails, the install_path will not be a full path of file so removing it will fail.

```
mysql> select install_path from template_store_ref;
+--------------------------------------------------------------------+
| install_path                                                       |
+--------------------------------------------------------------------+
| template/tmpl/1/3/805f4763-248e-40ec-b79a-b868cc480d0a.qcow2       |
| template/tmpl/1/4/c7e32c9e-5e72-3726-85cf-aa5ccd84118d.qcow2       |
| template/tmpl/2/201/bc4f4f08-138a-31b8-af1a-d4450eff7982.qcow2     |
| template/tmpl/2/202                                                |
| template/tmpl/2/203/203-2-d47f8cde-a2a8-31e7-a826-2628ad98a6c8.iso |
| template/tmpl/2/204                                                |
| template/tmpl/5/205                                                |
| template/tmpl/2/206                                                |
| template/tmpl/2/207                                                |
| template/tmpl/2/208                                                |
| template/tmpl/2/209                                                |
| template/tmpl/2/210                                                |
+--------------------------------------------------------------------+
12 rows in set (0.00 sec)

mysql> select install_path from volume_store_ref;
+---------------------------------------------------------+
| install_path                                            |
+---------------------------------------------------------+
| volumes/2/22                                            |
| volumes/2/19/f93face9-6521-4184-b89a-cb07f86bbae8.qcow2 |
| volumes/2/23                                            |
| volumes/2/24                                            |
+---------------------------------------------------------+
4 rows in set (0.00 sec)
```

* server: disallow removing template/iso in NotUpload and UploadInProgress state
2021-03-06 14:53:40 +05:30
..
account CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
acl refactoring: fixed comment typo 2019-05-30 16:55:28 +05:30
agent/manager Merge release branch 4.13 to master 2020-04-11 16:45:00 +02:00
alert server: Fix update capacity for hosts take long time if there are many service offerings (#4623) 2021-02-04 14:43:57 +05:30
api server: add possibility to scale vm to current customer offerings (#4622) 2021-02-01 14:14:48 +05:30
async CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
capacity server: Fix update capacity for hosts take long time if there are many service offerings (#4623) 2021-02-04 14:43:57 +05:30
configuration server: Fix some cpuspeed issues while create service offering (#4376) 2020-10-13 11:32:16 +02:00
consoleproxy Enable Direct Download for System VMs (#3731) 2020-02-26 13:38:31 +01:00
dc CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
deploy server: check guest os preference of last host when start a vm (#4338) 2020-09-29 12:45:29 +05:30
event CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
ha Rename max.retries setting (#3960) 2020-03-13 19:57:45 +01:00
hypervisor NPE fix for System VM's start Command (#3985) 2020-03-25 10:01:13 +01:00
metadata CLOUDSTACK-10105: Use maven standard project structure in all projects (#2283) 2018-01-20 03:19:27 +05:30
network vpc vr: plugin nics by this order: public/private/guest 2020-12-03 15:10:43 +01:00
projects master: travis and trillian smoketests fixes and stabilisation (#3476) 2019-07-12 17:27:49 +05:30
resource Remove cpu core from op_host_capacity when host is deleted (#4367) 2020-10-28 09:41:14 +01:00
resourcelimit New feature: Resource count (CPU/RAM) take only running vms into calculation (#3760) 2020-01-30 10:36:50 +01:00
server server: Get vm network/disk statistics and update database per host (#4601) 2021-02-04 14:44:47 +05:30
servlet Better tracking host maintanence and handling of migration jobs (#3425) 2019-12-19 16:36:20 +01:00
storage kvm: Prevent KVM from performing volume migrations of running instances (#4562) 2021-02-19 14:34:28 +05:30
tags api: snapshot, snapshotpolicy tag support (#3228) 2019-06-27 09:21:08 +05:30
template server: fix failed to remove template/iso if upload from local fails (#4626) 2021-03-06 14:53:40 +05:30
test Add missing HA config keys (#3776) (#3814) 2020-01-15 12:24:05 +01:00
usage CloudStack Backup & Recovery Framework (#3553) 2020-03-03 13:27:58 +01:00
user Merge branch '4.13' 2020-02-26 16:18:41 +01:00
uuididentity CLOUDSTACK-9781: record resource uuid in events instead of integer id (#1940) 2018-05-03 16:32:00 +05:30
vm server: prevent update vm read-only details (#4629) 2021-02-02 08:49:25 +00:00