ASF GitHub Bot commented on CLOUDSTACK-10295:

rafaelweingartner closed pull request #2457: CLOUDSTACK-10295 Marvin: add 
support for password-enabled templates
URL: https://github.com/apache/cloudstack/pull/2457

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 23621991cc2..e0253896271 100755
--- a/tools/marvin/marvin/lib/base.py
+++ b/tools/marvin/marvin/lib/base.py
@@ -593,6 +593,10 @@ def create(cls, apiclient, services, templateid=None, 
         virtual_machine = apiclient.deployVirtualMachine(cmd, method=method)
+        if 'password' in virtual_machine.__dict__.keys():
+            if virtual_machine.password:
+                services['password'] = virtual_machine.password
         virtual_machine.ssh_ip = virtual_machine.nic[0].ipaddress
         if startvm is False:
             virtual_machine.public_ip = virtual_machine.nic[0].ipaddress


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Marvin: add support for password-enabled templates
> --------------------------------------------------
>                 Key: CLOUDSTACK-10295
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10295
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: marvin
>            Reporter: Dmytro Shevchenko
>            Priority: Major
>              Labels: marvin, password
> Currently when new VM created, password property always set to 'password' 
> even if it was auto-generated. Because of this impossible establish SSH 
> connection to host during testing.

This message was sent by Atlassian JIRA

Reply via email to