Re: [Freeipa-users] 'Request is a replay'

2012-09-09 Thread Sigbjorn Lie

On 09/08/2012 01:34 AM, Dmitri Pal wrote:

On 07/26/2012 09:37 AM, Sigbjorn Lie wrote:

On 07/26/2012 02:53 PM, Rob Crittenden wrote:

Sigbjorn Lie wrote:

On Wed, July 25, 2012 09:54, Sigbjorn Lie wrote:

On Tue, July 24, 2012 20:29, Simo Sorce wrote:


On Tue, 2012-07-24 at 10:22 +0200, Sigbjorn Lie wrote:



Hi,



I keep seing this error message in our production environment
Request is a replay in
variuos services using kerberos like ssh, sssd, automounter,
squid +++ after the upgrade to
RHEL 6.3 /
IPA
2.2.




Jul 24 10:16:11 server027 sssd_be: GSSAPI Error: Unspecified GSS
failure.  Minor code may
provide more information (Request is a replay)

Seaching google seem to suggest that this is an error with time.
However we have NTP
configured (IPA servers as NTP servers) which is synchronized to
external NTP servers. There
has been no issue before, and I cannot find issue with the time
being out of sync on the
machines where this is happening.

This error usually appears only when a same request is found in the
replay cache. It shouldn't be related to time issues, in that case
you usually get clock-skew.

Can you tell me what operation was being performed by sssd when you
caught that error ? Can you check if immediately before another
identical operation had been
performed ?


That being said, I do have 1 IPA server (out of 3) that has
significantly higher CPU usage than
the other 2, the 15-minute load average is sitting at between 0.85
and 0.95 the entire day, where
ns-slapd 389-ds process is running at 100% most of the time.

Load: 1.02, 0.94, 0.87


In comparison the other two IPA servers has a 15-minute average
between 0.10 - 0.30 throughout
the day, and the ns-slapd process is far from being such a cpu hog.

On the server having high load, running even a command such as
ipactl status can take up to 20
seconds to complete, where Directory Service: RUNNING returns
after a second or so, and to list
the rest of the services takes the remainding 19 seconds.

Also the web interface on this particular IPA server is rendered
unusable, returning Limits
exceeded for the query for almost any action.

Restarting all the IPA servies (ipactl restart) on the problematic
host soemwhat improves the
situation, however that particular server returns to having heavy
load quickly.

Using logconv.pl to analyze the dirsrv access log file displays
that the server in question has
the lowest search queries per min with 106 queries/min. The other
servers have 710 search
queries/sec and 168 queries/sec.

For modifications all the IPA servers has about 5-6 queries/sec.
For unindexed searches the
problematic server is the server with the lowest number. It does
however have more than twice the
amount of GSSAPI binds than the other servers with over 61000
GSSAPI binds over a 17 hour period.


The problematic server is a physical server with 2 x AMD 2.4GHz
Quad core CPU and 8GB of RAM.


This issue is also impacting all the clients, where I see random
hangs with anything involving a
ldap or kerberos query to the IPA servers.

Any suggestions?



Anyone ?

I am starting to see the Replay error when using the ipa CLI tool
as well, causing the request
to drop out in an error.

ipa dnsrecord-show example.com hostname
ipa: ERROR: Local error: SASL(-1): generic failure: GSSAPI Error:
Unspecified GSS failure.  Minor
code may provide more information (Request is a replay)

Sorry, I had started a reply yesterday and got side-tracked and never
sent it.


I know that feeling. :)

For the one server is busier than others, how are your clients
configured? Are you using DNS SRV records?


We use DNS SRV records for everything LDAP that does support it -
SSSD and Linux automounter. Solaris clients, Red Hat 5 using nss_ldap,
and NetApp use statically configured machines, however this is the
second server in the server list for these machines. The primary
server got more than 7x more LDAP queries per minute, and the load on
the primary is much, much lower. All kerberos clients are using DNS
SRV for lookups, no static configuration there.

