2018-01-10 00:53 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0013931Cloud Instance SIGcloud-initpublic2017-09-28 06:39
Reporterjp methot 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformOpenstack RDO OcataOSCentOS 7OS Version7.4.1708
Summary0013931: Cloud-init can't resize instances anymore since update to 0.7.9
DescriptionIt appears that since the cloud-init update to 0.7.9, cloud-init can't resize our instances anymore. While some parts of it run properly, I'm getting the following error which may be linked :
2017-09-28 02:01:43,641 - util.py[WARNING]: failed stage init
2017-09-28 02:01:43,641 - util.py[DEBUG]: failed stage init
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 513, in status_wrapper
    ret = functor(name, args)
  File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 281, in main_init
    init.update()
  File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 357, in update
    self._store_vendordata()
  File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 381, in _store_vendordata
    util.write_file(self._get_ipath('vendordata_raw'), raw_vd, 0o600)
  File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 1755, in write_file
    content = encode_text(content)
  File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 154, in encode_text
    return text.encode(encoding)
AttributeError: 'dict' object has no attribute 'encode'

I suspect this is preventing the cloud_init_modules from running. More information may be found in the attached logs.
Steps To Reproduce-Provision an openstack instance with a centos image from a cinder volume.
-Update to the latest cloud-init package on the VM
-Increase the root volume size in openstack (this may be tricky as openstack doesn't normally let you do that. Need to shutdown the vm, change the volume status to available, increase the size, switch back to in-use and then start the VM)
-Once the VM is back, cloud-init will not have increased the size as it is supposed to.
Additional InformationInterestingly enough, our cloudlinux servers do not appear to have this issue.
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0030236

jp methot (reporter)

Please also note that downgrading the package solves this issue.
+Notes

-Issue History
Date Modified Username Field Change
2017-09-28 03:33 jp methot New Issue
2017-09-28 03:33 jp methot File Added: cloud-init resize log.rtf
2017-09-28 06:39 jp methot Note Added: 0030236
+Issue History