@@ -54,9 +54,9 @@ def configration(self):
5454 except :
5555 logging .debug (formatExceptionInfo ())
5656 if self .syscfg .env .mode == "Server" :
57- raise CloudRuntimeException ("Configure %s failed, Please check the /var/log/cloud /setupManagement.log for detail" % self .serviceName )
57+ raise CloudRuntimeException ("Configure %s failed, Please check the /var/log/cloudstack /setupManagement.log for detail" % self .serviceName )
5858 else :
59- raise CloudRuntimeException ("Configure %s failed, Please check the /var/log/cloud /setupAgent.log for detail" % self .serviceName )
59+ raise CloudRuntimeException ("Configure %s failed, Please check the /var/log/cloudstack /setupAgent.log for detail" % self .serviceName )
6060
6161 def backup (self ):
6262 if self .status is None :
@@ -386,7 +386,7 @@ def config(self):
386386
387387 return True
388388 except :
389- raise CloudRuntimeException ("Failed to configure apparmor, please see the /var/log/cloud /setupAgent.log for detail, \
389+ raise CloudRuntimeException ("Failed to configure apparmor, please see the /var/log/cloudstack /setupAgent.log for detail, \
390390 or you can manually disable it before starting myCloud" )
391391
392392 def restore (self ):
@@ -416,7 +416,7 @@ def config(self):
416416 cfo .replace_line ("SELINUX=" , "SELINUX=permissive" )
417417 return True
418418 except :
419- raise CloudRuntimeException ("Failed to configure selinux, please see the /var/log/cloud /setupAgent.log for detail, \
419+ raise CloudRuntimeException ("Failed to configure selinux, please see the /var/log/cloudstack /setupAgent.log for detail, \
420420 or you can manually disable it before starting myCloud" )
421421 else :
422422 return True
@@ -602,7 +602,7 @@ def __init__(self, syscfg):
602602
603603 def configMyCloud (self ):
604604 try :
605- cfo = configFileOps ("/etc/cloud /agent/agent.properties" , self )
605+ cfo = configFileOps ("/etc/cloudstack /agent/agent.properties" , self )
606606 cfo .addEntry ("host" , self .syscfg .env .mgtSvr )
607607 cfo .addEntry ("zone" , self .syscfg .env .zone )
608608 cfo .addEntry ("port" , "443" )
@@ -624,7 +624,7 @@ def configMyCloud(self):
624624
625625 def configAgent (self ):
626626 try :
627- cfo = configFileOps ("/etc/cloud /agent/agent.properties" , self )
627+ cfo = configFileOps ("/etc/cloudstack /agent/agent.properties" , self )
628628 cfo .addEntry ("host" , self .syscfg .env .mgtSvr )
629629 cfo .addEntry ("zone" , self .syscfg .env .zone )
630630 cfo .addEntry ("pod" , self .syscfg .env .pod )
@@ -639,16 +639,16 @@ def configAgent(self):
639639 cfo .addEntry ("resource" , "com.cloud.hypervisor.kvm.resource.LibvirtComputingResource" )
640640 cfo .save ()
641641
642- self .syscfg .svo .stopService ("cloud -agent" )
642+ self .syscfg .svo .stopService ("cloudstack -agent" )
643643 bash ("sleep 30" )
644- self .syscfg .svo .enableService ("cloud -agent" )
644+ self .syscfg .svo .enableService ("cloudstack -agent" )
645645 return True
646646 except :
647647 raise
648648
649649 def configConsole (self ):
650650 try :
651- cfo = configFileOps ("/etc/cloud /agent/agent.properties" , self )
651+ cfo = configFileOps ("/etc/cloudstack /agent/agent.properties" , self )
652652 cfo .addEntry ("host" , self .syscfg .env .mgtSvr )
653653 cfo .addEntry ("zone" , self .syscfg .env .zone )
654654 cfo .addEntry ("pod" , self .syscfg .env .pod )
@@ -661,8 +661,8 @@ def configConsole(self):
661661 cfo .addEntry ("resource" , "com.cloud.agent.resource.computing.consoleProxyResource" )
662662 cfo .save ()
663663
664- self .syscfg .svo .stopService ("cloud -agent" )
665- self .syscfg .svo .enableService ("cloud -agent" )
664+ self .syscfg .svo .stopService ("cloudstack -agent" )
665+ self .syscfg .svo .enableService ("cloudstack -agent" )
666666 return True
667667 except :
668668 raise
0 commit comments