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 #1688] (New) unable to add PTR record       after
      upgrade ([email protected])
   2. [Netdot - Bug #1688] unable to add PTR record after       upgrade
      ([email protected])
   3. [SCM] UNNAMED PROJECT branch netdot-1.0 updated.
      netdot-1.0.1-33-g0f07eed ([email protected])
   4. [Netdot - Bug #1688] (Resolved) unable to add PTR record
      after upgrade ([email protected])


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

Message: 1
Date: Mon, 10 Sep 2012 05:00:58 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1688] (New) unable to add PTR
        record  after upgrade
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1688 has been reported by Peter Keel.

----------------------------------------
Bug #1688: unable to add PTR record after upgrade 
https://osl.uoregon.edu/redmine/issues/1688

Author: Peter Keel
Status: New
Priority: Normal
Assignee: 
Category: DNS
Target version: 
Resolution: 


Hi

I wasn't entirely sure where to go with that, so I choose to put it here. 
After an upgrade from 0.98 to 1.0.1, the following happens upon trying to enter 
a PTR record: 

 host.html produced the following error:


Transaction aborted: Can't call method "zone" without a package or object 
reference at /var/www/netdot/lib/Netdot/Model/RRPTR.pm line 85.

Stack:
  [/var/www/netdot/lib/Netdot/Model/RRPTR.pm:85]
  [/var/www/netdot/lib/Netdot/UI.pm:230]
  [/var/www/netdot/htdocs/management/host.html:103]
  [/var/www/netdot/htdocs/management/host.html:130]
  [/var/www/netdot/htdocs/management/autohandler:81]
  [/usr/share/perl5/HTML/Mason/Request.pm:936]
  [/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21]
  [/var/www/netdot/htdocs/autohandler:76]


Trace begun at /var/www/netdot/lib/Netdot.pm line 83
Netdot::throw_fatal('Netdot::Model', 'Transaction aborted: Can\'t call method 
"zone" without a package or object reference at 
/var/www/netdot/lib/Netdot/Model/RRPTR.pm line 85.^J^JStack:^J  
[/var/www/netdot/lib/Netdot/Model/RRPTR.pm:85]^J  
[/var/www/netdot/lib/Netdot/UI.pm:230]^J  
[/var/www/netdot/htdocs/management/host.html:103]^J  
[/var/www/netdot/htdocs/management/host.html:130]^J  
[/var/www/netdot/htdocs/management/autohandler:81]^J  
[/usr/share/perl5/HTML/Mason/Request.pm:936]^J  
[/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21]^J
  [/var/www/netdot/htdocs/autohandler:76]^J') called at 
/var/www/netdot/lib/Netdot/Model.pm line 763
Netdot::Model::do_transaction('Netdot::Model', 'CODE(0x7fb4b8981ad8)') called 
at /var/www/netdot/htdocs/management/host.html line 130
eval {...} at /var/www/netdot/htdocs/management/host.html line 89
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8832a10)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'page', 'ZONES') called at /var/www/netdot/htdocs/management/autohandler line 
81
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Component.pm 
line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7fb4b8835998)',
 'main', 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 936
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'main', 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj line 
21
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Component.pm 
line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8835998)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm 
line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'showheader', 1) called at /var/www/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8838248)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738) called at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fb4b73436f0)',
 'Apache2::RequestRec=SCALAR(0x7fb4b8787d60)') called at 
/var/www/netdot/lib/Netdot/Mason.pm line 40
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7fb4b8787d60)') called at 
-e line 0
eval {...} at -e line 0


I already deleted the record "49" and made it anew, and I already restarted 
apache. 
Is that systemic, or some inconsistency within our database? Any hints? 

(By the way: line 54 in RRCNAME.pm behaves strangely too; if a device with that 
name was discovered, it refuses to add a CNAME -- altough there is no DNS 
record present yet.. )

Kind Regards
Peter


-- 
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


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

Message: 2
Date: Mon, 10 Sep 2012 06:22:33 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1688] unable to add PTR record
        after   upgrade
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1688 has been updated by Peter Keel.


Found it. 

For some reason this happens if the TTL (which is marked as facultative) is not 
specified. 

The remaining Question is, is there a TTL specified somewhere else, or should 
be? And why does it bomb instead of using a sensible default? 

----------------------------------------
Bug #1688: unable to add PTR record after upgrade 
https://osl.uoregon.edu/redmine/issues/1688#change-2961

