This is a multi-part message in MIME format.
--------------020804060604000406080607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 12/03/2012 11:47 AM, Cristian Falcas wrote:
On Mon, Dec 3, 2012 at 9:08 AM, Roy Golan <rgolan(a)redhat.com
<mailto:rgolan@redhat.com>> wrote:
On 12/02/2012 10:52 PM, Cristian Falcas wrote:
>
>
>
> On Fri, Nov 30, 2012 at 1:53 AM, Cristian Falcas
> <cristi.falcas(a)gmail.com <mailto:cristi.falcas@gmail.com>> wrote:
>
> Hi all,
>
> 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:
>
> 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
> 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
> 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..
> Exception message is: DNS name not found [response code 3]
> Possible causes: missing DNS entries in the DNS server or DNS
> resolving issues from engine-core machine.
> Please Ensure correct DNS entries exist in the DNS server and
> ensure the DNS server is reachable from the engine-core machine.
> 2012-11-30 01:38:37,523 DEBUG
> [org.ovirt.engine.core.utils.kerberos.ManageDomainsResult]
> Got null value.
> 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
>
>
> It looks like it's trying to get the info for " _ldap._tcp."
> instead of " _ldap._tcp.domain"?
>
> Best regards,
> Cristian Falcas
>
>
>
> Hi,
>
> 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?
>
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org <mailto:Users@ovirt.org>
>
http://lists.ovirt.org/mailman/listinfo/users
pls attach the whole log and the full command line.
_______________________________________________
Users mailing list
Users(a)ovirt.org <mailto:Users@ovirt.org>
http://lists.ovirt.org/mailman/listinfo/users
Also the file /etc/ovirt-engine/krb5.conf is not created.
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".
Command:
engine-manage-domains -action=add -domain=company.com
<
http://company.com> -provider=ActiveDirectory -user=user.name
<
http://user.name> -passwordFile=/tmp/pass
Logs:
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
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
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..
Exception message is: DNS name not found [response code 3]
Possible causes: missing DNS entries in the DNS server or DNS
resolving issues from engine-core machine.
Please Ensure correct DNS entries exist in the DNS server and ensure
the DNS server is reachable from the engine-core machine.
2012-12-02 22:56:48,033 DEBUG
[org.ovirt.engine.core.utils.kerberos.ManageDomainsResult] Got null value.
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
clearly a bug - I suspect its related to commit
bad73b624bf68f7817e9b2ecfcf9ef8489eea8f5 - the domain name is assumed to
be already in the config.
Yair - will you open the bug?
please look at the createConfigurationProvider
String domainName = getConfigValue(engineConfigExecutable,
engineConfigProperties, ConfigValues.DomainName); <<< domain from the
config. in "add" flow the domain isn't persisted yet
String ldapSecurityAuthentication =
getConfigValue(engineConfigExecutable,
engineConfigProperties,
ConfigValues.LDAPSecurityAuthentication);
ldapDnsResult = validateLdapServers(domainName);
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.
--------------020804060604000406080607
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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"
type="cite"><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
moz-do-not-send="true"
href="mailto:rgolan@redhat.com"
target="_blank">rgolan(a)redhat.com</a>&gt;</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 bgcolor="#FFFFFF" text="#000000">
<div>
<div class="h5">
<div>On 12/02/2012 10:52 PM, Cristian Falcas wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<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
moz-do-not-send="true"
href="mailto:cristi.falcas@gmail.com"
target="_blank">cristi.falcas(a)gmail.com</a>&gt;</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 moz-do-not-send="true" href="mailto:Users@ovirt.org"
target="_blank">Users(a)ovirt.org</a>
<a moz-do-not-send="true"
href="http://lists.ovirt.org/mailman/listinfo/users"
target="_blank">http://lists.ovirt.org/mailman/listinfo/user...
</pre>
</blockquote>
<br>
pls attach the whole log and the full command line.<br>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a moz-do-not-send="true"
href="http://lists.ovirt.org/mailman/listinfo/users"
target="_blank">http://lists.ovirt.org/mailman/listinfo/user...
<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
moz-do-not-send="true"
href="http://company.com">company.com</a>
-provider=ActiveDirectory -user=<a moz-do-not-send="true"
href="http://user.name">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>
</body>
</html>
--------------020804060604000406080607--