File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ def __init__(self, syscfg):
1111 self .serviceName = "CloudStack Management Server"
1212
1313 def config (self ):
14+ def checkHostName ():
15+ ret = bash ("hostname --fqdn" )
16+ if not ret .isSuccess ():
17+ raise CloudInternalException ("Cannot get hostname, 'hostname --fqdn failed'" )
18+
1419 if self .syscfg .env .svrMode == "mycloud" :
1520 cfo = configFileOps ("/usr/share/cloud/management/conf/environment.properties" , self )
1621 cfo .addEntry ("cloud-stack-components-specification" , "components-cloudzones.xml" )
@@ -83,6 +88,7 @@ def config(self):
8388 bash ("ln -s /etc/cloud/management/tomcat6-nonssl.conf /etc/cloud/management/tomcat6.conf" )
8489
8590 #distro like sl 6.1 needs this folder, or tomcat6 failed to start
91+ checkHostName ()
8692 bash ("mkdir /var/log/cloud-management/" )
8793
8894 try :
You can’t perform that action at this time.
0 commit comments