Re: [Samba] [samba4] smbd processes never die after logoff
On Fri, May 24, 2013 at 03:15:03AM +0200, François Lafont wrote: Hello, I'm using Samba 4.0.5 in Debian Wheezy as a member server of a DC (in Debian Wheezy too with Samba 4.0.5) and the clients are Windows7 Pro. The users use shares in the member server. Sometimes, after the logoff of the users in the Win7 clients, there are connections with the member server whiches never stop. I can see it with the smbstatus command which point PID out to me and indeed with the « ps aux | grep smbd » I can see smbd processes whiches never die. I have try this in the smb.conf file : deadtime = 10 socket options = TCP_NODELAY SO_KEEPALIVE Can you try to add the socket options TCP_KEEPIDLE=120 TCP_KEEPINTVL=10 TCP_KEEPCNT=5 This should make the sessions go away more quickly in case the clients just go away. Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kont...@sernet.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] BDC needs a [profile] and [netlogon] share ?
Hi all, I have a BDC which uses the LDAP backend of my PDC. Unfortunately all the users who log-in in the morning and who are processed by this BDC, do not get their logon script executed. The BDC logs this error message: [2013/05/24 07:28:11.946577, 2] auth/auth.c:304(check_ntlm_password) check_ntlm_password: authentication for user [foobar] - [foobar] - [foobar] succeeded [2013/05/24 07:28:11.948108, 0] param/loadparm.c:8686(process_usershare_file) process_usershare_file: stat of /var/lib/samba/usershares/netlogon failed. File or directory not found [2013/05/24 07:28:12.976867, 0] param/loadparm.c:8686(process_usershare_file) process_usershare_file: stat of /var/lib/samba/usershares/netlogon failed. Access denied [2013/05/24 07:28:12.979372, 2] passdb/pdb_ldap.c:572(init_sam_from_ldap) init_sam_from_ldap: Entry found for user: foobar I did not understand, why the BDC looks for the netlogon at /var/lib/samba/usershares/netlogon so I double-checked my smb.conf, on both PDC and BDC. Here are the relevant option in smb.conf: ***PDC***smb.conf: [global] ... security = user passdb backend = ldapsam:ldap://172.16.0.1 logon script = %U.bat logon path = \\pdc\profiles\%U logon drive = U: domain logons = Yes preferred master = Yes local master = Yes domain master = Yes os level = 254 wins support = Yes ... [netlogon] comment = Logon batch path = /file01/netlogon write list = @Domain Admins [profiles] comment = Centralized Roaming Profiles path = /file01/profile read only = No browseable = No ***BDC***smb.conf: [global] ... security = user passdb backend = ldapsam:ldap://172.16.0.1/ logon script = \\pdc\netlogon\%U.bat logon path = \\pdc\profiles\%U logon drive = U: domain logons = Yes preferred master = No local master = No domain master = No os level = 20 password server = * ; wins server = 172.16.0.1 I realized that no [netlogon] and [profiles] share exist on the BDC. But there are no problems with profiles known for users who were handled by the BDC. Only logon scripts don't work? Is it possible that the option logon script = DOES NOT ALLOW the use of UNC path like I am using it? So this is the problem and samba falls back to the default path /var/lib/samba/usershares/netlogon and tries there to look for the logon script ??? If so, how should my [netlogon] share on the BDC look like? Do I have to rsync/copy the content of pdc://file01/netlogon to bdc:/somedir/netlogon and use following line on BDC's smb.conf? logon script = %U.bat [netlogon] comment = BDC Logon batch path = /somedir/netlogon write list = @Domain Admins Will that be enough or am I wrong? I would also like to know if I could use os level = 0 on the BDC, because I don't need/want that the BDC handles domain logon procedures,that would be the easiest way in my case. Now you ask why the heck I need it to run as BDC :-) It's because I don't can use winbind on the BDC and I need the correct mappings for user/groups. And that's only possible either by using winbind on BDC and idmapping, or you run as BDC and it uses the locally managed database of the PDC. In my case it was really much more easy to use the BDC method, because if I would use winbind it will result in different ids (these of winbind idmapping ranges) and access would be denied to lots of my existing shares. So in result I would have to chmod all of my used dirs/paths which is a lot of work. That's why I choosed the much more easy way as a BDC. But that's not very important, I'd just like to know if os level = 0 would be ok or cause some other troubles ? Any help and feedback really appreciated. Thanks to all Lucas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] BDC needs a [profile] and [netlogon] share ?
I looked through the smb.conf man page.It looks like login script should be relative to the netlogon directory.I would set up identical netlogon directories on both PDC and BDC. Bothe machines have the same login script parameter .e.g. logon script = %U.bat This means that you need to keep the login scripts in sync. If you update on the PDC, you should copy to the BDC netlogon directory. I don't use the login script param on my system. Instead, I use pdbedit to specify the login script used by each user.Each user uses the same login script any way so when I update it on the PDC I only have to replicate that one script to the other machines. It also makes it easy to have a test login script for one or two users only. Alternately, rather than having a separate login script for all users you could just have logon script = common.bat From a windows machine make sure you can see the netlogon share on each DC. On 05/24/13 06:55, ?icro MEGAS wrote: Hi all, I have a BDC which uses the LDAP backend of my PDC. Unfortunately all the users who log-in in the morning and who are processed by this BDC, do not get their logon script executed. The BDC logs this error message: [2013/05/24 07:28:11.946577, 2] auth/auth.c:304(check_ntlm_password) check_ntlm_password: authentication for user [foobar] - [foobar] - [foobar] succeeded [2013/05/24 07:28:11.948108, 0] param/loadparm.c:8686(process_usershare_file) process_usershare_file: stat of /var/lib/samba/usershares/netlogon failed. File or directory not found [2013/05/24 07:28:12.976867, 0] param/loadparm.c:8686(process_usershare_file) process_usershare_file: stat of /var/lib/samba/usershares/netlogon failed. Access denied [2013/05/24 07:28:12.979372, 2] passdb/pdb_ldap.c:572(init_sam_from_ldap) init_sam_from_ldap: Entry found for user: foobar I did not understand, why the BDC looks for the netlogon at /var/lib/samba/usershares/netlogon so I double-checked my smb.conf, on both PDC and BDC. Here are the relevant option in smb.conf: ***PDC***smb.conf: [global] ... security = user passdb backend = ldapsam:ldap://172.16.0.1 logon script = %U.bat logon path = \\pdc\profiles\%U logon drive = U: domain logons = Yes preferred master = Yes local master = Yes domain master = Yes os level = 254 wins support = Yes ... [netlogon] comment = Logon batch path = /file01/netlogon write list = @Domain Admins [profiles] comment = Centralized Roaming Profiles path = /file01/profile read only = No browseable = No ***BDC***smb.conf: [global] ... security = user passdb backend = ldapsam:ldap://172.16.0.1/ logon script = \\pdc\netlogon\%U.bat logon path = \\pdc\profiles\%U logon drive = U: domain logons = Yes preferred master = No local master = No domain master = No os level = 20 password server = * ; wins server = 172.16.0.1 I realized that no [netlogon] and [profiles] share exist on the BDC. But there are no problems with profiles known for users who were handled by the BDC. Only logon scripts don't work? Is it possible that the option logon script = DOES NOT ALLOW the use of UNC path like I am using it? So this is the problem and samba falls back to the default path /var/lib/samba/usershares/netlogon and tries there to look for the logon script ??? If so, how should my [netlogon] share on the BDC look like? Do I have to rsync/copy the content of pdc://file01/netlogon to bdc:/somedir/netlogon and use following line on BDC's smb.conf? logon script = %U.bat [netlogon] comment = BDC Logon batch path = /somedir/netlogon write list = @Domain Admins Will that be enough or am I wrong? I would also like to know if I could use os level = 0 on the BDC, because I don't need/want that the BDC handles domain logon procedures,that would be the easiest way in my case. Now you ask why the heck I need it to run as BDC :-) It's because I don't can use winbind on the BDC and I need the correct mappings for user/groups. And that's only possible either by using winbind on BDC and idmapping, or you run as BDC and it uses the locally managed database of the PDC. In my case it was really much more easy to use the BDC method, because if I would use winbind it will result in different ids (these of winbind idmapping ranges) and access would be denied to lots of my existing shares. So in result I would have to chmod all of my used dirs/paths which is a lot of work. That's why I choosed the much more easy way as a BDC. But that's not very important, I'd just like to know if os level = 0 would be ok or cause some other troubles ? Any help and feedback really appreciated. Thanks to all Lucas -- To unsubscribe from this list go to
Re: [Samba] [Announce] Samba 4.0.6 Available for Download : crash of winbind after ls -la ...sysvol
Hi You might try getting hold of one of the Samba developers on IRC and asking them about this. On 23 May 2013 13:59, philippe.simo...@swisscom.com wrote: Hi all, with this version, as in 4.0.5, i have always the windbind crash after wbinfo --uid-info 300 or ls -la sysvol/ my system 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux I already post here some information (no problem with 4.0.4, found last stable patch with bisect), could someone help me ? thanks and regards philippe -Original Message- From: samba-announce-boun...@lists.samba.org [mailto:samba-announce- boun...@lists.samba.org] On Behalf Of Karolin Seeger Sent: Tuesday, May 21, 2013 9:31 AM To: samba-annou...@samba.org; sa...@samba.org; samba- techni...@samba.org Subject: [Announce] Samba 4.0.6 Available for Download == === It's kind of fun to do the impossible. Walt Disney == === Release Announcements - This is is the latest stable release of Samba 4.0. Major enhancements in Samba 4.0.6 include: o Fix crash during Win8 sync (bug #9822). o Fix segfault when loging in with wrong password from w2k8r2 (bug #9834). Changes since 4.0.5: o Jeremy Allison j...@samba.org * BUG 9412: SMB2 server doesn't support recvfile. * BUG 9722: Properly handle oplock breaks in compound requests. * BUG 9777: vfs_dirsort uses non-stackable calls, dirfd(), malloc instead of talloc and doesn't cope with directories being modified whilst reading. * BUG 9811: Old DOS SMB CTEMP request uses a non-VFS function to access the filesystem. * BUG 9822: Fix crash during Win8 sync. o Anand Avati av...@redhat.com * BUG 9833: Function called in unix_convert() path can overwrite errno. o Andrew Bartlett abart...@samba.org * BUG 9785: Use specified python for runtime installation of Samba. * BUG 9834: Fix segfault when loging in with wrong password from w2k8r2. o Alexander Bokovoy a...@samba.org * BUG 9767: Fix 'net ads join' when called via stdin. o David Disseldorp dd...@samba.org * BUG 9807: wbinfo: Fix segfault in wbinfo_pam_logon. * BUG 9830: Fix panic in nt_printer_publish_ads. o Volker Lendecke v...@samba.org * BUG 9775: Fix segfault for artificial conn_structs in vfs_fake_perms. * BUG 9809: Package new dbwrap_tool man page. * BUG 9824: SMB signing and the async echo responder don't work together. * BUG 9832: talloc use after free in winbind4. * BUG 9854: Fix NULL pointer dereference in Winbind. * BUG 9868: Fix making LIBNDR_PREG_OBJ. o Stefan Metzmacher me...@samba.org * BUG 9545: Fix the build of vfs_notify_fam. * BUG 9803: Change '--with-dmapi' to 'default=auto' to match the autoconf build. * BUG 9804: wafsamba: Display the default value in help for SAMBA3_ADD_OPTION. * BUG 9382: Add support for PFC_FLAG_OBJECT_UUID when parsing packets. o Andreas Schneider a...@samba.org * BUG 9139: Fix the username map optimization. * BUG 9699: Fix adding case sensitive spn. * BUG 9766: Cache name_to_sid/sid_to_name correctly. * BUG 9817: Fix 'map untrusted to domain' with NTLMv2. o Richard Sharpe realrichardsha...@gmail.com * BUG 9722: Properly handle oplock breaks in compound requests. o Ralph Wuerthner ralph.wuerth...@de.ibm.com * BUG 9782: Fix panic when running 'smbtorture smb.base'. ### Reporting bugs Development Discussion ### Please discuss this release on the samba-technical mailing list or by joining the #samba-technical IRC channel on irc.freenode.net. If you do report problems then please try to send high quality feedback. If you don't provide vital information to help us track down the problem then you will probably be ignored. All bug reports should be filed under the Samba 4.0 product in the project's Bugzilla database (https://bugzilla.samba.org/). == == Our Code, Our Bugs, Our Responsibility. == The Samba Team == Download Details The uncompressed tarballs and patch files have been signed using GnuPG (ID 6568B7EA). The source code can be downloaded from: http://download.samba.org/samba/ftp/stable/ The release notes are available online at: http://www.samba.org/samba/history/samba-4.0.6.html Binary packages will
[Samba] Unable to get Samba-3.6.12 to authenticate using ADS
I have a Samba-4 system running as an Active Directory server. It's working great: computers are joined to it, users are logged in, etc. Good job Samba developers, and thank you! But of course I am not satisfied. Now I want to configure another server (well, a VM) as a file server using Samba-3.6.12. I want it to refer to the Samba4 server for all user authentication. My understanding of the documentation is that I set server = ads and join the samba3 system to my domain. I do not need to create any users/accounts on the Samba3 (fileserver) system. Am I right so far? But, it's not working -- it is not authenticating requests using the AD server. There are error messages coming out of Samba that I don't understand (no surprise there). I have read the relevant documentation, including the Domain Membership section, and I have followed the instructions here: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html#ads-member Here are the details. AD is Samba-4 running on samba-ad.allenlan.net (192.168.0.13). Fileserver is Samba-3.6.12 on smb-test-zone.allenlan.net (192.168.0.17). A Win7 PC named t110-win7-base.allenlan.net (192.168.0.93) is joined to the domain, user allenlan\lallen is logged in to it, and I attempt to map a share on the Samba-3.6.12 system using: # net use L: \\192.168.0.17\Lee this prompts for username (it should not), I enter allenlan\lallen (or allenlan.net\lallen), it prompts for password, and I enter that. The authentication fails - the log file is below. # cat /opt/local/etc/samba/smb.conf [global] workgroup = ALLENLAN server string = Samba %v (%h) realm = allenlan.net security = ads password server = 192.168.0.13 load printers = no guest account = guest (omitting the shares) # kinit administra...@allenlan.net # klist Credentials cache: FILE:/tmp/krb5cc_0 Principal: administra...@allenlan.net IssuedExpires Principal May 24 19:44:08 2013 May 25 05:44:08 2013 krbtgt/allenlan@allenlan.net # net ads join -U Administrator%password # net ads testjoin Join is OK # net ads info LDAP server: 192.168.0.13 LDAP server name: samba-ad.allenlan.net Realm: ALLENLAN.NET Bind Path: dc=ALLENLAN,dc=NET LDAP port: 389 Server time: Fri, 24 May 2013 19:44:36 UTC KDC server: 192.168.0.13 Server time offset: 0 # /opt/local/sbin/smbd -i -d3 -s /opt/local/etc/samba/smb.conf Maximum core file size limits now -3(soft) -3(hard) smbd version 3.6.12 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 uid=0 gid=0 euid=0 egid=0 lp_load_ex: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file /opt/local/etc/samba/smb.conf Processing section [global] Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED lp_load_ex: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file /opt/local/etc/samba/smb.conf Processing section [global] Processing section [Lee] adding IPC service added interface net0 ip=192.168.0.17 bcast=192.168.0.255 netmask=255.255.255.0 loaded services Initialise the svcctl registry keys if needed. Closed policy Closed policy Closed policy Closed policy Closed policy Closed policy Closed policy Closed policy Closed policy Initialise the eventlog registry keys if needed. Closed policy get_dc_list: preferred server list: samba-ad.allenlan.net, 192.168.0.13 Successfully contacted LDAP server 192.168.0.13 get_dc_list: preferred server list: samba-ad.allenlan.net, 192.168.0.13 get_dc_list: preferred server list: samba-ad.allenlan.net, 192.168.0.13 Successfully contacted LDAP server 192.168.0.13 Connected to LDAP server samba-ad.allenlan.net ads_sasl_spnego_bind: got OID=1.2.840.48018.1.2.2 ads_sasl_spnego_bind: got OID=1.2.840.113554.1.2.2 ads_sasl_spnego_bind: got OID=1.3.6.1.4.1.311.2.2.10 ads_sasl_spnego_bind: got server principal name = not_defined_in_RFC4178@please_ignore ads_krb5_mk_req: krb5_cc_get_principal failed (No such file or directory) ads_cleanup_expired_creds: Ticket in ccache[MEMORY:prtpub_cache] expiration Sat, 25 May 2013 05:46:13 UTC reloading printcap cache No Printers found!!! reload status: error waiting for connections Allowed connection from 192.168.0.93 (192.168.0.93) init_oplocks: initializing messages. Transaction 0 of length 159 (0 toread) switch message SMBnegprot (pid 85924) conn 0x0 Requested protocol [PC NETWORK PROGRAM 1.0] Requested protocol [LANMAN1.0] Requested protocol [Windows for Workgroups 3.1a] Requested protocol [LM1.2X002] Requested protocol [LANMAN2.1] Requested protocol [NT LM 0.12] Requested protocol [SMB 2.002] Requested protocol [SMB 2.???] using SPNEGO Selected protocol NT LM 0.12 Transaction 1 of length 1622 (0 toread) switch message SMBsesssetupX (pid 85924) conn 0x0 wct=12 flg2=0xc807 setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. Doing spnego session setup NativeOS=[]
[SCM] CTDB repository - branch master updated - ctdb-2.1-198-gc574309
The branch, master has been updated via c57430998a3bdedc8a904eb3a9cdfde1421aff50 (commit) via f15dd562fd8c08cafd957ce9509102db7eb49668 (commit) via c0c27762ea728ed86405b29c642ba9e43200f4ae (commit) via 1190bb0d9c14dc5889c2df56f6c8986db23d81a1 (commit) via 40e34773b8063196457746ffe7a048eb87d96d61 (commit) via 03fd90d41f9cd9b8c42dc6b8b8d46ae19101a544 (commit) via 473cfcb019f0cb4a094bf10397f7414f7923ee57 (commit) via f6792f478197774d2f3b2258c969b67c83e017ab (commit) from c50eca6fbf49a6c7bf50905334704f8d2d3237d7 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit c57430998a3bdedc8a904eb3a9cdfde1421aff50 Author: Martin Schwenke mar...@meltin.net Date: Mon May 6 20:31:08 2013 +1000 tests/takeover: New tests to check runstate handling Signed-off-by: Martin Schwenke mar...@meltin.net commit f15dd562fd8c08cafd957ce9509102db7eb49668 Author: Martin Schwenke mar...@meltin.net Date: Mon May 6 15:36:29 2013 +1000 recoverd: Nodes can only takeover IPs if they are in runstate RUNNING Currently the order of the first IP allocation, including the first ipreallocated event, and the startup event is undefined. Both of these events can (re)start services. This stops IPs being hosted before the startup event has completed. Signed-off-by: Martin Schwenke mar...@meltin.net Pair-programmed-with: Amitay Isaacs ami...@gmail.com commit c0c27762ea728ed86405b29c642ba9e43200f4ae Author: Martin Schwenke mar...@meltin.net Date: Thu May 23 19:03:11 2013 +1000 recoverd: Handle errors carefully when fetching tunables If a tunable is not implemented on a remote node then this should not be fatal. In this case the takeover run can continue using benign defaults for the tunables. However, timeouts and any unexpected errors should be fatal. These should abort the takeover run because they can lead to unexpected IP movements. Signed-off-by: Martin Schwenke mar...@meltin.net commit 1190bb0d9c14dc5889c2df56f6c8986db23d81a1 Author: Martin Schwenke mar...@meltin.net Date: Thu May 23 19:01:01 2013 +1000 recoverd: Set explicit default value when getting tunable from nodes Both of the current defaults are implicitly 0. It is better to make the defaults obvious. Signed-off-by: Martin Schwenke mar...@meltin.net commit 40e34773b8063196457746ffe7a048eb87d96d61 Author: Martin Schwenke mar...@meltin.net Date: Thu May 23 16:09:38 2013 +1000 client: async_callback() sets result to -ETIME if a control times out Otherwise there is no way of treating a timeout differently to a general failure. Signed-off-by: Martin Schwenke mar...@meltin.net Pair-programmed-with: Amitay Isaacs ami...@gmail.com commit 03fd90d41f9cd9b8c42dc6b8b8d46ae19101a544 Author: Martin Schwenke mar...@meltin.net Date: Tue May 21 15:41:56 2013 +1000 ctdbd: Update the get_tunable code to return -EINVAL for unknown tunable Otherwise callers can't tell the difference between some other failure (e.g. memory allocation failure) and an unknown tunable. Signed-off-by: Martin Schwenke mar...@meltin.net commit 473cfcb019f0cb4a094bf10397f7414f7923ee57 Author: Martin Schwenke mar...@meltin.net Date: Wed May 22 17:19:34 2013 +1000 recoverd: Whitespace improvements Signed-off-by: Martin Schwenke mar...@meltin.net commit f6792f478197774d2f3b2258c969b67c83e017ab Author: Martin Schwenke mar...@meltin.net Date: Wed May 22 20:56:03 2013 +1000 recoverd: Use talloc_array_length() for simpler code Signed-off-by: Martin Schwenke mar...@meltin.net --- Summary of changes: client/ctdb_client.c|7 +- server/ctdb_takeover.c | 211 +++ server/ctdb_tunables.c |2 +- tests/src/ctdb_takeover_tests.c | 30 - tests/takeover/lcp2.024.sh | 42 ++ tests/takeover/{lcp2.007.sh = lcp2.025.sh} | 24 ++-- tests/takeover/{lcp2.007.sh = lcp2.026.sh} | 24 ++-- tools/ctdb.c|2 +- 8 files changed, 287 insertions(+), 55 deletions(-) create mode 100755 tests/takeover/lcp2.024.sh copy tests/takeover/{lcp2.007.sh = lcp2.025.sh} (71%) copy tests/takeover/{lcp2.007.sh = lcp2.026.sh} (70%) Changeset truncated at 500 lines: diff --git a/client/ctdb_client.c b/client/ctdb_client.c index e930bff..334d830 100644 --- a/client/ctdb_client.c +++ b/client/ctdb_client.c @@ -2502,7 +2502,7 @@ int ctdb_ctrl_get_tunable(struct ctdb_context *ctdb, talloc_free(data.dptr); if (ret != 0 || res != 0) { DEBUG(DEBUG_ERR,(__location__ ctdb_control for get_tunable failed\n));
[SCM] CTDB repository - branch master updated - ctdb-2.1-202-g32723c9
The branch, master has been updated via 32723c9efdad1c6ca4aa53f308ccd9bef1aadfff (commit) from b697625b184227dad1be31a41b7a3fd9bd312e29 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit 32723c9efdad1c6ca4aa53f308ccd9bef1aadfff Author: Amitay Isaacs ami...@gmail.com Date: Fri May 24 18:07:39 2013 +1000 vacuum: Reduce the priority of non-critical error Since the complete database is not locked when the receive_records control is received, it's possible that we may not be able to obtain lock on a chain. We will try again to store this record. Signed-off-by: Amitay Isaacs ami...@gmail.com Reviewed-by: Michael Adam ob...@samba.org --- Summary of changes: server/ctdb_recover.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/server/ctdb_recover.c b/server/ctdb_recover.c index 6506f8b..7a8b0bb 100644 --- a/server/ctdb_recover.c +++ b/server/ctdb_recover.c @@ -1138,7 +1138,7 @@ static int store_tdb_record(struct ctdb_context *ctdb, /* use a non-blocking lock */ if (tdb_chainlock_nonblock(ctdb_db-ltdb-tdb, key) != 0) { - DEBUG(DEBUG_ERR, (__location__ Failed to lock chain\n)); + DEBUG(DEBUG_INFO, (__location__ Failed to lock chain in non-blocking mode\n)); return -1; } -- CTDB repository
[SCM] CTDB repository - branch master updated - ctdb-2.1-206-g75a620c
The branch, master has been updated via 75a620c516e384f042b5d675183b3a1b48fd6115 (commit) via cfd1371d3a1f78a0ed86485d83bd4d311727c3d4 (commit) via ef35c8889d90220929e48e66eb62da9ea2025ede (commit) via 954ae6f84cb06a8dcbc12456d4752280072be5bf (commit) from 32723c9efdad1c6ca4aa53f308ccd9bef1aadfff (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit 75a620c516e384f042b5d675183b3a1b48fd6115 Author: Martin Schwenke mar...@meltin.net Date: Fri Apr 5 20:47:47 2013 +1100 tests/takeover: New test with 900 IPs commit cfd1371d3a1f78a0ed86485d83bd4d311727c3d4 Author: Martin Schwenke mar...@meltin.net Date: Fri Apr 5 20:45:08 2013 +1100 tests/takeover: Takeover tests can use up to 1024 and checks limits Signed-off-by: Martin Schwenke mar...@meltin.net commit ef35c8889d90220929e48e66eb62da9ea2025ede Author: Martin Schwenke mar...@meltin.net Date: Mon Apr 8 14:37:44 2013 +1000 tests/takeover: LCP2 tests for weird, unbalanced corner-cases 2 tests to show a bad result and a 3rd test for the fix. Signed-off-by: Martin Schwenke mar...@meltin.net commit 954ae6f84cb06a8dcbc12456d4752280072be5bf Author: Martin Schwenke mar...@meltin.net Date: Mon Apr 8 14:37:08 2013 +1000 tests/takeover: Allow takeover runs with differing IP allocations per node Signed-off-by: Martin Schwenke mar...@meltin.net --- Summary of changes: tests/src/ctdb_takeover_tests.c | 71 ++- tests/takeover/lcp2.027.sh | 45 + tests/takeover/lcp2.028.sh | 45 + tests/takeover/lcp2.029.sh | 111 +++ tests/takeover/lcp2.030.sh | 1813 +++ tests/takeover/scripts/local.sh |3 +- 6 files changed, 2075 insertions(+), 13 deletions(-) create mode 100755 tests/takeover/lcp2.027.sh create mode 100755 tests/takeover/lcp2.028.sh create mode 100755 tests/takeover/lcp2.029.sh create mode 100755 tests/takeover/lcp2.030.sh Changeset truncated at 500 lines: diff --git a/tests/src/ctdb_takeover_tests.c b/tests/src/ctdb_takeover_tests.c index 196f90d..1aa0620 100644 --- a/tests/src/ctdb_takeover_tests.c +++ b/tests/src/ctdb_takeover_tests.c @@ -21,7 +21,7 @@ /* This is lazy... but it is test code! */ #define CTDB_TEST_MAX_NODES 256 -#define CTDB_TEST_MAX_IPS 256 +#define CTDB_TEST_MAX_IPS 1024 /* Format of each line is IP pnn - the separator has to be at least * 1 space (not a tab or whatever - a space!). @@ -127,6 +127,11 @@ read_ctdb_public_ip_info(TALLOC_CTX *ctx, *t = '\0'; } + /* Exit on an empty line */ + if (line[0] == '\0') { + break; + } + /* Get the IP address */ tok = strtok(line, \t); if (tok == NULL) { @@ -140,6 +145,10 @@ read_ctdb_public_ip_info(TALLOC_CTX *ctx, } numips++; + if (numips CTDB_TEST_MAX_IPS) { + DEBUG(DEBUG_ERR, (ERROR: Exceeding CTDB_TEST_MAX_IPS: %d\n, CTDB_TEST_MAX_IPS)); + exit(1); + } /* Get the PNN */ pnn = -1; @@ -236,6 +245,10 @@ void ctdb_test_read_ctdb_public_ip_info(const char nodestates[]) tok = strtok(ns, ,); while (tok != NULL) { numnodes++; + if (numnodes CTDB_TEST_MAX_NODES) { + DEBUG(DEBUG_ERR, (ERROR: Exceeding CTDB_TEST_MAX_NODES: %d\n, CTDB_TEST_MAX_NODES)); + exit(1); + } tok = strtok(NULL, ,); } @@ -377,10 +390,26 @@ static enum ctdb_runstate *get_runstate(TALLOC_CTX *tmp_ctx, return runstate; } +/* Fake up enough CTDB state to be able to run the IP allocation + * algorithm. Usually this sets up some standard state, sets the node + * states from the command-line and reads the current IP layout from + * stdin. + * + * However, if read_ips_for_multiple_nodes is true then each node's + * idea of the IP layout is read separately from stdin. In this mode + * is doesn't make much sense to use read_ctdb_public_ip_info's + * optional ALLOWED_PNN,... list in the input, since each node is + * being handled separately anyway. IPs for each node are separated + * by a blank line. This mode is for testing weird behaviours where + * the IP layouts differs across nodes and we want to improve + * create_merged_ip_list(), so should only be used in tests of + * ctdb_takeover_run_core(). Yes, it is a hack... :-) + */ void ctdb_test_init(const char nodestates[], struct ctdb_context **ctdb, struct ctdb_public_ip_list **all_ips, - struct ctdb_ipflags **ipflags) + struct
autobuild: intermittent test failure detected
The autobuild test system has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey/2013-05-24-1542/flakey.log The samba3 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-24-1542/samba3.stderr http://git.samba.org/autobuild.flakey/2013-05-24-1542/samba3.stdout The source4 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-24-1542/samba.stderr http://git.samba.org/autobuild.flakey/2013-05-24-1542/samba.stdout The top commit at the time of the failure was: commit e24fe5705e3c4d33705ebb584ea2009bb4a1a82c Author: Stefan Metzmacher me...@samba.org Date: Fri May 17 23:18:55 2013 +0200 libnet-vampire: make use of dsdb_repl_resolve_working_schema() Pair-Programmed-With: Matthieu Patou m...@matws.net Signed-off-by: Stefan Metzmacher me...@samba.org Reviewed-by: Andrew Bartlett abart...@samba.org Autobuild-User(master): Andrew Bartlett abart...@samba.org Autobuild-Date(master): Thu May 23 14:18:03 CEST 2013 on sn-devel-104
autobuild: intermittent test failure detected
The autobuild test system has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey/2013-05-24-1742/flakey.log The samba3 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-24-1742/samba3.stderr http://git.samba.org/autobuild.flakey/2013-05-24-1742/samba3.stdout The source4 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-24-1742/samba.stderr http://git.samba.org/autobuild.flakey/2013-05-24-1742/samba.stdout The top commit at the time of the failure was: commit e24fe5705e3c4d33705ebb584ea2009bb4a1a82c Author: Stefan Metzmacher me...@samba.org Date: Fri May 17 23:18:55 2013 +0200 libnet-vampire: make use of dsdb_repl_resolve_working_schema() Pair-Programmed-With: Matthieu Patou m...@matws.net Signed-off-by: Stefan Metzmacher me...@samba.org Reviewed-by: Andrew Bartlett abart...@samba.org Autobuild-User(master): Andrew Bartlett abart...@samba.org Autobuild-Date(master): Thu May 23 14:18:03 CEST 2013 on sn-devel-104
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 39d7982 building RPMs on RHEL fail because of a typo. from e24fe57 libnet-vampire: make use of dsdb_repl_resolve_working_schema() http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 39d7982625ba05befa7bc2430a79d44984eb410e Author: Anand Avati av...@redhat.com Date: Fri May 24 12:23:06 2013 -0700 building RPMs on RHEL fail because of a typo. Signed-off-by: Anand Avati av...@redhat.com Reviewed-by: Jeremy Allison j...@samba.org Reviewed-by: Simo Sorce i...@samba.org Autobuild-User(master): Jeremy Allison j...@samba.org Autobuild-Date(master): Sat May 25 01:04:37 CEST 2013 on sn-devel-104 --- Summary of changes: packaging/RHEL/samba.spec.tmpl |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index 7df7cb5..05e46e1 100644 --- a/packaging/RHEL/samba.spec.tmpl +++ b/packaging/RHEL/samba.spec.tmpl @@ -2,7 +2,7 @@ %define auth %(test -f /etc/pam.d/system-auth echo /etc/pam.d/system-auth || echo) %define this_is_redhat %(test -e /etc/redhat-release echo 1 || echo 0) %if %{this_is_redhat} 0 -%define rhel_ver %(grep release /etc/redhat-release | sed %s/^[^0-9]*\\([0-9]*\\).*/\\1/g) +%define rhel_ver %(grep release /etc/redhat-release | sed s/^[^0-9]*\\([0-9]*\\).*/\\1/g) %else %define rhel_ver 0 %endif -- Samba Shared Repository
autobuild: intermittent test failure detected
The autobuild test system has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey/2013-05-25-0138/flakey.log The samba3 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-25-0138/samba3.stderr http://git.samba.org/autobuild.flakey/2013-05-25-0138/samba3.stdout The source4 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-25-0138/samba.stderr http://git.samba.org/autobuild.flakey/2013-05-25-0138/samba.stdout The top commit at the time of the failure was: commit e24fe5705e3c4d33705ebb584ea2009bb4a1a82c Author: Stefan Metzmacher me...@samba.org Date: Fri May 17 23:18:55 2013 +0200 libnet-vampire: make use of dsdb_repl_resolve_working_schema() Pair-Programmed-With: Matthieu Patou m...@matws.net Signed-off-by: Stefan Metzmacher me...@samba.org Reviewed-by: Andrew Bartlett abart...@samba.org Autobuild-User(master): Andrew Bartlett abart...@samba.org Autobuild-Date(master): Thu May 23 14:18:03 CEST 2013 on sn-devel-104
autobuild: intermittent test failure detected
The autobuild test system has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey/2013-05-25-0340/flakey.log The samba3 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-25-0340/samba3.stderr http://git.samba.org/autobuild.flakey/2013-05-25-0340/samba3.stdout The source4 build logs are available here: http://git.samba.org/autobuild.flakey/2013-05-25-0340/samba.stderr http://git.samba.org/autobuild.flakey/2013-05-25-0340/samba.stdout The top commit at the time of the failure was: commit 39d7982625ba05befa7bc2430a79d44984eb410e Author: Anand Avati av...@redhat.com Date: Fri May 24 12:23:06 2013 -0700 building RPMs on RHEL fail because of a typo. Signed-off-by: Anand Avati av...@redhat.com Reviewed-by: Jeremy Allison j...@samba.org Reviewed-by: Simo Sorce i...@samba.org Autobuild-User(master): Jeremy Allison j...@samba.org Autobuild-Date(master): Sat May 25 01:04:37 CEST 2013 on sn-devel-104