Seite 1 von 1

Network environment with a single letter tld

Verfasst: 06 Jul 2011, 16:53
von kaesi
Hi!

I just started evaluating Opsi if it would fit our environment. However, there's a problem with our network since our domain has a single letter tld (let's say foo.x). Hostname opsidemo.foo.x resolves just fine in our network but opsiconfd wouldn't run. I got it running by modifying the regular expression which checks the domain. The next problem I encountered was the Java UI which would need more work to "fix" the issue.

I'm uncomfortable with the idea of modifying the source code until I get it to accept our domain as things will break with the next update. And changing our domain isn't an option because things might break. Is there any other workaround or even a fix for this problem?

Regards, Jani

Re: Network environment with a single letter tld

Verfasst: 07 Jul 2011, 10:11
von r.roeder
Hi,

please send the exact error message or other form of problem that occurs. This would be a help to check the problem.

Greetings,

Rupert

Re: Network environment with a single letter tld

Verfasst: 07 Jul 2011, 13:15
von kaesi
This is the error message from opsiconfd:

Code: Alles auswählen

Starting opsi config service..Traceback:
     line 733 in 'main' in file '/usr/lib/pymodules/python2.6/opsiconfd/opsiconfd.py'
     line 467 in '__init__' in file '/usr/lib/pymodules/python2.6/opsiconfd/opsiconfd.py'
     line 531 in 'setDefaultConfig' in file '/usr/lib/pymodules/python2.6/opsiconfd/opsiconfd.py'
     line 215 in 'forceFqdn' in file '/usr/lib/pymodules/python2.6/OPSI/Types.py'
     ==>>> Bad fqdn: 'opsidemo.teoad.x'
ERROR: Bad fqdn: 'opsidemo.teoad.x'
And the error message returned by Java GUI:

Bild

Regards, Jani

Re: Network environment with a single letter tld

Verfasst: 10 Jul 2011, 16:54
von d.oertel
Hi,

we have to check this.
It may be that opsi requires a at least 2 letter tld........

regards

d.oertel

Re: Network environment with a single letter tld

Verfasst: 14 Jul 2011, 11:47
von kaesi
That is what I have gathered so far. Changing the regular expression in file Types.py gets the daemon running but doesn't actually solve the problem. Any help on this matter would be highly appreciated so I could test it in our environment and maybe deploy it as well.

I would assume there's no actual reason to require at least 2 letters long tld. Maybe this would be a change you could consider for next version? :)

Regards, Jani

Re: Network environment with a single letter tld

Verfasst: 14 Jul 2011, 15:50
von d.oertel
Hi,

yes this will be discussed starting the next major version.


regards

d.oertel