← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1445143] Re: fail to process user-data with cloud-config-archive

 

fixed in revno 1091

** Changed in: cloud-init
   Importance: Undecided => High

** Changed in: cloud-init
       Status: New => Fix Committed

** Also affects: cloud-init (Ubuntu Vivid)
   Importance: High
       Status: Confirmed

-- 
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/1445143

Title:
  fail to process user-data with cloud-config-archive

Status in Init scripts for use on cloud images:
  Fix Committed
Status in cloud-init package in Ubuntu:
  Confirmed
Status in cloud-init source package in Vivid:
  Confirmed

Bug description:
  launching an instance with this user-data causes the stack trace further below
  #cloud-config-archive:
   - content: |
       #cloud-config
       chpasswd: {expire: false}
       manage_etc_hosts: true
       password: ubuntu

  
  Apr 16 17:20:29 ubuntu [CLOUDINIT] util.py[DEBUG]: Consuming user data failed!#012Traceback (most recent call last):
  File "/usr/bin/cloud-init", line 280, in main_init
      init.consume_data(PER_ALWAYS)
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 496, in consume_data
      self._consume_userdata(frequency)
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 566, in _consume_userdata
      self._do_handlers(user_data_msg, c_handlers_list, frequency)
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 489, in _do_handlers
      walk_handlers(excluded)
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 472, in walk_handlers
      handlers.walk(data_msg, handlers.walker_callback, data=part_data)
    File "/usr/lib/python3/dist-packages/cloudinit/handlers/__init__.py", line 248, in walk
      payload = util.fully_decoded_payload(part)
    File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 126, in fully_decoded_payload
      return cte_payload.decode(charset, errors='surrogateescape')
  TypeError: decode() argument 1 must be str, not Charset

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: cloud-init 0.7.7~bzr1088-0ubuntu3 [modified: usr/lib/python3/dist-packages/cloudinit/util.py]
  ProcVersionSignature: User Name 3.19.0-14.14-generic 3.19.3
  Uname: Linux 3.19.0-14-generic x86_64
  ApportVersion: 2.17.1-0ubuntu1
  Architecture: amd64
  Date: Thu Apr 16 17:48:07 2015
  Ec2AMI: ami-000002ed
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: aki-00000002
  Ec2Ramdisk: ari-00000002
  PackageArchitecture: all
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cloud-init
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1445143/+subscriptions