Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOM error updating hostname on centos6.x #2694

Closed
ubuntu-server-builder opened this issue May 10, 2023 · 0 comments
Closed

BOM error updating hostname on centos6.x #2694

ubuntu-server-builder opened this issue May 10, 2023 · 0 comments
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1603238

Launchpad details
affected_projects = []
assignee = harlowja
assignee_name = Joshua Harlow
date_closed = 2016-09-12T20:48:02.911107+00:00
date_created = 2016-07-14T22:53:48.362344+00:00
date_fix_committed = 2016-09-12T20:30:36.937218+00:00
date_fix_released = 2016-09-12T20:48:02.911107+00:00
id = 1603238
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1603238
milestone = 0.7.8
owner = harlowja
owner_name = Joshua Harlow
private = False
status = fix_released
submitter = harlowja
submitter_name = Joshua Harlow
tags = []
duplicates = []

Launchpad user Joshua Harlow(harlowja) wrote on 2016-07-14T22:53:48.362344+00:00

Seeing the following:

Jul 14 15:42:38 cent6-example [CLOUDINIT] util.py[DEBUG]: Failed to update the hostname to cent6-example.cloud.phx3.gdg (cent6-example)#012Traceback (most recent call last):#12 File "/usr/lib/python2.6/site-packages/cloudinit/config/cc_update_hostname.py", line 39, in handle#012 cloud.distro.update_hostname(hostname, fqdn, prev_fn)#12 File "/usr/lib/python2.6/site-packages/cloudinit/distros/init.py", line 214, in update_hostname#012 prev_hostname = self._read_hostname(prev_hostname_fn)#12 File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel.py", line 172, in _read_hostname#012 (_exists, contents) = rhel_util.read_sysconfig_file(filename)#12 File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel_util.py", line 64, in read_sysconfig_file#012 return (exists, SysConf(contents))#12 File "/usr/lib/python2.6/site-packages/cloudinit/distros/parsers/sys_conf.py", line 61, in init#12 write_empty_values=True)#12 File "/usr/lib/python2.6/site-packages/configobj.py", line 1219, in init#12 self._load(infile, configspec)#12 File "/usr/lib/python2.6/site-packages/configobj.py", line 1272, in _load#012 infile = self._handle_bom(infile)#12 File "/usr/lib/python2.6/site-packages/configobj.py", line 1422, in _handle_bom#012 if not line.startswith(BOM):#012UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)

$ rpm -qa | grep configobj
python-configobj-4.6.0-3.el6.noarch

This might be fixed in a newer configobj (probably is) but just wanted to note this here.

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant