collect VM console logs

Change-Id: Ib4513be761db792510f71bd24ef7dcc1650823fe
Please debug and fix, like how I showed you today.

Thanks,
Ananth


On Tue, Aug 12, 2014 at 7:07 PM, kamleshp <notifications@github.com> wrote:

> In modules/jenkins/files/slave_scripts/ci-infra/util.rb:
>
> > @@ -257,6 +271,10 @@ def self.cleanup_on_exit() return @@cleanup_on_exit end
> >      def self.cleanup_on_exit=(flag) @@cleanup_on_exit = flag end
> >
> >      def self.ci_cleanup
> > +        @vms = Vm.all_vms
> > +        @vms = Vm.init_all if @vms.nil? or @vms.empty?
> > +        vm = @vms.first
> > +        self.get_console_log(vm)
>
> I get method error if removed the init. see below.
> References
>
>    1.
>    http://10.204.216.50/Docs/logs/0000_2014_08_12_18_24_06/test_details.log.2014-08-12-18:24:04
>    2.
>    http://10.204.216.50/Docs/logs/0000_2014_08_12_18_24_06/test_report.html
>    3. http://10.204.216.50/Docs/logs/0000_2014_08_12_18_24_06/repos.html
>    4. javascript:showCase(0)
>    5. javascript:showCase(1)
>    6. javascript:showCase(2)
>    7. javascript:showClassDetail('c1',5)
>    8. javascript:showClassDetail('c2',1)
>    9. javascript:showClassDetail('c3',1) ****** in case of failure,
>    process logs and VM console log is available at
>    /ci-admin/failed_systest_logs/1 ******
>    /usr/local/jenkins/slave_scripts/ci-infra/util.rb:274:in ci_cleanup':
>    undefined methodfirst' for nil:NilClass (NoMethodError)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Juniper/contrail-infra-config/pull/29/files#r16154394>
> .
>