cloudstack/api/src/com/cloud
Rohit Yadav acc5fdcdbd
CLOUDSTACK-10290: allow config drives on primary storage for KVM (#2651)
This introduces a new global setting `vm.configdrive.primarypool.enabled` to toggle creation/hosting of config drive iso files on primary storage, the default will be false causing them to be hosted on secondary storage. The current support is limited from hypervisor resource side and in current implementation limited to `KVM` only. The next big change is that config drive is created at a temporary location by management server and shipped to either KVM or SSVM agent via cmd-answer pattern, the data of which is not logged in logs. This saves us from adding genisoimage dependency on cloudstack-agent pkg.

The APIs to reset ssh public key, password and user-data (via update VM API) requires that VM should be shutdown. Therefore, in the refactoring I removed the case of updation of existing ISO. If there are objections I'll re-put the strategy to detach+attach new config iso as a way of updation. In the refactored implementation, the folder name is changed to lower-cased configdrive. And during VM start, migration or shutdown/removal if primary storage is enable for use, the KVM agent will handle cleanup tasks otherwise SSVM agent will handle them.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2018-05-21 14:27:23 +05:30
..
agent CLOUDSTACK-9677: Adding storage policy support for swift as secondary storage (#2412) 2018-04-26 00:42:15 +02:00
alert All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
api/commands Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
capacity CLOUDSTACK-9997: Add cpu cores information in CapacityResponse 2017-07-22 11:26:37 +02:00
configuration backports for 4.11.1 from master (#2621) 2018-05-09 15:20:19 +05:30
consoleproxy Removed schema from the dependency of many components 2013-07-29 10:55:19 -07:00
dc CLOUDSTACK-9880: Expansion of Management IP Range. (#2048) 2017-12-20 08:36:53 +00:00
deploy Host Affinity plugin (#2630) 2018-05-21 12:49:08 +05:30
domain Removed getUUID() method from Domain interface as this interface already implements @Identity where getUUID is defined 2014-03-13 12:54:13 -07:00
event CLOUDSTACK-10231: Asserted fixes for Direct Download on KVM (#2408) 2018-03-20 19:24:46 +05:30
exception backports for 4.11.1 from master (#2621) 2018-05-09 15:20:19 +05:30
gpu CLOUDSTACK-9046 rename enums to adhere to naming conventions 2015-11-16 13:41:16 +00:00
ha Boolean -> boolean 2015-03-25 22:20:40 +01:00
host CLOUDSTACK-9782: Host HA and KVM HA provider 2017-08-30 18:06:48 +02:00
hypervisor [CLOUDSTACK-9025][CLOUDSTACK-10128] solve problems of templates created based on snapshots (#2315) 2018-01-06 09:55:29 +01:00
info Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
network CLOUDSTACK-10290: allow config drives on primary storage for KVM (#2651) 2018-05-21 14:27:23 +05:30
offering CLOUDSTACK-10024: Network migration support 2017-12-21 11:25:17 +01:00
org CLOUDSTACK-9782: Host HA and KVM HA provider 2017-08-30 18:06:48 +02:00
projects Revert "CLOUDSTACK-5872: Async response from addAccountToProject doesn't contain useful information" 2014-03-03 12:44:08 -08:00
region/ha All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
resource CLOUDSTACK-9782: Host HA and KVM HA provider 2017-08-30 18:06:48 +02:00
serializer CLOUDSTACK-8485: listAPIs are taking too long to return results 2015-11-20 16:40:53 +05:30
server Cloudstack 10170: Fix resource tags security bugs and add account tags support (#2350) 2018-01-09 13:55:34 +05:30
storage Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00
template CLOUDSTACK-4757: Support OVA files with multiple disks for templates (#2146) 2018-01-10 22:10:41 +05:30
user CLOUDSTACK-10188 - Resource Accounting for primary storage is Broken when Domains are in use (#2362) 2018-01-10 22:11:26 +05:30
uservm removed executable flags from java classes 2014-11-23 19:49:01 +01:00
vm CLOUDSTACK-4757: Support OVA files with multiple disks for templates (#2146) 2018-01-10 22:10:41 +05:30