cloudstack/engine/storage
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
..
cache Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
configdrive CLOUDSTACK-10290: allow config drives on primary storage for KVM (#2651) 2018-05-21 14:27:23 +05:30
datamotion Only use the host if its Resource State is Enabled. (#2512) 2018-03-29 17:43:22 +00:00
image Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
integration-test Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
resources/META-INF/cloudstack CLOUDSTACK-9456: Update Spring version in maven poms 2016-12-16 21:21:20 +05:30
snapshot Only use the host if its Resource State is Enabled. (#2512) 2018-03-29 17:43:22 +00:00
src/org/apache/cloudstack/storage CLOUDSTACK-10303 : Refactor test data to nuage_test_data.py runnable against simulator (#2483) 2018-03-14 17:17:36 +05:30
test/org/apache/cloudstack rats: licenses added 2015-07-07 13:48:20 +02:00
volume Fix primary storage count when deleting volumes (#2629) 2018-05-16 15:28:28 -03:00
pom.xml Updating pom.xml version numbers for release 4.11.1.0-SNAPSHOT 2018-02-26 16:57:48 +01:00
storage.ucls Cleanup of Xen and XenServer terms. Cloned xen plugin creating a xenserver plugin, then removed xen plugin 2014-06-07 04:50:23 -04:00