<div dir="ltr">OK, today I talked to Cleber and we figured out what was wrong. Patches will follow.<div><br></div><div>I did test the plugin and it's working well. This first PR was merged, and I'll work on packaging.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 28, 2016 at 1:17 AM Lucas Meneghel Rodrigues <<a href="mailto:lookkas@gmail.com">lookkas@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys:<div><br>As part of my effort to try to flush all my internal patches that have been accumulating over the months, I've created a new, separate repo with my EC2 plugin, and ask whomever has time to review my code to check:</div><div><br></div><div><a href="https://github.com/avocado-framework/avocado-ec2/pull/1" target="_blank">https://github.com/avocado-framework/avocado-ec2/pull/1</a><br></div><div><br></div><div>I tried to follow the new plugin practices as much as I could figure, and did some refactoring of the original code, that should be more robust in cleaning up resources from AWS.<br><br>Now, I can't for the life of me figure out how plugins to the 'run' command are working these days.  I have installed my plugin with 'sudo python setup.py develop', then checked the command line options:</div><div><br></div><div><div>test execution on an EC2 (Amazon Elastic Cloud) instance:</div><div>  --ec2-ami-id EC2_AMI_ID</div><div>                        Amazon Machine Image ID. Example: ami-e08adb8a</div><div>  --ec2-ami-username EC2_AMI_USERNAME</div><div>                        User for the AMI image login. Defaults to root</div><div>  --ec2-ami-distro-type EC2_AMI_DISTRO_TYPE</div><div>                        AMI base Linux Distribution. Valid values: fedora (for</div><div>                        Fedora > 22), el (for RHEL/CentOS > 6.0), ubuntu (for</div><div>                        Ubuntu > 14.04). Defaults to fedora</div><div>  --ec2-instance-ssh-port EC2_INSTANCE_SSH_PORT</div><div>                        sshd port for the EC2 instance. Defaults to 22</div><div>  --ec2-security-group-ids EC2_SECURITY_GROUP_IDS</div><div>                        Comma separated list of EC2 security group IDs.</div><div>                        Example: sg-a5e1d7b0</div><div>  --ec2-subnet-id EC2_SUBNET_ID</div><div>                        EC2 subnet ID. Example: subnet-ec4a72c4</div><div>  --ec2-instance-type EC2_INSTANCE_TYPE</div><div>                        EC2 instance type. Example: c4.xlarge</div><div>  --ec2-login-timeout SECONDS</div><div>                        Amount of time (in seconds) to wait for a successful</div><div>                        connection to the EC2 instance. Defaults to 120</div><div>                        seconds</div></div><div><br></div><div>Sweet. It seems to be working, right? Now let me try to run it:</div><div><br></div><div><div>avocado run passtest --ec2-ami-id ami-05f4ed35 --ec2-ami-distro-type fedora --ec2-security-group-ids sg-81703ae4 --ec2-subnet-id subnet-5207ee37 --ec2-instance-type t2.micro</div><div>JOB ID     : 58d7e8867502a12601e60d16ff17bc23df657a01</div><div>JOB LOG    : /home/lmr/avocado/job-results/job-2016-01-28T01.13-58d7e88/job.log</div><div>TESTS      : 1</div><div> (1/1) passtest.py:PassTest.test: PASS (0.00 s)</div><div>RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0</div><div>JOB HTML   : /home/lmr/avocado/job-results/job-2016-01-28T01.13-58d7e88/html/results.html</div><div>TIME       : 0.00 s</div></div><div><br></div><div>Hmm, that ended too fast, so there's something up. Let's try a bogus command line for the remote plugin, then:</div><div><br></div><div><div>avocado run passtest --vm-domain domain --vm-username user --vm-password pass</div><div>JOB ID     : c0349ba261f2dd0c47469394a2e58d88be1742b7</div><div>JOB LOG    : /home/lmr/avocado/job-results/job-2016-01-28T01.14-c0349ba/job.log</div><div>TESTS      : 1</div><div> (1/1) passtest.py:PassTest.test: PASS (0.00 s)</div><div>RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0</div><div>JOB HTML   : /home/lmr/avocado/job-results/job-2016-01-28T01.14-c0349ba/html/results.html</div><div>TIME       : 0.00 s</div></div><div><br></div><div>Same result. What's going on? I even checked if I had an older version of avocado through apt-get (which I did, but then removed and re-ran the develop commands). </div><div><br></div><div>So I'm at a loss, and without energy to figure out what's going on. I've been running a custom version of avocado on my test environments, pre plugin refactor, so I haven't had any problems until I sit to flush my patches.</div><div><br></div><div>I appreciate any help you guys could provide.</div><div><br></div><div>Thanks!</div></div></blockquote></div>