** Also affects: cloud-images
   Importance: Undecided
       Status: New

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

Title:
  DataSourceNotFoundException - cloud-init fails for cloud-images VHD
  image with nova-hyperv as compute

Status in cloud-images:
  New
Status in cloud-init:
  New

Bug description:
  I tried using the VHD image from the https://cloud-
  images.ubuntu.com/releases/trusty/release/ with the nova-hyperv charm
  deployed for compute, and cloud-init fails:

  In the console.log for the instance on the nova-hyperv unit, I see this error:
   
   * Stopping System V runlevel compatibility^[[74G[ OK ]^M^M
  Can not apply stage final, no datasource found! Likely bad things to come!^M
  ------------------------------------------------------------^M
  Traceback (most recent call last):^M
    File "/usr/bin/cloud-init", line 318, in main_modules^M
      init.fetch()^M
    File "/usr/lib/python2.7/dist-packages/cloudinit/stages.py", line 308, in 
fetch^M
      return self._get_data_source()^M
    File "/usr/lib/python2.7/dist-packages/cloudinit/stages.py", line 236, in 
_get_data_source^M
      pkg_list)^M
    File "/usr/lib/python2.7/dist-packages/cloudinit/sources/__init__.py", line 
263, in find_source^M
      raise DataSourceNotFoundException(msg)^M
  DataSourceNotFoundException: Did not find any data source, searched classes: 
()^M
  ------------------------------------------------------------^M
  ^M^M

  This was recreated by Cloudbase, and this was their observation:

  "So apparently the trusty VHD image from cloud-images 
(https://cloud-images.ubuntu.com/releases/trusty/release/) does not have 
cloud-init configured for OpenStack.
  Wondering if that’s on purpose because the cloud image description says 
"HyperV images for use with Microsoft Azure or SCVMM".
   
  So I ended up converting the Qcow2 trusty cloud image (which I knew it is 
working with OpenStack) into VHDx:
   
  qemu-img convert -f qcow2 -O vhdx trusty-server-cloudimg-amd64-disk1.img 
trusty-server-cloudimg-amd64-disk1.vhdx
   
  And upload it into glance:
   
        glance image-create –name trusty-hyperv --file 
./trusty-server-cloudimg-amd64-disk1.vhdx --disk-format vhd --container-format 
bare –progress
   
  And then boot a VM and everything went fine. I was able to ping/SSH the VM."

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to