------=_Part_42054900_697715554.1354557760896
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Sorry, this is the correct one -
http://gerrit.ovirt.org/#/c/9683/
----- Original Message -----
From: "Yair Zaslavsky" <yzaslavs(a)redhat.com
To: "Roy Golan" <rgolan(a)redhat.com
Cc: users(a)ovirt.org
Sent: Monday, December 3, 2012 8:00:20 PM
Subject: Re: [Users] problems adding a domain
Suggested fix upstream (According to Roy's info - thanks Roy!)
----- Original Message -----
> From: "Yair Zaslavsky" <yzaslavs(a)redhat.com
> To: "Roy Golan" <rgolan(a)redhat.com
> Cc: users(a)ovirt.org
> Sent: Monday, December 3, 2012 2:38:42 PM
> Subject: Re: [Users] problems adding a domain
> Roy - yes, probably a bug.
> Either Ravi or I will take a look at this ASAP.
>
----- Original Message -----
>
> > From: "Roy Golan" <rgolan(a)redhat.com
>
> > To: "Cristian Falcas" <cristi.falcas(a)gmail.com>, "Yair
Zaslavsky"
> > <yzaslavs(a)redhat.com
>
> > Cc: users(a)ovirt.org
>
> > Sent: Monday, December 3, 2012 12:28:46 PM
>
> > Subject: Re: [Users] problems adding a domain
>
> > 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
> > > 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 > 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
> > > > >
http://lists.ovirt.org/mailman/listinfo/users
> > > >
> > >
> >
>
> > > > pls attach the whole log and the full command line.
> > >
> >
>
> > > > _______________________________________________
> > >
> >
>
> > > > Users mailing list
> > >
> >
>
> > > > Users(a)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
> > > -provider=ActiveDirectory -user= 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.
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
------=_Part_42054900_697715554.1354557760896
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head><style type=3D'text/css'>p { margin: 0;
}</style></head><body><=
div style=3D'font-family: times new roman,new york,times,serif; font-size: =
12pt; color: #000000'>Sorry, this is the correct one
-<br><br>http://gerrit=
.ovirt.org/#/c/9683/<br><br><br><hr
id=3D"zwchr"><blockquote style=3D"borde=
r-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#0=
00;font-weight:normal;font-style:normal;text-decoration:none;font-family:He=
lvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Yair
Zaslavsky" <=
;yzaslavs(a)redhat.com&gt;<br><b>To: </b>"Roy Golan"
&lt;rgolan(a)redhat.com&gt=
;<br><b>Cc: </b>users(a)ovirt.org<br><b>Sent:
</b>Monday, December 3, 2012 8:=
00:20 PM<br><b>Subject: </b>Re: [Users] problems adding a
domain<br><br><st=
yle>p { margin: 0; }</style><div style=3D"font-family: times new
roman,new =
york,times,serif; font-size: 12pt; color: #000000">Suggested fix upstream (=
According to Roy's info - thanks
Roy!)<br><br>http://gerrit.ovirt.org/#/c/9=
585/<br><br><br><br><br><hr
id=3D"zwchr"><blockquote style=3D"border-left:2=
px 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>"Yair
Zaslavsky" <yzaslav=
s(a)redhat.com&gt;<br><b>To: </b>"Roy Golan"
&lt;rgolan(a)redhat.com&gt;<br><b>=
Cc: </b>users(a)ovirt.org<br><b>Sent: </b>Monday, December 3, 2012
2:38:42 PM=
<br><b>Subject: </b>Re: [Users] problems adding a
domain<br><br><style>p { =
margin: 0; }</style><div style=3D"font-family: times new roman,new
york,tim=
es,serif; font-size: 12pt; color: #000000">Roy - yes, probably a
bug.<br>Ei=
ther Ravi or I will take a look at this
ASAP.<br><br><br><br><br><hr id=3D"=
zwchr"><blockquote style=3D"border-left:2px solid rgb(16, 16,
255);margin-l=
eft:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;te=
xt-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">=
<b>From: </b>"Roy Golan"
&lt;rgolan(a)redhat.com&gt;<br><b>To: </b>"Cristian =
Falcas" &lt;cristi.falcas(a)gmail.com&gt;, "Yair Zaslavsky"
<yzaslavs@redh=
at.com><br><b>Cc: </b>users(a)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
=20
=20
=20
=20
<div class=3D"moz-cite-prefix">On 12/03/2012 11:47 AM, Cristian
Falcas
wrote:<br
</div
<blockquote
cite=3D"mid:CAMo7R_fH3qqaoh8Q+=3DXw6Xihs1FjFWp7j9_OoQH8eP1q=
DABZEg(a)mail.gmail.com"><br
<div class=3D"gmail_extra"><br
<br
<div class=3D"gmail_quote">On Mon, Dec
3, 2012 at 9:08 AM, Roy
Golan <span dir=3D"ltr"><<a
href=3D"mailto:rgolan@redhat.com" =
target=3D"_blank">rgolan(a)redhat.com</a>&gt;</span
wrote:<br
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"
<div
<div
<div class=3D"h5"
<div>On 12/02/2012 10:52 PM, Cristian
Falcas wrote:<br
</div
</div
</div
<blockquote
<div
<div class=3D"h5"><br
<div class=3D"gmail_extra"><br
<br
<div
class=3D"gmail_quote">On Fri, Nov 30, 2012 at
1:53 AM, Cristian Falcas <span
dir=3D"ltr"><<a h=
ref=3D"mailto:cristi.falcas@gmail.com"
target=3D"_blank">cristi.falcas@gmai=
l.com</a>></span
wrote:<br
<blockquote class=3D"gmail_quote" style=3D"margin:0=
px 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.ConfigurationUt=
ils]
ConfigurationUtils.locate(): base is null,
name is
/etc/ovirt-engine/engine-manage-domains/engine-ma=
nage-domains.conf<br
2012-11-30
01:38:33,977 DEBUG
[org.apache.commons.configuration.ConfigurationUt=
ils]
Loading configuration from the absolute path
/etc/ovirt-engine/engine-manage-domains/engine-ma=
nage-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.ManageDomai=
nsResult]
Got null value.<br
2012-11-30 01:38:37,527 ERROR
[org.ovirt.engine.core.utils.kerberos.ManageDomai=
ns]
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=3D"mailto:Users@ovirt.org"
target=3D"_blank">Users(a)ovirt.org</a
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank"=
</pre
</blockquote
<br
pls attach the whole log and the full command line.<br
</div
<br
_______________________________________________<br
Users mailing list<br
<a
href=3D"mailto:Users@ovirt.org" target=3D"_blank">Users@ovir=
t.org</a><br
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/users" targe=
t=3D"_blank">http://lists.ovirt.org/mailman/listinfo/users&l...
<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=3Dadd -domain=3D<a href=3D"http://com=
pany.com" target=3D"_blank">company.com</a
-provider=3DActiveDirectory -user=3D<a
href=3D"http://user.name" ta=
rget=3D"_blank">user.name</a> -passwordFile=3D/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 =3D
getConfigValue(engineConfigExecutable,
engineConfigProperties,
ConfigValues.DomainName); &nbs=
p;
<<< domain from the config. in
"add" flow the doma=
in
isn't persisted yet<br
Stri=
ng ldapSecurityAuthentication =3D<br
 =
;
getConfigValue(engineConfigExec=
utable,<br
 =
; &n=
bsp; engineConfigProperties,<br
 =
; &n=
bsp;
ConfigValues.LDAPSecurityAuthentication);<br
ldap=
DnsResult =3D
validateLdapServers(domainName); &nb=
sp; =
&nb=
sp;
<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
=20
</blockquote><br></div><br>_______________________________________________<=
br>Users mailing
list<br>Users@ovirt.org<br>http://lists.ovirt.org/mailman/=
listinfo/users<br></blockquote><br></div><br>______________________________=
_________________<br>Users mailing
list<br>Users@ovirt.org<br>http://lists.=
ovirt.org/mailman/listinfo/users<br></blockquote><br>&l...
------=_Part_42054900_697715554.1354557760896--