<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>Roy - yes, probably a bug.<br>Either Ravi or I will take a look at this ASAP.<br><br><br><br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Roy Golan" <rgolan@redhat.com><br><b>To: </b>"Cristian Falcas" <cristi.falcas@gmail.com>, "Yair Zaslavsky" <yzaslavs@redhat.com><br><b>Cc: </b>users@ovirt.org<br><b>Sent: </b>Monday, December 3, 2012 12:28:46 PM<br><b>Subject: </b>Re: [Users] problems adding a domain<br><br>
<div class="moz-cite-prefix">On 12/03/2012 11:47 AM, Cristian Falcas
wrote:<br>
</div>
<blockquote cite="mid:CAMo7R_fH3qqaoh8Q+=Xw6Xihs1FjFWp7j9_OoQH8eP1qDABZEg@mail.gmail.com"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Dec 3, 2012 at 9:08 AM, Roy
Golan <span dir="ltr"><<a href="mailto:rgolan@redhat.com" target="_blank">rgolan@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div>
<div class="h5">
<div>On 12/02/2012 10:52 PM, Cristian Falcas wrote:<br>
</div>
</div>
</div>
<blockquote>
<div>
<div class="h5"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Nov 30, 2012 at
1:53 AM, Cristian Falcas <span dir="ltr"><<a href="mailto:cristi.falcas@gmail.com" target="_blank">cristi.falcas@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I had some problems with the beta version and
I tried again the nightly builds. i think that
somewhere in the code the domain is not added
correctly. Trying to add a domain, I got this
in the logs:<br>
<br>
2012-11-30 01:38:33,962 DEBUG
[org.apache.commons.configuration.ConfigurationUtils]
ConfigurationUtils.locate(): base is null,
name is
/etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
2012-11-30 01:38:33,977 DEBUG
[org.apache.commons.configuration.ConfigurationUtils]
Loading configuration from the absolute path
/etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
2012-11-30 01:38:37,523 ERROR
[org.ovirt.engine.core.utils.dns.DnsSRVLocator]
Error: could not find DNS SRV record name:
_ldap._tcp..<br>
Exception message is: DNS name not found
[response code 3]<br>
Possible causes: missing DNS entries in the
DNS server or DNS resolving issues from
engine-core machine.<br>
Please Ensure correct DNS entries exist in the
DNS server and ensure the DNS server is
reachable from the engine-core machine.<br>
2012-11-30 01:38:37,523 DEBUG
[org.ovirt.engine.core.utils.kerberos.ManageDomainsResult]
Got null value.<br>
2012-11-30 01:38:37,527 ERROR
[org.ovirt.engine.core.utils.kerberos.ManageDomains]
Failed reading current configuration. Details:
Could not locate LDAP servers to be used to
validate the input of the utility<br>
<br>
<br>
It looks like it's trying to get the info for
" _ldap._tcp." instead of "
_ldap._tcp.domain"?<br>
<br>
Best regards,<br>
Cristian Falcas<br>
</blockquote>
</div>
<br>
<br>
Hi, <br>
<br>
I still have the same error with the nighly
builds. Can anyone tell me is this is an error on
my side or if I should wait for a fix?<br>
<br>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
pls attach the whole log and the full command line.<br>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
<br>
Also the file /etc/ovirt-engine/krb5.conf is not created.<br>
<br>
Doing a tcpdump trace, I it's asking the dns server to resolve
the name "_ldap._tcp". The response is "Standard query response,
No such name". <br>
<br>
Command:<br>
engine-manage-domains -action=add -domain=<a href="http://company.com" target="_blank">company.com</a>
-provider=ActiveDirectory -user=<a href="http://user.name" target="_blank">user.name</a> -passwordFile=/tmp/pass<br>
<br>
Logs:<br>
<br>
2012-12-02 22:56:44,038 DEBUG
[org.apache.commons.configuration.ConfigurationUtils]
ConfigurationUtils.locate(): base is null, name is
/etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
2012-12-02 22:56:44,052 DEBUG
[org.apache.commons.configuration.ConfigurationUtils] Loading
configuration from the absolute path
/etc/ovirt-engine/engine-manage-domains/engine-manage-domains.conf<br>
2012-12-02 22:56:48,033 ERROR
[org.ovirt.engine.core.utils.dns.DnsSRVLocator] Error: could not
find DNS SRV record name: _ldap._tcp..<br>
Exception message is: DNS name not found [response code 3]<br>
Possible causes: missing DNS entries in the DNS server or DNS
resolving issues from engine-core machine.<br>
Please Ensure correct DNS entries exist in the DNS server and
ensure the DNS server is reachable from the engine-core machine.<br>
2012-12-02 22:56:48,033 DEBUG
[org.ovirt.engine.core.utils.kerberos.ManageDomainsResult] Got
null value.<br>
2012-12-02 22:56:48,050 ERROR
[org.ovirt.engine.core.utils.kerberos.ManageDomains] Failed
reading current configuration. Details: Could not locate LDAP
servers to be used to validate the input of the utility<br>
<br>
</div>
</blockquote>
clearly a bug - I suspect its related to commit
bad73b624bf68f7817e9b2ecfcf9ef8489eea8f5 - the domain name is
assumed to be already in the config.<br>
Yair - will you open the bug? <br>
please look at the createConfigurationProvider<br>
String domainName = getConfigValue(engineConfigExecutable,
engineConfigProperties, ConfigValues.DomainName);
<<< domain from the config. in "add" flow the domain
isn't persisted yet<br>
String ldapSecurityAuthentication =<br>
getConfigValue(engineConfigExecutable,<br>
engineConfigProperties,<br>
ConfigValues.LDAPSecurityAuthentication);<br>
ldapDnsResult =
validateLdapServers(domainName);
<br>
<br>
its using the domain name from the config instead of using whatever
passes to the parser object as an argument. this will work for
updating an existing domain but not for new ones. <br>
</blockquote><br></div></body></html>