Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-users digest..."


Today's Topics:

   1. Re: 1.0.3 Upgrade error (Zafar Pravaiz)


----------------------------------------------------------------------

Message: 1
Date: Sun, 09 Dec 2012 17:08:03 +0400
From: Zafar Pravaiz <[email protected]>
Subject: Re: [Netdot-users] 1.0.3 Upgrade error
To: Carlos Vicente <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Thanks

Its works

Cheers

On 12/9/12 4:53 PM, Carlos Vicente wrote:
> Don't run make test. Some tests may interfere with existing data.
>
> cv
>
> On Dec 9, 2012, at 1:33, Zafar Pravaiz <[email protected] 
> <mailto:[email protected]>> wrote:
>
>> Hi
>>
>> I am trying to upgrade from 1.0.2 - > 10.0.3 and getting following error.
>>
>> root@netdot:~/netdot-1.0.3# make test
>> prove -r
>> ./t/Device.t .......... 1/? Error while inserting BGPPeering: Can't 
>> insert new BGPPeering: DBD::mysql::st execute failed: Column 
>> 'bgppeeraddr' cannot be null [for Statement "INSERT INTO bgppeering 
>> (bgppeeraddr, entity, max_v4_prefixes, monitored, max_v6_prefixes, 
>> bgppeerid, device)
>> VALUES (?, ?, ?, ?, ?, ?, ?)
>> " with ParamValues: 0=undef, 1='30', 2=0, 3=1, 4=0, 5='10.0.0.1', 
>> 6='334'] at /usr/share/perl5/DBIx/ContextualFetch.pm line 52.
>>  at ./t/Device.t line 32
>> # Looks like your test exited with 255 just after 9.
>> ./t/Device.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 9 subtests passed
>> ./t/DhcpScope.t ....... 1/? DHCP scope dhcp_server already exists!# 
>> Looks like your test exited with 255 just after 1.
>> ./t/DhcpScope.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 1 subtests passed
>> ./t/Exporter.t ........ ok
>> ./t/Ipblock-insert.t .. ok
>> ./t/Ipblock.t ......... 1/? Error while inserting Ipblock: Can't 
>> insert new Ipblock: DBD::mysql::st execute failed: Duplicate entry 
>> '3221225984-24' for key 'ipblock1' [for Statement "INSERT INTO 
>> ipblock (status, version, last_seen, first_seen, address, prefix)
>> VALUES (?, ?, ?, ?, ?, ?)
>> " with ParamValues: 0='1', 1=4, 2='2012/12/09 10:28:38', 
>> 3='2012/12/09 10:28:38', 4='3221225984', 5=24] at 
>> /usr/share/perl5/DBIx/ContextualFetch.pm line 52.
>>  at ./t/Ipblock.t line 7
>> # Looks like your test exited with 255 just after 1.
>> ./t/Ipblock.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 1 subtests passed
>> ./t/Model.t ........... 1/?
>> #   Failed test 'sqldate2time'
>> #   at ./t/Model.t line 57.
>> #          got: '1315857600'
>> #     expected: '1315897200'
>>
>> #   Failed test 'sqldate2time'
>> #   at ./t/Model.t line 58.
>> #          got: '1315900787'
>> #     expected: '1315940387'
>> # Looks like you failed 2 tests of 17.
>> ./t/Model.t ........... Dubious, test returned 2 (wstat 512, 0x200)
>> Failed 2/17 subtests
>> ./t/Nullify.t ......... 1/? Subnet 1.1.1.0/30 cannot exist within 
>> Subnet 1.1.1.0/24# Looks like your test exited with 255 just after 1.
>> ./t/Nullify.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 1 subtests passed
>> ./t/PhysAddr.t ........ 1/? Error while inserting PhysAddr: Can't 
>> insert new PhysAddr: DBD::mysql::st execute failed: Duplicate entry 
>> 'DEADDEADBEEF' for key 'physaddr1' [for Statement "INSERT INTO 
>> physaddr (first_seen, last_seen, address, static)
>> VALUES (?, ?, ?, ?)
>> " with ParamValues: 0='2012/12/09 10:28:42', 1='2012/12/09 10:28:42', 
>> 2='DEADDEADBEEF', 3=0] at /usr/share/perl5/DBIx/ContextualFetch.pm 
>> line 52.
>>  at ./t/PhysAddr.t line 7
>> # Looks like your test exited with 255 just after 1.
>> ./t/PhysAddr.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 1 subtests passed
>> ./t/Product.t ......... 1/? Cannot proceed without a manufacturer
>>
>> Trace begun at lib/Netdot.pm line 105
>> Netdot::throw_fatal('Product', 'Cannot proceed without a 
>> manufacturer') called at lib/Netdot/Model/Product.pm line 74
>> Netdot::Model::Product::insert('Product', 'HASH(0x1628998)') called 
>> at t/Product.t line 7
>> # Looks like your test exited with 255 just after 1.
>> ./t/Product.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 1 subtests passed
>> ./t/REST.t ............ 1/?
>> #   Failed test 'use Netdot::REST;'
>> #   at ./t/REST.t line 5.
>> #     Tried to use 'Netdot::REST'.
>> #     Error:  Bareword "Apache2::Const::HTTP_FORBIDDEN" not allowed 
>> while "strict subs" in use at lib/Netdot/REST.pm line 276.
>> # Compilation failed in require at (eval 4) line 2.
>> # BEGIN failed--compilation aborted at (eval 4) line 2.
>> Missing required argument: user
>>
>> Trace begun at lib/Netdot.pm line 105
>> Netdot::throw_fatal('Netdot', 'Missing required argument: user') 
>> called at lib/Netdot/REST.pm line 52
>> Netdot::REST::new('Netdot::REST') called at t/REST.t line 7
>> # Looks like you failed 1 test of 1.
>> # Looks like your test exited with 255 just after 1.
>> ./t/REST.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
>> Failed 1/1 subtests
>> ./t/RR.t .............. 1/? Exchange smtp.testdomain within active 
>> zone 'testdomain', but name 'smtp' does not exist# Looks like your 
>> test exited with 255 just after 28.
>> ./t/RR.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 28 subtests passed
>> ./t/UI.t .............. 1/?
>> #   Failed test 'radio_group_boolean'
>> #   at ./t/UI.t line 26.
>> #                   '<nobr>Yes<input type="radio" 
>> name="Device__338__monitored" value="1" ></nobr>&nbsp;
>> # <nobr>No<input type="radio" name="Device__338__monitored" value="0" 
>> checked></nobr>
>> # '
>> #     doesn't match '/<nobr>Yes<input type="radio" 
>> name="Device__(\d+)__monitored" value="1" 
>> checked></nobr>&nbsp;\n<nobr>No<input type="radio" 
>> name="Device__(\d+)__monitored" value="0" ></nobr>/'
>>
>> #   Failed test 'text_area'
>> #   at ./t/UI.t line 32.
>> #                   '<textarea name="Device__338__info" cols='70' 
>> rows='10'></textarea>
>> # '
>> #     doesn't match '/<textarea name="Device__(\d+)__info" ></textarea>/'
>> # Looks like you failed 2 tests of 15.
>> ./t/UI.t .............. Dubious, test returned 2 (wstat 512, 0x200)
>> Failed 2/15 subtests
>> ./t/Util.t ............ 1/?
>> #   Failed test 'resolve_name_ipv6'
>> #   at ./t/Util.t line 20.
>> #          got: '193.0.14.129'
>> #     expected: '2001:7fd::1'
>>
>> #   Failed test 'resolve_name_ipv4'
>> #   at ./t/Util.t line 21.
>> #          got: '2001:7fd::1'
>> #     expected: '193.0.14.129'
>> # Looks like you failed 2 tests of 8.
>> ./t/Util.t ............ Dubious, test returned 2 (wstat 512, 0x200)
>> Failed 2/8 subtests
>> ./t/Vlan.t ............ 1/? New range: 100-300 overlaps with Group: 
>> Data# Looks like your test exited with 255 just after 2.
>> ./t/Vlan.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 2 subtests passed
>> ./t/VlanGroup.t ....... 1/? Missing one or more required arguments: 
>> name, start_vid, end_vid# Looks like your test exited with 255 just 
>> after 2.
>> ./t/VlanGroup.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
>> All 2 subtests passed
>> ./t/Zone.t ............ ok
>> ./t/pod-coverage.t .... skipped: Test::Pod::Coverage 1.08 required 
>> for testing POD coverage
>> ./t/pod.t ............. skipped: Test::Pod 1.22 required for testing POD
>>
>> Test Summary Report
>> -------------------
>> ./t/Device.t        (Wstat: 65280 Tests: 9 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/DhcpScope.t     (Wstat: 65280 Tests: 1 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/Ipblock.t       (Wstat: 65280 Tests: 1 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/Model.t         (Wstat: 512 Tests: 17 Failed: 2)
>>   Failed tests:  16-17
>>   Non-zero exit status: 2
>> ./t/Nullify.t       (Wstat: 65280 Tests: 1 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/PhysAddr.t      (Wstat: 65280 Tests: 1 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/Product.t       (Wstat: 65280 Tests: 1 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/REST.t          (Wstat: 65280 Tests: 1 Failed: 1)
>>   Failed test:  1
>>   Non-zero exit status: 255
>> ./t/RR.t            (Wstat: 65280 Tests: 28 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/UI.t            (Wstat: 512 Tests: 15 Failed: 2)
>>   Failed tests:  6, 8
>>   Non-zero exit status: 2
>> ./t/Util.t          (Wstat: 512 Tests: 8 Failed: 2)
>>   Failed tests:  5-6
>>   Non-zero exit status: 2
>> ./t/Vlan.t          (Wstat: 65280 Tests: 2 Failed: 0)
>>   Non-zero exit status: 255
>> ./t/VlanGroup.t     (Wstat: 65280 Tests: 2 Failed: 0)
>>   Non-zero exit status: 255
>> Files=18, Tests=106, 20 wallclock secs ( 0.06 usr  0.03 sys + 18.64 
>> cusr  0.72 csys = 19.45 CPU)
>> Result: FAIL
>> make: *** [test] Error 1
>>
>>
>> Any idea?
>>
>> Thanks
>>
>> -- 
>>
>> *Zafar Pravaiz
>> *IT Senior Systems Engineer
>> Information Technology Department
>>
>> <aus.jpg>
>>
>> Tel   +971 6 515 2164
>> Fax  +971 6515 2112
>>
>> American University of Sharjah
>> PO Box 26666, Sharjah
>> United Arab Emirates
>> http://www.aus.edu <http://www.aus.edu/>
>> [email protected] <mailto:[email protected]>
>>
>> _______________________________________________
>> Netdot-users mailing list
>> [email protected] <mailto:[email protected]>
>> https://osl.uoregon.edu/mailman/listinfo/netdot-users

-- 

*Zafar Pravaiz
*IT Senior Systems Engineer
Information Technology Department

AUS /> </span><span 
style='font-size:10.0pt;font-family:Times;mso-bidi-font-family:

Tel   +971 6 515 2164
Fax  +971 6515 2112

American University of Sharjah
PO Box 26666, Sharjah
United Arab Emirates
http://www.aus.edu <http://www.aus.edu/>
[email protected] <mailto:[email protected]>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20121209/da6b2f57/attachment.html
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aus.jpg
Type: image/jpeg
Size: 32946 bytes
Desc: not available
Url : 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20121209/da6b2f57/attachment.jpg
 

------------------------------

_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users


End of Netdot-users Digest, Vol 49, Issue 6
*******************************************

Reply via email to