VMware: post custom script isn't run correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| cloud-init |
Undecided
|
Unassigned | ||
| cloud-init (Ubuntu) |
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) on 2019-07-16
- Ryan Harper: Approve on 2019-07-16
-
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)
Xiaofeng Wang (xiaofengw) wrote : | #1 |
Changed in evince (Ubuntu): | |
assignee: | nobody → Xiaofeng Wang (xiaofengw) |
Xiaofeng Wang (xiaofengw) wrote : | #2 |
Ryan Harper (raharper) wrote : | #3 |
Wrong source package
Changed in evince (Ubuntu): | |
status: | New → Invalid |
Changed in cloud-init (Ubuntu): | |
assignee: | nobody → Xiaofeng Wang (xiaofengw) |
no longer affects: | evince (Ubuntu) |
This bug is fixed with commit 9c47c682 to cloud-init on branch master.
To view that commit see the following URL:
https:/
Changed in cloud-init: | |
status: | New → Fix Released |
Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package cloud-init - 19.2-0ubuntu1
---------------
cloud-init (19.2-0ubuntu1) eoan; urgency=medium
* New upstream release.
- Release 19.2 (LP: #1836921)
- net: add rfc3442 (classless static routes) to EphemeralDHCP
(LP: #1821102)
- templates/
(LP: #1836598)
- Support netplan renderer in Arch Linux [Conrad Hoffmann]
- Fix typo in publicly viewable documentation. [David Medberry]
- Add a cdrom size checker for OVF ds to ds-identify
[Pengpeng Sun] (LP: #1806701)
- VMWare: Trigger the post customization script via cc_scripts module.
[Xiaofeng Wang] (LP: #1833192)
- Cloud-init analyze module: Added ability to analyze boot events.
[Sam Gilson]
- Update debian eni network configuration location, retain Ubuntu setting
[Janos Lenart]
- net: skip bond interfaces in get_interfaces
[Stanislav Makar] (LP: #1812857)
- Fix a couple of issues raised by a coverity scan
- Add missing dsname for Hetzner Cloud datasource [Markus Schade]
- doc: indicate that netplan is default in Ubuntu now
- azure: add region and AZ properties from imds compute location metadata
- sysconfig: support more bonding options [Penghui Liao]
- cloud-init-
(LP: #1833264)
- tools/build-
- Allow identification of OpenStack by Asset Tag
[Mark T. Voelker] (LP: #1669875)
- Fix spelling error making 'an Ubuntu' consistent. [Brian Murray]
- run-container: centos: comment out the repo mirrorlist [Paride Legovini]
- netplan: update netplan key mappings for gratuitous-arp (LP: #1827238)
- freebsd: fix the name of cloudcfg VARIANT [Gonéri Le Bouder]
- freebsd: ability to grow root file system [Gonéri Le Bouder]
- freebsd: NoCloud data source support [Gonéri Le Bouder] (LP: #1645824)
-- Ryan Harper <email address hidden> Wed, 17 Jul 2019 12:43:15 -0500
Changed in cloud-init (Ubuntu): | |
status: | New → Fix Released |
Pengpeng Sun (pengpengs) wrote : | #6 |
Verified VMware post customization script worked fine with cloud-init 19.2-24 on Ubuntu16.04.6
Codes are under review: https:/ /code.launchpad .net/~xiaofengw /cloud- init/+git/ cloud-init/ +merge/ 368902