I see some hickups on the clients as well, when browsing nfs shares
(looking up UIDs), unlocking a client etc. It would seem like these
are related to the faulty IPA server with high load, as it seem to
respond very slowly to a lot of ldap queries too. I have tried
removing it from the DNS SRV records an hour ago, and things seem to
run smoother. A few services are still looking up there though, and
the load on the faulty server is still high even with fewer clients.
The primary server that's now receiving most of the queries barely
increased anything at all in CPU usage.


For the replay, are your servers running in bare metal or in VMs? How
about the clients? This sure seems like a time issue.

The time is configured as it has been for a long time. The physical
IPA servers are syncronized from external time sources, providing the
rest of the network with time. We have 2 physical servers and 1
virtual server. I 

Re: [Freeipa-users] openindiana ldap client

2012-09-09 Thread Sigbjorn Lie

On 09/07/2012 08:38 PM, Dmitri Pal wrote:

On 09/02/2012 12:58 PM, Sigbjorn Lie wrote:

On 09/02/2012 04:37 PM, Natxo Asenjo wrote:

hi,

Recently I have been playing with the zfs for its native nfs4 acl 
capabilities. I have used openindiana for this. For those wondering 
about openindiana, it is a distribution of the former opensolaris code.


I got the ldap client to work for retrieveing user/group info from 
ipa using the ldapclient command:


# ldapclient manual \
-a authenticationMethod=none \
-a defaultSearchBase=*dc=ipa,dc=asenjo,dc=nx* \
-a domainName=*ipa.asenjo.nx* \
-a defaultServerList=kdc.ipa.asenjo.nx \
-a serviceSearchDescriptor='passwd:dc=ipa,dc=asenjo,dc=nx?sub' \
-a serviceSearchDescriptor='group:dc=ipa,dc=asenjo,dc=nx?sub' [enter]

you need to enable the ldap/client service:

# svcadm enable ldap/client:default [enter]

After which, modify /etc/nsswitch.conf to add the ldap provider for 
passwd and group:


passwd: files ldap
group:  files ldap

That's it, test it:

# id admin
uid=64280(admin) gid=64280(admins) groups=64280(admins)

# getent passwd admin
admin:x:64280:64280:Administrator:/home/admin:/bin/bash

So it works. The kerberos stuff will be next ...

One thing I have not yet gotten to work is that these changes are 
not persistent accross reboots. The ldapclient config stays, but the 
service ldap/client does not start (stays disabled) and 
nsswitch.conf missess the ldap entries. So far I am fixing this from 
cfengine (gotta love it).


So apparently, for solaris 10 and newer versions, the procedure 
outlined in http://freeipa.com/page/ConfiguringSolarisClients is no 
longer necessary as far as the ldap client is concerned.



--
Groeten,
natxo


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Hi,

I'm using Nexenta as an IPA client, another derivative of 
OpenSolaris. I use a DUAProfile with ldapclient. This stays 
configured and the ldap/client service is enabled across reboots.



There is a DUAProfile included by default with IPA, but it requires 
some tweaking to support more than just the basic features. See this 
bugzilla for a more comprehensive example:


https://bugzilla.redhat.com/show_bug.cgi?id=815515


There is also some more info about configuring Solaris clients in 
this bugzilla:


https://bugzilla.redhat.com/show_bug.cgi?id=815533


Siggi, can you please review 
http://docs.fedoraproject.org/en-US/Fedora/17/html/FreeIPA_Guide/Configuring_an_IPA_Client_on_Solaris.html 
and confirm that this is correct and has the latest?


If you find some inconsistency would mind filing a fedora doc bug?


There are some issues in that document.

I have been working with Rob with regards to the previous 2 bugzilla doc 
bug's I opened:

https://bugzilla.redhat.com/show_bug.cgi?id=815533
https://bugzilla.redhat.com/show_bug.cgi?id=815515

These BZ covers configuring a DUA profile and configuring Solaris 10 as 
an IPA client.


I presume Rob's work will become the new Solaris 10 IPA Client 
documentation for both Fedora and RHEL?



Rgds,
Siggi

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users