Return-Path: Received: from mailhub-auth-3.mit.edu (MAILHUB-AUTH-3.MIT.EDU [18.9.21.43]) by krbdev.mit.edu (Postfix) with ESMTPS id 7E1B73EB50 for ; Tue, 27 Aug 2013 12:19:23 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id r7RGJMWW029320 for ; Tue, 27 Aug 2013 12:19:23 -0400 Received: from cathode-dark-space.mit.edu (cathode-dark-space.mit.edu [18.18.1.96]) (authenticated bits=56) (User authenticated as tlyu@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7RGJLgq013165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 27 Aug 2013 12:19:22 -0400 Received: (from tlyu@localhost) by cathode-dark-space.mit.edu (8.12.9.20060308) id r7RGJLit019760; Tue, 27 Aug 2013 12:19:21 -0400 (EDT) Resent-To: rt-comment@krbdev.MIT.EDU Resent-From: Tom Yu Resent-Date: Tue, 27 Aug 2013 12:19:21 -0400 Resent-Message-ID: Received: from mailhub-dmz-4.mit.edu (mailhub-dmz-4.mit.edu [18.7.62.38]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id r7R3d0Dv031844 for ; Mon, 26 Aug 2013 23:39:00 -0400 Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) by mailhub-dmz-4.mit.edu (8.13.8/8.9.2) with ESMTP id r7R3cpbO011101 for ; Mon, 26 Aug 2013 23:39:00 -0400 X-Auditid: 1209190d-b7f078e000000937-55-521c1f544793 Authentication-Results: symauth.service.identifier Received: from mxecd08.gs.com (mxe7.gs.com [204.4.178.100]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id EC.B8.02359.45F1C125; Mon, 26 Aug 2013 23:39:00 -0400 (EDT) X-Ironport-Av: E=Sophos;i="4.89,965,1367985600"; d="scan'208";a="23567014" Received: from unknown (HELO mxpbd01-public.ny.fw.gs.com) ([148.86.115.129]) by mxecd08.idz.gs.com with ESMTP; 26 Aug 2013 23:38:59 -0400 From: "Basch, Richard" X-Sendergroup: RELAYLIST Received: from gshcnhp01ex.firmwide.corp.gs.com ([154.4.115.137]) by mxpbd01.ny.fw.gs.com with ESMTP; 26 Aug 2013 23:38:59 -0400 Received: from GSCMAMP28EX.firmwide.corp.gs.com ([139.172.38.76]) by gshcnhp01ex.firmwide.corp.gs.com ([154.4.115.137]) with mapi; Mon, 26 Aug 2013 23:38:58 -0400 To: "'Richard Basch'" , "krbdev@mit.edu" Date: Mon, 26 Aug 2013 23:38:58 -0400 Subject: RE: [krbdev.mit.edu #7695] AutoReply: krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated Thread-Topic: [krbdev.mit.edu #7695] AutoReply: krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated Thread-Index: Ac6cYhyM71adIhhoSuehsJ/d2YadNQEq7cowAG8bI8AAAdDQ4AABS6Yw Message-ID: <4C7FD47FC2B3704C9243AFFAE1EEDB4C028F57BEF3@GSCMAMP28EX.firmwide.corp.gs.com> References: <045301cea10e$750307b0$5f091710$@mit.edu> <05a201cea2d3$c86c8f40$5945adc0$@mit.edu> In-Reply-To: <05a201cea2d3$c86c8f40$5945adc0$@mit.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-Tnef-Correlator: Acceptlanguage: en-US X-Retentionstamp: Firmwide Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSa0hTYRjet53Ns+Gpz+Mun9NRnepPOm9ZiEgkQUQFloRQf+rkvtzYRTln itofW5FhJmZpNehiVqMLCUpXA9s0yKHOBlbECmGzaEWKdCWpzvForT8f7/c+z/s8z/udQyro HpWRxHVuzLlYB6PSECNEr8W8a1lGWW5kUlvoe6PaCLZ4Rp4odoA9mmILdthqMZezYZ/GOvi7 S1kdX1nXcrtP3gjaTc1ATSJYgKbGg0liDWA+6h+LK6W+Ho2/6VE1Aw1Jwy456v3oUUhAKboa aQQS0AJQ+8+3RDMgSRU0o5fdW8USQYQGPCUS5TBAT2ZHCelyDaCH4RdKkaSF29DDU9tFTQKu RgPR6XmzVHgIoM53d5LEixZ6hOnLoXlnLdyMJmbaVWJNwd2o6crZBdXbAJ1o9cpFQA3XI7+v j5D20aNvwVvzfQU0oFexi3JpBYiuPAotrKND76O/lBJfhyJNPUDqG9HrmW5Cms1Cl/pnVVKd ia51fVBIIVLQ8LkY0QbSvQkW3oQRb8KIN2HkEiBuAJPF2WB2sjYHjyvMfAXrcmHOnJ/ttLmz saWmFwjfllanUffBJz8TAJAETDI1eSS9jFaytXy9MwDSSDmjo3SmjDJ6yf4qS72V5a17uRoH 5gMAkQpGS2kiAp2ysPUNmKtahNJJgjFQU1OjO2lYybqxHeNqzC2icjIpADJIkkHUmKicwuFK XHfA5nAnctTioRFtkgWbGZFI8dWsk7dVSqQgWEt+vXl+FpCdc8JJE64qFzYaqK8iFYpUa43r r+TifxwGJmMqBWQyGZ0sZBKe4n88DgzCM6RSc6JKss3l/usXF6LIhSh+X5oYxc3+g4yNQL2h oDzlS76vI5zT2abZ6V8VbhsGg/yNWFHWMfv7tR57aBNzz1m7inkaXTFxayiQ8/zejwb96T1F Q7IHMfz5bknx+PXgaEHh64ORD9NRewtd3vE4d6TUF5/7viWvdd2Zq8ufhaYnyw98PDoky9Rf KPVrUrov7jKv7PN/OnF86cnlDMFb2bw1Co5n/wA0WGGkwgMAAA== Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by pch.mit.edu id r7R3d0Dv031844 RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 4380 There's yet another issue... it may be exacerbated by having a slow machine try to load a large database. The dump file is now being sent correctly, but there is still at least one more problem in the load. -----Original Message----- From: Richard Basch [mailto:basch@alum.mit.edu] Sent: Monday, August 26, 2013 11:16 PM To: 'Richard Basch'; krbdev@mit.edu Cc: Basch, Richard [Tech] Subject: RE: [krbdev.mit.edu #7695] AutoReply: krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated I believe these are final... They compile and I believe they will fix the issues (I will be testing for a couple days, but "no news is good news"). 1.10: https://github.com/rbasch/krb5/commit/fc7aabea9bf0abb0712a8509c38d4382474361 c3 1.11: https://github.com/rbasch/krb5/commit/f6237998bf7b20ea898d8b1ac2b30255caad89 d8 https://github.com/rbasch/krb5/commit/affc746f296869d25c49ee2eabc843c60470ac df -----Original Message----- From: Richard Basch [mailto:basch@alum.mit.edu] Sent: Monday, August 26, 2013 10:12 PM To: 'Richard Basch'; 'krbdev@mit.edu' Cc: 'richard.basch@gs.com' Subject: RE: [krbdev.mit.edu #7695] AutoReply: krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated There is a second bug... I don't believe the patch I provided is wrong, but I believe to be effective in my test environment, a second fix is required, specifically to the dump side of kdb5_util, where it might not properly determine whether to create a new dump file (the quick serial number check is flawed). Stay tuned for another git reference (though this one should only apply to 1.11 since 1.10 doesn't use the same conditional dump optimization logic). -----Original Message----- From: Richard Basch [mailto:basch@alum.mit.edu] Sent: Saturday, August 24, 2013 5:11 PM To: krbdev@mit.edu Cc: richard.basch@gs.com; 'Richard Basch' Subject: RE: [krbdev.mit.edu #7695] AutoReply: krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated Instead of the supplied patch, refer to the following patches instead: 1.11: https://github.com/rbash/krb5/commit/affc746f296869d25c49ee2eabc843c60470ac df 1.10: https://github.com/rbasch/krb5/commit/fc7aabea9bf0abb0712a8509c38d4382474361 c3 I am relatively confident in the above since they move the ulog update to after the db promotion, ensuring everything is ok first. This should avoid all the issues which previously existed. There is a remote chance something might prevent the ulog update from taking place but the db might be updated. I am not quite sure what the right answer is in this case, but certainly the other way round of updating the ulog before the database matches is wrong. There are pros and cons to resetting the ulog prior to the db load, but in either scenario, the final state should not be set until after the db is loaded & promoted. -----Original Message----- From: krb5 [mailto:rt@krbdev.mit.edu] Sent: Sunday, August 18, 2013 6:26 PM To: basch@alum.mit.edu Subject: [krbdev.mit.edu #7695] AutoReply: krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "krb5-1.11.3/1.10.6 - full resync may fail and still result in ulog being updated", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [krbdev.mit.edu #7695]. Please include the string: [krbdev.mit.edu #7695] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, ------------------------------------------------------------------------- In my test environment, even with krb5-1.11.3, I noticed a database reload (full resync) may still fail and result in the ulog being updated with the new serial number, resulting in an inconsistent environment. I have another patch available which seems to fix the condition. Specifically, I have seen the condition occur with an accompanying log message: ./kdb5_util returned a bad exit status (2) krb5-1.11 https://github.com/rbasch/krb5/commit/83c34de8a740711961d05fde150cc8b16e68f9 e1 krb5-1.10 https://github.com/rbasch/krb5/commit/638b2e299157b1c2e637cb992bc07cf9f55985 94