File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,8 +72,12 @@ def check(self):
7272 return True
7373
7474 if os .geteuid () != 0 :
75- raise CloudInternalException ("Need to execute with root permission" )
75+ raise CloudInternalException ("Need to execute with root permission\n " )
7676
77+ hostname = bash ("hostname -f" )
78+ if not hostname .isSuccess ():
79+ raise CloudInternalException ("Checking hostname ... [Failed]\n Please edit /etc/hosts, add a Fully Qualified Domain Name as your hostname\n " )
80+
7781 kvmEnabled = self .svo .isKVMEnabled ()
7882 if not kvmEnabled :
7983 raise CloudInternalException ("Checking KVM...[Failed]\n Please enable KVM on this machine\n " )
@@ -125,7 +129,7 @@ def check(self):
125129 raise CloudInternalException ("Need to execute with root permission" )
126130 hostname = bash ("hostname -f" )
127131 if not hostname .isSuccess ():
128- raise CloudInternalException ("Checking hostname ... [Failed]\n Need to have a Fully Qualified Domain Name as your hostname" )
132+ raise CloudInternalException ("Checking hostname ... [Failed]\n Please edit /etc/hosts, add a Fully Qualified Domain Name as your hostname\n " )
129133 return True
130134
131135class sysConfigServerRedhat (sysConfigServer ):
You can’t perform that action at this time.
0 commit comments