Cloudstack cant find the distribution version

Cloudstack cant find the distribution version

Cloudstack cant find the distribution version wondering about cloud-setup-management error message Cloudstack cant find the distribution version when running cloud-setup-management on Debian Squeeze/Wheezy Linux?

Getting this error?

cloud-setup-management
Starting to configure CloudStack Management Server:
Can't find the distribution version
Traceback (most recent call last):
File "/usr/bin/cloud-setup-management", line 21, in 
syscfg = sysConfigFactory.getSysConfigFactory(glbEnv)
File "/usr/lib/python2.6/dist-packages/cloudutils/syscfg.py", line 21, in getSysConfigFactory
return sysConfigServerFactory.getServer(glbEnv)
File "/usr/lib/python2.6/dist-packages/cloudutils/syscfg.py", line 55, in getServer
return sysConfig()
TypeError: __init__() takes exactly 2 arguments (1 given)

I will explain the problem and solution shortly:

The Python Script for Cloudutils is checking which Distribution your Host is running on.
Because Cloudstack is officially supported only by Ubuntu Distro it will fail because it checks for existing file /etc/legal with entry “Ubuntu”.
So if the file doesn’t exist under /etc/ it will not find a match in Python Script and then fail with Error Message “Can’t find the distribution version”.

So if you are having Problems getting running cloud-setup-management on Debian Squeeze or Wheezy you can try this quick workaround by entering following:

echo "Ubuntu" > /etc/legal

Then rerun cloud-setup-management

I’ve also posted this workaround in the official cloudstack.org forum earlier before.

Rating: 4.0/5. From 1 vote.
Please wait...
Jules

Jules

Jules is the owner and author of ISPIRE.ME. He's a Linux System Engineer, Tech fanatic and an Open Source fan.

You may also like...

3 Responses

  1. Irie Irie says:

    Very usefull post!

    No votes yet.
    Please wait...
  2. David Nalley David Nalley says:

    So the picture you showed looks like a pretty old (2.2.x) version of CloudStack – does the same thing exist in recent 4.0 versions? If so, can you file a bug at http://issues.apache.org/jira

    Thanks

    –David

    No votes yet.
    Please wait...
    • Jules Jules says:

      Hi David,

      i’ve used the current latest stable acton release via git source (v3.0.2.). i can’t tell you but think that the recent version 4.0 is still not supporting Debian yet.

      No votes yet.
      Please wait...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.