New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/db5f8f4af4e6956a6b1159c58bef049e13a026c7 commit db5f8f4af4e6956a6b1159c58bef049e13a026c7 Author: Oved Ourfali <oourfali> AuthorDate: Wed Nov 29 18:34:12 2017 +0200 Commit: Satoe Imaishi <simaishi> CommitDate: Wed Nov 29 12:07:55 2017 -0500 Merge pull request #159 from jhernand/handle_correctly_cloud_init_script Handle correctly custom cloud-init script (cherry picked from commit 8b45e7f704cdd5355f4502ed3c44ef8731bb9831) https://bugzilla.redhat.com/show_bug.cgi?id=1518878 .../infra_manager/ovirt_services/strategies/v4.rb | 33 +++-- .../strategies/update_cloud_init_spec.rb | 161 +++++++++++++++++++++ 2 files changed, 184 insertions(+), 10 deletions(-) create mode 100644 spec/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/update_cloud_init_spec.rb
Verified on CFME-5.9.0.12/RHV-4.1.8. * Template for provision: using CFME-5.9.0.11 Template (OS type:RHEL-7), cloud-init 0.7.9. * Customization Template: Using CFME: Compute->Infrastructure->PXE: Customization Template (Image Type: RHEL-6, Type:CloudInit), with content: write_files: - path: "/tmp/test.txt" content: Here is a line. Test flow: On CFME, run VM provision from Template (CFME-5.9.0.11), Native, in the Customize tab choose the above customization template. Test results: Script was passed to RHV side: In Edit VM dialog: Use cloud init option is checked, and custom script contain the above Customization Template content. Also File /tmp/test.txt was created, with: "Here is a line." content.