mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 10217 - cloud-setup-management seems to be not checking for fqdn hostname
status 10217: resolved fixed
This commit is contained in:
parent
e34d044668
commit
008146a6b0
@ -11,6 +11,11 @@ class cloudManagementConfig(serviceCfgBase):
|
|||||||
self.serviceName = "CloudStack Management Server"
|
self.serviceName = "CloudStack Management Server"
|
||||||
|
|
||||||
def config(self):
|
def config(self):
|
||||||
|
def checkHostName():
|
||||||
|
ret = bash("hostname --fqdn")
|
||||||
|
if not ret.isSuccess():
|
||||||
|
raise CloudInternalException("Cannot get hostname, 'hostname --fqdn failed'")
|
||||||
|
|
||||||
if self.syscfg.env.svrMode == "mycloud":
|
if self.syscfg.env.svrMode == "mycloud":
|
||||||
cfo = configFileOps("/usr/share/cloud/management/conf/environment.properties", self)
|
cfo = configFileOps("/usr/share/cloud/management/conf/environment.properties", self)
|
||||||
cfo.addEntry("cloud-stack-components-specification", "components-cloudzones.xml")
|
cfo.addEntry("cloud-stack-components-specification", "components-cloudzones.xml")
|
||||||
@ -83,6 +88,7 @@ class cloudManagementConfig(serviceCfgBase):
|
|||||||
bash("ln -s /etc/cloud/management/tomcat6-nonssl.conf /etc/cloud/management/tomcat6.conf")
|
bash("ln -s /etc/cloud/management/tomcat6-nonssl.conf /etc/cloud/management/tomcat6.conf")
|
||||||
|
|
||||||
#distro like sl 6.1 needs this folder, or tomcat6 failed to start
|
#distro like sl 6.1 needs this folder, or tomcat6 failed to start
|
||||||
|
checkHostName()
|
||||||
bash("mkdir /var/log/cloud-management/")
|
bash("mkdir /var/log/cloud-management/")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user