Author: Peter Keel
Status: New
Priority: Normal
Assignee: 
Category: DNS
Target version: 
Resolution: 


Hi

I wasn't entirely sure where to go with that, so I choose to put it here. 
After an upgrade from 0.98 to 1.0.1, the following happens upon trying to enter 
a PTR record: 

 host.html produced the following error:


Transaction aborted: Can't call method "zone" without a package or object 
reference at /var/www/netdot/lib/Netdot/Model/RRPTR.pm line 85.

Stack:
  [/var/www/netdot/lib/Netdot/Model/RRPTR.pm:85]
  [/var/www/netdot/lib/Netdot/UI.pm:230]
  [/var/www/netdot/htdocs/management/host.html:103]
  [/var/www/netdot/htdocs/management/host.html:130]
  [/var/www/netdot/htdocs/management/autohandler:81]
  [/usr/share/perl5/HTML/Mason/Request.pm:936]
  [/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21]
  [/var/www/netdot/htdocs/autohandler:76]


Trace begun at /var/www/netdot/lib/Netdot.pm line 83
Netdot::throw_fatal('Netdot::Model', 'Transaction aborted: Can\'t call method 
"zone" without a package or object reference at 
/var/www/netdot/lib/Netdot/Model/RRPTR.pm line 85.^J^JStack:^J  
[/var/www/netdot/lib/Netdot/Model/RRPTR.pm:85]^J  
[/var/www/netdot/lib/Netdot/UI.pm:230]^J  
[/var/www/netdot/htdocs/management/host.html:103]^J  
[/var/www/netdot/htdocs/management/host.html:130]^J  
[/var/www/netdot/htdocs/management/autohandler:81]^J  
[/usr/share/perl5/HTML/Mason/Request.pm:936]^J  
[/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21]^J
  [/var/www/netdot/htdocs/autohandler:76]^J') called at 
/var/www/netdot/lib/Netdot/Model.pm line 763
Netdot::Model::do_transaction('Netdot::Model', 'CODE(0x7fb4b8981ad8)') called 
at /var/www/netdot/htdocs/management/host.html line 130
eval {...} at /var/www/netdot/htdocs/management/host.html line 89
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8832a10)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'page', 'ZONES') called at /var/www/netdot/htdocs/management/autohandler line 
81
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Component.pm 
line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7fb4b8835998)',
 'main', 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 936
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'main', 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj line 
21
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Component.pm 
line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8835998)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm 
line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'showheader', 1) called at /var/www/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8838248)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738) called at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fb4b73436f0)',
 'Apache2::RequestRec=SCALAR(0x7fb4b8787d60)') called at 
/var/www/netdot/lib/Netdot/Mason.pm line 40
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7fb4b8787d60)') called at 
-e line 0
eval {...} at -e line 0


I already deleted the record "49" and made it anew, and I already restarted 
apache. 
Is that systemic, or some inconsistency within our database? Any hints? 

(By the way: line 54 in RRCNAME.pm behaves strangely too; if a device with that 
name was discovered, it refuses to add a CNAME -- altough there is no DNS 
record present yet.. )

Kind Regards
Peter


-- 
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


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

Message: 3
Date: Mon, 10 Sep 2012 11:02:26 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] UNNAMED PROJECT branch netdot-1.0
        updated.        netdot-1.0.1-33-g0f07eed
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "UNNAMED PROJECT".

The branch, netdot-1.0 has been updated
       via  0f07eedbd74027e6401461ea9f9d87f32b8534c3 (commit)
      from  c4d749c8c09ddbf84c994d58cbc42050398cca8b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0f07eedbd74027e6401461ea9f9d87f32b8534c3
Author: Carlos Vicente <[email protected]>
Date:   Mon Sep 10 14:01:57 2012 -0400

    Fix for #1688 (unable to add PTR record after upgrade)

diff --git a/lib/Netdot/Model/RRPTR.pm b/lib/Netdot/Model/RRPTR.pm
index 8743aa2..9379f98 100644
--- a/lib/Netdot/Model/RRPTR.pm
+++ b/lib/Netdot/Model/RRPTR.pm
@@ -82,7 +82,7 @@ sub insert {
     if ( defined $argv->{ttl} && length($argv->{ttl}) ){
        $argv->{ttl} = $class->ttl_from_text($argv->{ttl});
     }else{
-       $argv->{ttl} = $argv->{rr}->zone->default_ttl;
+       $argv->{ttl} = $rr->zone->default_ttl;
     }
 
     $class->_sanitize_ptrdname($argv);

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

Summary of changes:
 lib/Netdot/Model/RRPTR.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
UNNAMED PROJECT


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

Message: 4
Date: Mon, 10 Sep 2012 11:05:28 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1688] (Resolved) unable to add
        PTR     record after upgrade
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1688 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.2
Resolution set to fixed

