OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

Updating DNS records - bug?

tmyoungjr

04-05-2009 10:15:05

Anton - mind checking this for me.

Go to a host you had created before your upgrade. Change its name and see if it sticks.

i'm finding that when i go to update an A record for my pre-existing hosts - i make the update - it passes - but then the host never actually gets modified.

anton

04-05-2009 10:49:37

Yep, I'm getting the same thing.

Edit: to be clear, this applies only to hosts pre-existing to the upgrade like you said. Newly created hosts can be renamed with no problem.

Matt

04-05-2009 12:09:25

hmmm.. I think I may know the issue here but need to get some more info from you.

I had made some changes related to editing hosts.. they are around the following scenario. Lets say you have a host called: host1.sub.example.com. There are two ways to put this in the system.

host1.sub example.com
Or
host1 sub.example.com

Depending on how you have created your domain structure there may be the two domains. Now the issue is that it is trying to find the right domain to put the host into since it actually is passed in as "host1.sub.example.com".. there may be a bit of strangeness lingering around on it.

If you could, give me an example of the domains you have in your system and the hosts that are/aren't working now. That way I can try and get a close approximation to recreate this issue with.

thanks

tmyoungjr

04-05-2009 13:56:29

in my case :

domain : globalinx.com

failhosts : external.globalinx.com / nyc.7606.1.globalinx.com (any of my other old hosts do the same)
passhosts : cosmo.globalinx.com (new host just added)

anton

04-05-2009 15:26:50

For me, most hosts are like "hostname.example.com", and a few "hostname.sub.example.net". I've tried a couple (not all), and it doesn't seem to make a difference (in other words, as far as I can tell I am unable to rename any hosts that existed prior to the upgrade to v9.05.02).

Also, if this means anything, you can tell by the color-coding of the FQDN of each host which portion is part of the hostname, and which portion is part of the domain name. They all are consistent, only the first part (before the 1st dot) is the hostname, the rest is domain name.

Does that give you something to do on? Let me know if you need more info.

Anton

anton

04-05-2009 15:59:25

Update: I found 1 old record so far that I can actually rename. There is nothing special or different about that particular one that I recognize, so I can't make much sense of it.

Matt

04-05-2009 20:27:46

OK, not real sure why this would be happening off the top of my head. So far I'm unable to re-create the issue. If you guys could do the following it would help (hopefully).

1. Using the wonderful new system configuration editor, set the debug level to 6
2. Edit one of the names but dont hit save yet
3. tail -f /var/log/ona.log
4. hit save in the editor and then email me the output.

Clean up any data if needed (I promise I wont be sharing info with anyone else). It should give me an idea of what it is or isnt doing.

Lets start there.. I've got other measures we can take but hopefully this will get me the info I need on what is going on.

Thanks.

tmyoungjr

05-05-2009 06:26:42

i was watching the logs prior - and nothing obvious jumped out - coming atcha

anton

05-05-2009 16:41:09

I've emailed the info also.

By the way, nice going on the System Config editor. 8-)

tmyoungjr

07-05-2009 13:10:03

Just cause i'm annoying any updates on this? (its not holding me up or anything - im just bein nosy :) ) - shall a bug report be filed for thoroughness?

Matt

07-05-2009 16:55:40

First off.. Always send me reminders and nudges to keep me going.. sometimes I loose track of conversations and things to be done.. definitely opening bug reports helps keep them in my mind (though I can forget about those too).

Second, the reason you've not heard much from me is that my job is taking precedence. There has been some "fun" with some cisco routers and, well, its eaten every bit of time I have both in real life and to play with other things. (ARRRG CISCO AND YOUR CRAPPY SOFTWARE!!)

Third. The good news is, that I have finally re-created the issue and I'm debugging it now. Both of your loggs have helped me narrow it down. I expect to have a fix shortly, real world permitting.

Hope that helps! :)

Matt

07-05-2009 17:25:10

ok I think I got it!

if you wanna fix right now then here is how:

on or about line 1080 of the file /opt/ona/www/modules/ona/dns_record.inc.php you will need to add the following bold portion.

// Check the date formatting etc
if (isset($options['set_ebegin']) and $options['set_ebegin'] != $dns['ebegin']) {
// format the time that was passed in for the database, leave it as 0 if they pass it as 0
$options['set_ebegin'] = ($options['set_ebegin'] == '0' ? 0 : date('Y-m-j G:i:s',strtotime($options['set_ebegin'])) );

It will probably be at least a week before I can do another release due to being way busy at work etc.

The problem was that it was not updating the ebegin date when an edit happened, so it skipped over the actual record update.

anton

07-05-2009 19:14:40

That seems to have done it! I've tried a couple ones that didn't work before, and a newly created one for good measure, and they're all fine now.

:D :D :D

Thanks very much, especially for doing this while very busy with work etc. (I know how that is!).

Anton

Matt

07-05-2009 20:33:08

Sweet! Glad it worked for you..

Now its on to.... the next bug...... duh dun dun.......................................... :)

tmyoungjr

08-05-2009 09:36:54

Second, the reason you've not heard much from me is that my job is taking precedence. There has been some "fun" with some cisco routers and, well, its eaten every bit of time I have both in real life and to play with other things. (ARRRG CISCO AND YOUR CRAPPY SOFTWARE!!)


haha .. "please to be upgrading your IOS - it *might* fix your problem but in all reality it'll probably just mask it and introduce a number of others!"

i prefer junipers :)

then again i'm working at a cisco shop again after a # of years doing cisco + junipers (as long as its not E-series - e-series junipers are 100x worse than any cisco out there)

tmyoungjr

08-05-2009 09:41:23

on topic tho - that fix does work just fine for me!

dont kill yourself getting another release out ! just get SVN working ;-)

oh and the wiki isn't editable - so we cant add docs or the like - at least i haven't figured out how to edit it yet!

Matt

11-05-2009 15:51:56

I just created a section in the wiki for user contributed documentation. It will be a place to let users put howtos, documentation, guides, etc. And for those willing to actually write more "official" documentation, I'll put those pages into the real links that are used when you hit the "?" buttons in the app.

tmyoungjr

15-05-2009 21:29:24

awesome on the wiki - ive been in dallas this week - once im back - im sure i'll make more noise here!