mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8507: Added code to install httpd package inside vm if not found
This closes #287
This commit is contained in:
parent
d7f4498f76
commit
345db34583
@ -339,6 +339,13 @@ class TestVPCNetworkPFRules(cloudstackTestCase):
|
||||
time.sleep(5)
|
||||
ssh_response = str(sshClient.execute("service httpd status")).lower()
|
||||
self.debug("httpd service status is: %s" % ssh_response)
|
||||
if "httpd: unrecognized service" in ssh_response or "inactive" in ssh_response:
|
||||
ssh_res = sshClient.execute("yum install httpd -y")
|
||||
if "Complete!" not in ssh_res:
|
||||
raise Exception("Failed to install http server")
|
||||
sshClient.execute("service httpd start")
|
||||
time.sleep(5)
|
||||
ssh_response = str(sshClient.execute("service httpd status")).lower()
|
||||
if not "running" in ssh_response:
|
||||
raise Exception("Failed to start httpd service")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user