yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36309
[Bug 1479988] [NEW] AttributeError: 'ResolvConf' object has no attribute 'encode'
Public bug reported:
Seeing the following on a rhel6 rpm build of cloud-init:
Probably due to encoding tweaks recently done,
2015-07-30 21:17:28,151 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceConfigDrive.DataSourceConfigDrive'> failed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cloudinit/sources/_init_.py", line 255, in find_source
if s.get_data():
File "/usr/lib/python2.6/site-packages/cloudinit/sources/DataSourceConfigDrive.py", line 120, in get_data
on_first_boot(results, distro=self.distro)
File "/usr/lib/python2.6/site-packages/cloudinit/sources/DataSourceConfigDrive.py", line 215, in on_first_boot
distro.apply_network(net_conf)
File "/usr/lib/python2.6/site-packages/cloudinit/distros/_init_.py", line 122, in apply_network
dev_names = self._write_network(settings)
File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel.py", line 102, in _write_network
nameservers, searchservers)
File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel_util.py", line 84, in update_resolve_conf_file
util.write_file(fn, r_conf, 0o644)
File "/usr/lib/python2.6/site-packages/cloudinit/util.py", line 1625, in write_file
content = encode_text(content)
File "/usr/lib/python2.6/site-packages/cloudinit/util.py", line 93, in encode_text
return text.encode(encoding)
AttributeError: 'ResolvConf' object has no attribute 'encode'
** Affects: cloud-init
Importance: Undecided
Assignee: Joshua Harlow (harlowja)
Status: New
** Changed in: cloud-init
Assignee: (unassigned) => Joshua Harlow (harlowja)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1479988
Title:
AttributeError: 'ResolvConf' object has no attribute 'encode'
Status in cloud-init:
New
Bug description:
Seeing the following on a rhel6 rpm build of cloud-init:
Probably due to encoding tweaks recently done,
2015-07-30 21:17:28,151 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceConfigDrive.DataSourceConfigDrive'> failed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cloudinit/sources/_init_.py", line 255, in find_source
if s.get_data():
File "/usr/lib/python2.6/site-packages/cloudinit/sources/DataSourceConfigDrive.py", line 120, in get_data
on_first_boot(results, distro=self.distro)
File "/usr/lib/python2.6/site-packages/cloudinit/sources/DataSourceConfigDrive.py", line 215, in on_first_boot
distro.apply_network(net_conf)
File "/usr/lib/python2.6/site-packages/cloudinit/distros/_init_.py", line 122, in apply_network
dev_names = self._write_network(settings)
File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel.py", line 102, in _write_network
nameservers, searchservers)
File "/usr/lib/python2.6/site-packages/cloudinit/distros/rhel_util.py", line 84, in update_resolve_conf_file
util.write_file(fn, r_conf, 0o644)
File "/usr/lib/python2.6/site-packages/cloudinit/util.py", line 1625, in write_file
content = encode_text(content)
File "/usr/lib/python2.6/site-packages/cloudinit/util.py", line 93, in encode_text
return text.encode(encoding)
AttributeError: 'ResolvConf' object has no attribute 'encode'
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1479988/+subscriptions
Follow ups