← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1214535] Re: Distro "rhel" not found

 

Hi Joshua,
    Figured out the issue ...I had some dependencies, that were not met ...specifically configobj . Sorry for the bother ...Keep up the great work ...cloud-init is a life saver!

Josh

** Changed in: cloud-init
       Status: New => Invalid

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

Title:
  Distro "rhel" not found

Status in Init scripts for use on cloud images:
  Invalid

Bug description:
  Traceback (most recent call last):
    File "/usr/bin/cloud-init", line 511, in <module>
      sys.exit(main())
    File "/usr/bin/cloud-init", line 507, in main
      get_uptime=True, func=functor, args=(name, args))
    File "/usr/lib/python2.6/site-packages/cloudinit/util.py", line 1791, in log_time
      ret = func(*args, **kwargs)
    File "/usr/bin/cloud-init", line 239, in main_init
      init.fetch()
    File "/usr/lib/python2.6/site-packages/cloudinit/stages.py", line 307, in fetch
      return self._get_data_source()
    File "/usr/lib/python2.6/site-packages/cloudinit/stages.py", line 231, in _get_data_source
      self.distro,
    File "/usr/lib/python2.6/site-packages/cloudinit/stages.py", line 81, in distro
      distro_cls = distros.fetch(distro_name)
    File "/usr/lib/python2.6/site-packages/cloudinit/distros/__init__.py", line 851, in fetch
      % (name))
  ImportError: No distribution found for distro rhel

  [root@test-102 cloud]# cloud-init --version
  cloud-init 0.7.3
  [root@test-102 cloud]#

  
  cloud.cfg has the following lines :

  system_info:
     distro: rhel

  
  [root@test-102 cloud]# cd /usr/lib/python2.6/site-packages/cloudinit/distros/
  [root@test-102 distros]# ls
  debian.py   debian.pyo  fedora.pyc  __init__.py   __init__.pyo  rhel.py   rhel.pyo      rhel_util.pyc  sles.py   sles.pyo   ubuntu.pyc
  debian.pyc  fedora.py   fedora.pyo  __init__.pyc  parsers       rhel.pyc  rhel_util.py  rhel_util.pyo  sles.pyc  ubuntu.py  ubuntu.pyo
  [root@test-102 distros]#

  
  I think I have everything setup correctly ...

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