VMware: post custom script isn't run correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Undecided
|
Xiaofeng Wang |
Bug Description
In DataSouceOVF.py, it could launch the user defined script before the customization and after the customization. In current design, the post customization script is added as the rc.local service and launched after the VM reboot. But actually the cloud-init doesn't need to reboot the VM, so the post customization script is not launched as we expected. We need to leverage the cc_scripts_
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: evince (not installed)
ProcVersionSign
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Jun 18 08:58:04 2019
InstallationDate: Installed on 2018-08-03 (319 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.3)
ProcEnviron:
TERM=linux
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: evince
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Ryan Harper: Approve
-
Diff: 363 lines (+111/-155)3 files modifiedcloudinit/sources/DataSourceOVF.py (+6/-1)
cloudinit/sources/helpers/vmware/imc/config_custom_script.py (+42/-101)
tests/unittests/test_vmware/test_custom_script.py (+63/-53)
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Xiaofeng Wang (xiaofengw) |
no longer affects: | evince (Ubuntu) |
Changed in cloud-init: | |
status: | New → Fix Released |
Codes are under review: https:/ /code.launchpad .net/~xiaofengw /cloud- init/+git/ cloud-init/ +merge/ 368902