RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1839662 - [ESXi][RHEL8.3][cloud-init]ERROR log in cloud-init.log after clone VM on ESXi platform
Summary: [ESXi][RHEL8.3][cloud-init]ERROR log in cloud-init.log after clone VM on ESXi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cloud-init
Version: 8.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: Eduardo Otubo
QA Contact: ldu
URL:
Whiteboard:
Depends On: 1839619 1855705
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-25 08:23 UTC by ldu
Modified: 2020-11-04 02:41 UTC (History)
10 users (show)

Fixed In Version: cloud-init-19.4-10.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1839619
Environment:
Last Closed: 2020-11-04 02:40:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
cloud-init.log (102.34 KB, text/plain)
2020-08-18 13:17 UTC, ldu
no flags Details
cloudinitlog (102.84 KB, text/plain)
2020-08-20 02:15 UTC, ldu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4650 0 None None None 2020-11-04 02:40:56 UTC

Comment 1 ldu 2020-05-25 08:26:11 UTC
After retest on RHEL8.3 compose with cloud-init-19.4-1.el8.1.noarch, after clone guest, the error log exist in cloud-init.log.
So clone this bug to RHEL8.3.

Comment 3 Rick Barry 2020-07-10 12:40:48 UTC
Setting ITR=8.3.0 and devel_ack+.

Comment 12 ldu 2020-08-18 13:17:03 UTC
Created attachment 1711721 [details]
cloud-init.log

Comment 14 ldu 2020-08-20 02:13:14 UTC
Hi Eduardo,
Retest build cloud-init-19.4-7.el8.eterrell202008191416.noarch on RHEL8.3 with kernel 4.18.0-232.el8.x86_64.
This build still not work as expected, the timezone, IP and DNS not configured right after clone VM.

There is still error and failed log in cloud-init.log.

2020-08-20 01:58:53,984 - util.py[DEBUG]: Running command ['vmware-toolbox-cmd', 'config', 'get', 'deployPkg', 'enable-custom-scripts'] with allowed return codes [0] (shell=False, capture=True)
2020-08-20 01:58:53,998 - DataSourceOVF.py[DEBUG]: Error parsing the customization Config File: name 'ProcessExecutionError' is not defined
2020-08-20 01:58:53,998 - guestcust_util.py[DEBUG]: Sending RPC command: deployPkg.update.state 4 100 /var/log/cloud-init.log
2020-08-20 01:58:53,998 - util.py[DEBUG]: Running command ['vmware-rpctool', 'deployPkg.update.state 4 100 /var/log/cloud-init.log'] with allowed return codes [0] (shell=False, capture=True)
2020-08-20 01:58:54,001 - util.py[DEBUG]: Recursively deleting /var/run/vmware-imc
2020-08-20 01:58:54,001 - handlers.py[DEBUG]: finish: init-local/search-OVF: FAIL: no local data found from DataSourceOVF
2020-08-20 01:58:54,001 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceOVF.DataSourceOVF'> failed
2020-08-20 01:58:54,001 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceOVF.DataSourceOVF'> failed
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/vmware/imc/guestcust_util.py", line 139, in get_tools_config
    (outText, _) = util.subp(cmd)
  File "/usr/lib/python3.6/site-packages/cloudinit/util.py", line 2084, in subp
    cmd=args)
cloudinit.util.ProcessExecutionError: Unexpected error while running command.
Command: ['vmware-toolbox-cmd', 'config', 'get', 'deployPkg', 'enable-custom-scripts']
Exit code: 69
Reason: -
Stdout: [deployPkg] enable-custom-scripts UNSET
Stderr:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/__init__.py", line 760, in find_source
    if s.update_metadata([EventType.BOOT_NEW_INSTANCE]):
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/__init__.py", line 649, in update_metadata
    result = self.get_data()
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/__init__.py", line 273, in get_data
    return_value = self._get_data()
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/DataSourceOVF.py", line 178, in _get_data
    vmwareImcConfigFilePath)
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/DataSourceOVF.py", line 663, in _raise_error_status
    raise error
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/DataSourceOVF.py", line 158, in _get_data
    "false")
  File "/usr/lib/python3.6/site-packages/cloudinit/sources/helpers/vmware/imc/guestcust_util.py", line 140, in get_tools_config
    except ProcessExecutionError as e:
NameError: name 'ProcessExecutionError' is not defined

I attach the detail cloud-init.log in attachment, if need any other log, please contact me freely!

BRs,
Lili Du

Comment 15 ldu 2020-08-20 02:15:52 UTC
Created attachment 1711958 [details]
cloudinitlog

Comment 19 GOS QA 2020-08-21 07:35:34 UTC
Hi, 

The issue has already been fixed, it will be effected AFTER release version of cloud-init 20.2.
Commit c6d09af67626c2f2241c64c10c9e27e8752ba87b was merged into canonical:master

There is a workaround for the versions that does not fix the issue, run cmd like 
"vmware-toolbox-cmd config set deployPkg enable-custom-scripts false" to create /etc/vmware-tools/tools.conf



Best Regards,
Cheng Cheng

Comment 28 ldu 2020-09-01 09:55:38 UTC
Verified this bug on RHEL8.3 compose with cloud-init-19.4-10.el8.
After cloned the guest with cloud-init, check the cloud-init.log file, no error, fail log.
Also check the timezone, IP, all set as specification.
so change status to verified.

Comment 31 errata-xmlrpc 2020-11-04 02:40:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: cloud-init security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4650


Note You need to log in before you can comment on or make changes to this bug.