Repository navigation
opensuse and SLES support #11358
Copy link
Copy link
Description
problem
I tried installing CloudStack 4.20.1 on opensuse 15.6, and there is an error running the command 'cloudstack-setup-management' but the service starts.
I could try another minor version of openSUSE 15 or SLES for the management server and KVM, but the release notes don't mention the supported minor version.
It would be nice to have this clarified in the release notes, as we also expect support for the latest versions of OpenSUSE and SLES for both the management server and KVM.
opensuse-mgmt1:~ # cloudstack-setup-management
Starting to configure CloudStack Management Server:
Configure CloudStack Management Server ...--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2192' in position 526: ordinal not in range(256)
Call stack:
File "/usr/bin/cloudstack-setup-management", line 67, in <module>
syscfg.config()
File "/usr/share/cloudstack-common/python-site/cloudutils/syscfg.py", line 85, in config
if not service.configuration():
File "/usr/share/cloudstack-common/python-site/cloudutils/serviceConfig.py", line 38, in configuration
result = self.config()
File "/usr/share/cloudstack-common/python-site/cloudutils/serviceConfigServer.py", line 90, in config
self.syscfg.svo.stopService("cloudstack-management")
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 181, in stopService
if self.isServiceRunning(servicename) or force:
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 172, in isServiceRunning
o = bash("service " + servicename + " status")
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 30, in __init__
self.run()
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 57, in run
logging.debug("Failed to execute:" + self.getErrMsg())
Message: 'Failed to execute:* cloudstack-management.service - CloudStack Management Server\n Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; enabled; preset: disabled)\n Drop-In: /etc/systemd/system/cloudstack-management.service.d\n `-filelimit.conf\n Active: inactive (dead)\n\nJul 31 09:55:31 opensuse-mgmt1 systemd[1]: /usr/lib/systemd/system/cloudstack-management.service:36: PIDFile= references a path below legacy directory /var/run/, updating /var/run/cloudstack-management.pid \u2192 /run/cloudstack-management.pid; please update the unit file accordingly.\nJul 31 09:55:35 opensuse-mgmt1 systemd[1]: /usr/lib/systemd/system/cloudstack-management.service:36: PIDFile= references a path below legacy directory /var/run/, updating /var/run/cloudstack-management.pid \u2192 /run/cloudstack-management.pid; please update the unit file accordingly.'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.6/logging/__init__.py", line 996, in emit
stream.write(msg)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2192' in position 526: ordinal not in range(256)
Call stack:
File "/usr/bin/cloudstack-setup-management", line 67, in <module>
syscfg.config()
File "/usr/share/cloudstack-common/python-site/cloudutils/syscfg.py", line 85, in config
if not service.configuration():
File "/usr/share/cloudstack-common/python-site/cloudutils/serviceConfig.py", line 38, in configuration
result = self.config()
File "/usr/share/cloudstack-common/python-site/cloudutils/serviceConfigServer.py", line 91, in config
if self.syscfg.svo.enableService("cloudstack-management"):
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 197, in enableService
return self.startService(servicename,force=forcestart)
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 191, in startService
if not self.isServiceRunning(servicename) or force:
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 172, in isServiceRunning
o = bash("service " + servicename + " status")
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 30, in __init__
self.run()
File "/usr/share/cloudstack-common/python-site/cloudutils/utilities.py", line 57, in run
logging.debug("Failed to execute:" + self.getErrMsg())
Message: 'Failed to execute:* cloudstack-management.service - CloudStack Management Server\n Loaded: loaded (/usr/lib/systemd/system/cloudstack-management.service; enabled; preset: disabled)\n Drop-In: /etc/systemd/system/cloudstack-management.service.d\n `-filelimit.conf\n Active: inactive (dead)\n\nJul 31 09:55:31 opensuse-mgmt1 systemd[1]: /usr/lib/systemd/system/cloudstack-management.service:36: PIDFile= references a path below legacy directory /var/run/, updating /var/run/cloudstack-management.pid \u2192 /run/cloudstack-management.pid; please update the unit file accordingly.\nJul 31 09:55:35 opensuse-mgmt1 systemd[1]: /usr/lib/systemd/system/cloudstack-management.service:36: PIDFile= references a path below legacy directory /var/run/, updating /var/run/cloudstack-management.pid \u2192 /run/cloudstack-management.pid; please update the unit file accordingly.\nJul 31 09:59:20 opensuse-mgmt1 systemd[1]: /usr/lib/systemd/system/cloudstack-management.service:36: PIDFile= references a path below legacy directory /var/run/, updating /var/run/cloudstack-management.pid \u2192 /run/cloudstack-management.pid; please update the unit file accordingly.'
Arguments: ()
[OK]
CloudStack Management Server setup is Done!
Please ensure ports 8080, 8250, 8443, and 9090 are opened and not firewalled for the management server and not in use by other processes on this host.
versions
4.20.1
The steps to reproduce the bug
What to do about it?
Expecting a proper support for openSUSE and have it clearly documented.
Reactions are currently unavailable
Activity
yadvr commentedon Jul 31, 2025
The comment on SLES is clearly mentioned in the docs that it's not tested as CloudStack management server host: https://docs.cloudstack.apache.org/en/latest/releasenotes/compat.html#supported-os-versions-for-management-server this is because SLES is like RHEL and behind paywall or licenses and not easily availalbe or accessible for community to try, test and support.
We do however, base it might work on the basis that CloudStack works on openSuse 15 (old SPs). That said wider community doesn't use SLES or openSUSE so I'm not suprised if there are cracks in its maintenance. Usually this is because of some rpm dependency which has a different name or is missing, which can be solved by editing the rpm file or doing force install, or installing rpm from a different source (like rpmfind).
vishesh92 commentedon Sep 18, 2025
I have created these 2 PRs which fixes some issues on openSUSE 15.6.
#11614 (already merged) - causing issues with system VM template registration
#11670 - fixes metrics for management server
weizhouapache commentedon Sep 24, 2025
thanks @vishesh92
will you update the compatibility matrix in doc ?
vishesh92 commentedon Sep 24, 2025
I already added it here: https://github.com/apache/cloudstack-documentation/pull/557/files
vishesh92 commentedon Sep 24, 2025
@weizhouapache do we need to backport the change to 4.20 branch in cloudstack-documentation?
weizhouapache commentedon Sep 24, 2025
but EL10 is not supported in 4.20, right ?
vishesh92 commentedon Sep 24, 2025
Correct. I will just create a new PR for SLES changes only against 4.20 branch.
weizhouapache commentedon Sep 24, 2025
good, thanks @vishesh92
weizhouapache commentedon Sep 24, 2025
doc PR by @vishesh92 : apache/cloudstack-documentation#573
weizhouapache commentedon Sep 30, 2025
fixed by #11670 and #11614