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 1631167 - [Azure][cloud-init] cloud-init failed to write instance-data.json file
Summary: [Azure][cloud-init] cloud-init failed to write instance-data.json file
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: cloud-init
Version: 7.6
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Eduardo Otubo
QA Contact: Yuhui Jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-20 07:01 UTC by Yuhui Jiang
Modified: 2024-11-20 07:53 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-23 07:09:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yuhui Jiang 2018-09-20 07:01:38 UTC
Description of problem:
cloud-init failed to write instance-data.json file, and print an error log in it's log file(/var/log/cloud-init.log).

Version-Release number of selected component (if applicable): 
cloud-init-0.7.9-24.el7 and cloud-init-18.2-1.el7 both have this issue


RHEL Version: 
RHEL-7.6

How reproducible: 
100%

Steps to Reproduce: 
1. Create an vm with cloud-init installed
2. Log in the vm check cloud-init's log

Actual results: 
you will find an error log record in the file,like this

2018-09-17 08:14:32,488 - util.py[DEBUG]: Read 1222 bytes from /proc/self/status
2018-09-17 08:14:32,488 - util.py[DEBUG]: querying dmi data /sys/class/dmi/id/product_uuid
2018-09-17 08:14:32,488 - util.py[DEBUG]: Reading from /sys/class/dmi/id/product_uuid (quiet=False)
2018-09-17 08:14:32,488 - util.py[DEBUG]: Read 37 bytes from /sys/class/dmi/id/product_uuid
2018-09-17 08:14:32,488 - util.py[DEBUG]: dmi data /sys/class/dmi/id/product_uuid returned D454B593-F900-4849-A69B-8450C4E6DF3D
2018-09-17 08:14:32,489 - __init__.py[WARNING]: Error persisting instance-data.json: 'utf8' codec can't decode byte 0x8e in position 9: invalid start byte
2018-09-17 08:14:32,490 - handlers.py[DEBUG]: finish: init-local/search-Azure: SUCCESS: found local data from DataSourceAzure
2018-09-17 08:14:32,490 - stages.py[INFO]: Loaded datasource DataSourceAzure - DataSourceAzure [seed=/dev/sr0]
2018-09-17 08:14:32,491 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False)

Expected results: 
Should not print error log in log file and successfully writing data to instance-data.json(/run/cloud-init/instance-data.json) file


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