cloud-init bails when any mimetype is non text

Bug #737882 reported by alexius ludeman
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Unassigned
cloud-init (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

init: cloud-init-local main process (254) terminated with status 1
cloud-init start running: Fri, 18 Mar 2011 20:54:30 +0000. up 2.25 seconds
Traceback (most recent call last):
  File "/usr/bin/cloud-init", line 196, in <module>
    main()
  File "/usr/bin/cloud-init", line 78, in main
    cloud.update_cache()
  File "/usr/lib/python2.6/dist-packages/cloudinit/__init__.py", line 278, in update_cache
    self.store_userdata()
  File "/usr/lib/python2.6/dist-packages/cloudinit/__init__.py", line 282, in store_userdata
    util.write_file(userdata, self.datasource.get_userdata(), 0600)
  File "/usr/lib/python2.6/dist-packages/cloudinit/DataSource.py", line 32, in get_userdata
    self.userdata = ud.preprocess_userdata(self.userdata_raw)
  File "/usr/lib/python2.6/dist-packages/cloudinit/UserDataHandler.py", line 120, in preprocess_userdata
    return(parts2mime(parts))
  File "/usr/lib/python2.6/dist-packages/cloudinit/UserDataHandler.py", line 104, in parts2mime
    msg = MIMEBase(maintype, subtype)
NameError: global name 'MIMEBase' is not defined

This is due a lack of import of MIMEBase

summary: - cloud-init bails when any mimetype is none text
+ cloud-init bails when any mimetype is non text
description: updated
Revision history for this message
Scott Moser (smoser) wrote :

Hi.
  Thanks for taking the time to open this bug report.
  I'm marking this fix-released, as it is fixed in 0.6.0 and later.

If you would like this fix made in an Ubuntu stable release (10.10 or 10.04), please mark it as "also affects project" then select Ubuntu, and then "nominate for release".

Changed in cloud-init:
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cloud-init (Ubuntu):
status: New → Confirmed
Scott Moser (smoser)
Changed in cloud-init (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.