Page 1 of 2

Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 8:18 am
by WillemDH
Hello,

I'm trying to update my test system on R1.0 to 5.2.1, but it seems to fail some Perl tests.

Code: Select all

                       
#   Failed test 'use Nagios::Monitoring::Plugin::Functions;'                                                        
#   at t/Nagios-Monitoring-Plugin-Threshold.t line 6.                                                               
#     Tried to use 'Nagios::Monitoring::Plugin::Functions'.                                                         
#     Error:  Attempt to reload Nagios/Monitoring/Plugin/Functions.pm aborted.                                      
# Compilation failed in require at (eval 9) line 2.                                                                 
# BEGIN failed--compilation aborted at (eval 9) line 2.                                                             
Global symbol "%STATUS_TEXT" requires explicit package name at t/Nagios-Monitoring-Plugin-Threshold.t line 51.      
BEGIN not safe after errors--compilation aborted at t/Nagios-Monitoring-Plugin-Threshold.t line 57.                 
# Looks like you planned 93 tests but ran 2.                                                                        
# Looks like you failed 2 tests of 2 run.                                                                           
# Looks like your test exited with 255 just after 2.                                                                
t/Nagios-Monitoring-Plugin-Threshold.t .......                                                                      
Dubious, test returned 255 (wstat 65280, 0xff00)                                                                    
Failed 93/93 subtests                                                                                               
                                                                                                                    
Test Summary Report                                                                                                 
-------------------                                                                                                 
t/check_stuff.t                            (Wstat: 3328 Tests: 14 Failed: 13)                                       
  Failed tests:  1-10, 12-14                                                                                        
  Non-zero exit status: 13                                                                                          
t/Nagios-Monitoring-Plugin-01.t            (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 15 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-02.t            (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 103 tests but ran 1.                                                         
t/Nagios-Monitoring-Plugin-03.t            (Wstat: 65280 Tests: 2 Failed: 2)                                        
  Failed tests:  1-2                                                                                                
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 61 tests but ran 2.                                                          
t/Nagios-Monitoring-Plugin-04.t            (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 30 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Functions-01.t  (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 113 tests but ran 1.                                                         
t/Nagios-Monitoring-Plugin-Functions-02.t  (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 37 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Functions-03.t  (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 8 tests but ran 1.                                                           
t/Nagios-Monitoring-Plugin-Getopt-01.t     (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 76 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Getopt-02.t     (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 14 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Getopt-03.t     (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
t/Nagios-Monitoring-Plugin-Getopt-04.t     (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 11 tests but ran 1.                                                          
t/Nagios-Monitoring-Plugin-Performance-02.t (Wstat: 1024 Tests: 4 Failed: 4)                                        
  Failed tests:  1-4                                                                                                
  Non-zero exit status: 4                                                                                           
  Parse errors: Bad plan.  You planned 3 tests but ran 4.                                                           
t/Nagios-Monitoring-Plugin-Performance.t   (Wstat: 512 Tests: 0 Failed: 0)                                          
  Non-zero exit status: 2                                                                                           
  Parse errors: No plan found in TAP output                                                                         
t/Nagios-Monitoring-Plugin-Range.t         (Wstat: 65280 Tests: 1 Failed: 1)                                        
  Failed test:  1                                                                                                   
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 151 tests but ran 1.                                                         
t/Nagios-Monitoring-Plugin-Threshold.t     (Wstat: 65280 Tests: 2 Failed: 2)                                        
  Failed tests:  1-2                                                                                                
  Non-zero exit status: 255                                                                                         
  Parse errors: Bad plan.  You planned 93 tests but ran 2.                                                          
Files=16, Tests=33,  1 wallclock secs ( 0.08 usr  0.03 sys +  0.48 cusr  0.06 csys =  0.65 CPU)                     
Result: FAIL                                                                                                        
Failed 16/16 test programs. 32/33 subtests failed.                                                                  
make: *** [test_dynamic] Error 255                                                                                  
Any tip how to make this work?

Second run:
Test Summary Report
-------------------
t/check_stuff.t (Wstat: 3328 Tests: 14 Failed: 13)
Failed tests: 1-10, 12-14
Non-zero exit status: 13
t/Nagios-Monitoring-Plugin-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 15 tests but ran 1.
t/Nagios-Monitoring-Plugin-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 103 tests but ran 1.
t/Nagios-Monitoring-Plugin-03.t (Wstat: 65280 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 61 tests but ran 2.
t/Nagios-Monitoring-Plugin-04.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 30 tests but ran 1.
t/Nagios-Monitoring-Plugin-Functions-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 113 tests but ran 1.
t/Nagios-Monitoring-Plugin-Functions-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 37 tests but ran 1.
t/Nagios-Monitoring-Plugin-Functions-03.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-01.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 76 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-02.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 14 tests but ran 1.
t/Nagios-Monitoring-Plugin-Getopt-03.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
t/Nagios-Monitoring-Plugin-Getopt-04.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 11 tests but ran 1.
t/Nagios-Monitoring-Plugin-Performance-02.t (Wstat: 1024 Tests: 4 Failed: 4)
Failed tests: 1-4
Non-zero exit status: 4
Parse errors: Bad plan. You planned 3 tests but ran 4.
t/Nagios-Monitoring-Plugin-Performance.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/Nagios-Monitoring-Plugin-Range.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 151 tests but ran 1.
t/Nagios-Monitoring-Plugin-Threshold.t (Wstat: 65280 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 255
Parse errors: Bad plan. You planned 93 tests but ran 2.
Files=16, Tests=33, 0 wallclock secs ( 0.08 usr 0.02 sys + 0.49 cusr 0.05 csys = 0.64 CPU)
Result: FAIL
make: *** [test_dynamic] Error 255

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:20 am
by Heiko
I have exact the same issue..

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:28 am
by hsmith
There was a bug in the upgrade script, which we should be fixing today. A work around for now is running this from the command line as the root user:

Code: Select all

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-Config-Tiny perl-Math-Calc-Units

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:31 am
by WillemDH
Holden,

I did as you proposed and got:

Code: Select all

yum install -y 'perl(Test::Simple)' 'perl(Class::Accessor)' perl-Params-Validate perl-C onfig-Tiny perl-Math-Calc-Units
Loaded plugins: fastestmirror
http://linux.dropbox.com/fedora/7/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * epel: epel.check-update.co.uk
 * extras: mirrors.linode.com
 * rpmforge: www.mirrorservice.org
 * updates: mirrors.linode.com
Package perl-Test-Simple-0.98-243.el7.noarch already installed and latest version
Package perl-Class-Accessor-0.34-12.el7.noarch already installed and latest version
Package perl-Params-Validate-1.08-4.el7.x86_64 already installed and latest version
Package perl-Config-Tiny-2.14-7.el7.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-9.el7.noarch already installed and latest version
Nothing to do
Then tried the upgrade script again, but it failed again. (as expected seeing that the Perl pakages seem already installed.

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:34 am
by hsmith
This is interesting. This isn't CentOS 5 by chance is it?

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:43 am
by Heiko
I got the issue on CentOS 6.7 and manual Nagios upgrade from version 2014R2.7..

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:47 am
by hsmith
Heiko, did you run the yum command I posted?

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 10:53 am
by WillemDH
For me it's CentOS 7.

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 12:25 pm
by jomann
Can you please upload the entire upgrade log?

Re: Upgrade to 5.2.1 failed

Posted: Thu Nov 12, 2015 1:12 pm
by WillemDH
Hmm ok, can you pm me your email address then, because it's too long to post here.