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.

Jules

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

View Comments

Recent Posts

HTTP/2 SSL Offloading with Hitch and Varnish

HTTP/2 SSL Offloading with Hitch and Varnish Since Chrome browsers showing you insecure warning on…

7 years ago

File changed as we read it GlusterFS issue

File changed as we read it GlusterFS issue Recently i had trouble running Backups of…

7 years ago

Running multiple instances of varnish using systemd

Running multiple instances of varnish using systemd If you have not yet found a complete…

7 years ago

HTTP/2 SSL Offloading with Haproxy and Nginx

HTTP/2 SSL Offloading with Haproxy and Nginx After HTTP/2 becoming more an more prominent regarding SSL…

7 years ago

Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for

Get Real IP with Haproxy Tomcat Jira Confluence using x-forwarded-for Everyone knows the Problem. Get…

7 years ago

Review TDS2 How to backtest using tick data with Metatrader 4

Review TDS2 How to backtest using tick data with Metatrader 4 in this Review TDS2…

8 years ago

This website uses cookies.