Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
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-devel digest..."
Today's Topics:
1. [Netdot - Bug #1867] Discover Device of new devices failed
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Sun, 8 Nov 2015 15:40:30 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1867] Discover Device of new
devices failed
To: [email protected], [email protected],
[email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1867 has been updated by Jack Madden.
Hi,
Here is a possible fix for bug 1867. Updatedevices.pl ran and added devices
without errors after updating. Let me know if this is an appropriate fix.
Netdot 1.0.7 /usr/local/netdot/lib/Netdot/Model/Device.pm
current:
492 # Notice that we search the whole string. That's because
493 # the hostname part might have dots. The Zone search method
494 # will take care of that.
495 if ( my $zone = (Zone->search(name=>$fqdn))[0] ){
496 $args{zone} = $zone->name;
497 $args{name} = $fqdn;
498 $args{name} =~ s/\.$args{zone}//;
updated:
492 # Notice that we search the whole string. That's because
493 # the hostname part might have dots. The Zone search method
494 # will take care of that.
495 if ( my $zone = (Zone->search(name=>$fqdn))[0] ){
496 #$args{zone} = $zone->name;
497 $args{zone} = $zone->id;
498 $args{name} = $fqdn;
499 $args{name} =~ s/\.$args{zone}//;
----------------------------------------
Bug #1867: Discover Device of new devices failed
https://osl.uoregon.edu/redmine/issues/1867#change-3323
Author: Daniel S.
Status: New
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.8
Resolution:
New (v.1.0.7) install - discovery of devices (Management/Devices/New/Discover
Device) will fail until a new device is first created manually
(Management/Devices/New/Add Device manually), then the discovery will succeed.
updatedevice.html produced the following error:
RR can't SELECT id, zone, name
FROM rr
WHERE name = ? AND zone = ?
: DBD::Pg::st execute failed: ERROR: invalid input syntax for integer:
"acme.com" [for Statement "SELECT id, zone, name
FROM rr
WHERE name = ? AND zone = ?
" with ParamValues: 1='switch1.network', 2='acme.com'] at
/usr/share/perl5/DBIx/ContextualFetch.pm line 52, line 5736.
Stack:
[/usr/share/perl5/DBIx/ContextualFetch.pm:52]
[/usr/share/perl5/DBIx/ContextualFetch.pm:32]
[/usr/share/perl5/Class/DBI.pm:1139]
[/usr/share/perl5/Class/DBI/Search/Basic.pm:169]
[/usr/share/perl5/Class/DBI.pm:1094]
[/usr/local/netdot/lib/Netdot/Model/RR.pm:63]
[/usr/share/perl5/Class/DBI.pm:424]
[/usr/local/netdot/lib/Netdot/Model/Device.pm:514]
[/usr/local/netdot/lib/Netdot/Model/Device.pm:1520]
[/usr/local/netdot/htdocs/management/updatedevice.html:257]
[/usr/local/netdot/htdocs/management/autohandler:81]
[/usr/share/perl5/HTML/Mason/Request.pm:948]
[/usr/local/netdot/htdocs/masondata/obj/1249759374/management/autohandler.obj:21]
[/usr/local/netdot/htdocs/autohandler:76]
at /usr/share/perl5/Class/DBI/Search/Basic.pm line 169
Stack:
[/usr/share/perl/5.14/Carp.pm:79]
[/usr/share/perl5/Class/DBI.pm:169]
[/usr/share/perl5/Class/DBI.pm:1143]
[/usr/share/perl5/Class/DBI/Search/Basic.pm:169]
[/usr/share/perl5/Class/DBI.pm:1094]
[/usr/local/netdot/lib/Netdot/Model/RR.pm:63]
[/usr/share/perl5/Class/DBI.pm:424]
[/usr/local/netdot/lib/Netdot/Model/Device.pm:514]
[/usr/local/netdot/lib/Netdot/Model/Device.pm:1520]
[/usr/local/netdot/htdocs/management/updatedevice.html:257]
[/usr/local/netdot/htdocs/management/autohandler:81]
[/usr/share/perl5/HTML/Mason/Request.pm:948]
[/usr/local/netdot/htdocs/masondata/obj/1249759374/management/autohandler.obj:21]
[/usr/local/netdot/htdocs/autohandler:76]
The ParamValues 2 should be an integer instead of a string.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 104, Issue 4
********************************************