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.
Very usefull post!
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
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.