Thank you.

You can see the fix diff at:

https://osl.uoregon.edu/redmine/projects/netdot/repository/revisions/0f07eedbd74027e6401461ea9f9d87f32b8534c3/diff/lib/Netdot/Model/RRPTR.pm

----------------------------------------
Bug #1688: unable to add PTR record after upgrade 
https://osl.uoregon.edu/redmine/issues/1688#change-2962

Author: Peter Keel
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DNS
Target version: 1.0.2
Resolution: fixed


Hi

I wasn't entirely sure where to go with that, so I choose to put it here. 
After an upgrade from 0.98 to 1.0.1, the following happens upon trying to enter 
a PTR record: 

 host.html produced the following error:


Transaction aborted: Can't call method "zone" without a package or object 
reference at /var/www/netdot/lib/Netdot/Model/RRPTR.pm line 85.

Stack:
  [/var/www/netdot/lib/Netdot/Model/RRPTR.pm:85]
  [/var/www/netdot/lib/Netdot/UI.pm:230]
  [/var/www/netdot/htdocs/management/host.html:103]
  [/var/www/netdot/htdocs/management/host.html:130]
  [/var/www/netdot/htdocs/management/autohandler:81]
  [/usr/share/perl5/HTML/Mason/Request.pm:936]
  [/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21]
  [/var/www/netdot/htdocs/autohandler:76]


Trace begun at /var/www/netdot/lib/Netdot.pm line 83
Netdot::throw_fatal('Netdot::Model', 'Transaction aborted: Can\'t call method 
"zone" without a package or object reference at 
/var/www/netdot/lib/Netdot/Model/RRPTR.pm line 85.^J^JStack:^J  
[/var/www/netdot/lib/Netdot/Model/RRPTR.pm:85]^J  
[/var/www/netdot/lib/Netdot/UI.pm:230]^J  
[/var/www/netdot/htdocs/management/host.html:103]^J  
[/var/www/netdot/htdocs/management/host.html:130]^J  
[/var/www/netdot/htdocs/management/autohandler:81]^J  
[/usr/share/perl5/HTML/Mason/Request.pm:936]^J  
[/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21]^J
  [/var/www/netdot/htdocs/autohandler:76]^J') called at 
/var/www/netdot/lib/Netdot/Model.pm line 763
Netdot::Model::do_transaction('Netdot::Model', 'CODE(0x7fb4b8981ad8)') called 
at /var/www/netdot/htdocs/management/host.html line 130
eval {...} at /var/www/netdot/htdocs/management/host.html line 89
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8832a10)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1, 'page', 'ZONES') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'page', 'ZONES') called at /var/www/netdot/htdocs/management/autohandler line 
81
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Component.pm 
line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7fb4b8835998)',
 'main', 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 936
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'main', 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/var/www/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj line 
21
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Component.pm 
line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8835998)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm 
line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)',
 'showheader', 1) called at /var/www/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__('RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fb4b8838248)',
 'RRPTR__NEW__ptrdname', 'fw01a.rz.agilentia.cust.atrila.net', 
'RRPTR__NEW__ttl', '', 'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 
7738, 'submit', 'save', 'rr', 7738) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'RRPTR__NEW__ptrdname', 
'fw01a.rz.agilentia.cust.atrila.net', 'RRPTR__NEW__ttl', '', 
'RRPTR__NEW__ipblock', 188.92.145.49, 'RRPTR__NEW__rr', 7738, 'submit', 'save', 
'rr', 7738) called at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fb4b8791890)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fb4b73436f0)',
 'Apache2::RequestRec=SCALAR(0x7fb4b8787d60)') called at 
/var/www/netdot/lib/Netdot/Mason.pm line 40
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7fb4b8787d60)') called at 
-e line 0
eval {...} at -e line 0


I already deleted the record "49" and made it anew, and I already restarted 
apache. 
Is that systemic, or some inconsistency within our database? Any hints? 

(By the way: line 54 in RRCNAME.pm behaves strangely too; if a device with that 
name was discovered, it refuses to add a CNAME -- altough there is no DNS 
record present yet.. )

Kind Regards
Peter


-- 
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 66, Issue 7
*******************************************

Reply via email to