| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e34d044 commit 008146a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,11 @@ def __init__(self, syscfg): | |||
| 11 | 11 | self.serviceName = "CloudStack Management Server" | |
| 12 | 12 | ||
| 13 | 13 | 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 | + | ||
| 14 | 19 | if self.syscfg.env.svrMode == "mycloud": | |
| 15 | 20 | cfo = configFileOps("/usr/share/cloud/management/conf/environment.properties", self) | |
| 16 | 21 | cfo.addEntry("cloud-stack-components-specification", "components-cloudzones.xml") | |
@@ -83,6 +88,7 @@ def config(self): | |||
| 83 | 88 | bash("ln -s /etc/cloud/management/tomcat6-nonssl.conf /etc/cloud/management/tomcat6.conf") | |
| 84 | 89 | ||
| 85 | 90 | #distro like sl 6.1 needs this folder, or tomcat6 failed to start | |
| 91 | + checkHostName() | ||
| 86 | 92 | bash("mkdir /var/log/cloud-management/") | |
| 87 | 93 | ||
| 88 | 94 | try: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments