Bug 1386666 - keyingtries=0 is broken - meaning it is interpreted as keyingtries=1
Summary: keyingtries=0 is broken - meaning it is interpreted as keyingtries=1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libreswan
Version: 7.2
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Paul Wouters
QA Contact: Ondrej Moriš
Mirek Jahoda
URL:
Whiteboard:
Depends On: 1283468
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 12:15 UTC by Marcel Kolaja
Modified: 2016-11-09 17:16 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In Libreswan 3.13, 3.14, and 3.15, the "keyingtries=0" option for the "ipsec whack" command did not work properly. Consequently, the pluto IKE daemon stopped trying to establish the tunnels that were not immediately established if "keyingtries=0" was used. With this update, pluto tries to establish the tunnel with "keyingtries=0" indefinitely.
Clone Of: 1283468
Environment:
Last Closed: 2016-11-09 17:16:29 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2683 0 normal SHIPPED_LIVE libreswan bug fix update 2016-11-09 22:09:44 UTC

Description Marcel Kolaja 2016-10-19 12:15:22 UTC
This bug has been copied from bug #1283468 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 4 Ondrej Moriš 2016-10-27 12:14:52 UTC
Successfully verified with libreswan-3.15-6.3.el7_2.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: SERVER - keyingtries=0 (forever)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'sed -i 's/keyingtries=.*/keyingtries=0/' /etc/ipsec.conf' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service ipsec start && sleep 5' (Expected 0, got 0)
:: [   LOG    ] :: sync: SERVER is waiting for flag CLIENT_READY_TEST03
:: [   LOG    ] :: sync: SERVER got flag CLIENT_READY_TEST03
:: [   PASS   ] :: Command 'syncExp CLIENT_READY_TEST03' (Expected 0, got 0)
:: [   LOG    ] :: sync: SERVER set flag SERVER_READY_TEST03
:: [   PASS   ] :: Command 'syncSet SERVER_READY_TEST03' (Expected 0, got 0)
:: [   LOG    ] :: sync: SERVER is waiting for flag CLIENT_DONE_TEST03
:: [   LOG    ] :: sync: SERVER got flag CLIENT_DONE_TEST03
:: [   PASS   ] :: Command 'syncExp CLIENT_DONE_TEST03' (Expected 0, got 0)
:: [   LOG    ] :: sync: SERVER set flag SERVER_DONE_TEST03
:: [   PASS   ] :: Command 'syncSet SERVER_DONE_TEST03' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service ipsec stop && sleep 5' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 8m 45s
:: [   LOG    ] :: Assertions: 7 good, 0 bad
:: [   PASS   ] :: RESULT: SERVER - keyingtries=0 (forever)

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: CLIENT - keyingtries=0 (forever)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Command 'sed -i 's/keyingtries=.*/keyingtries=0/' /etc/ipsec.conf' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service ipsec start && sleep 5' (Expected 0, got 0)
:: [   LOG    ] :: sync: CLIENT set flag CLIENT_READY_TEST03
:: [   PASS   ] :: Command 'syncSet CLIENT_READY_TEST03' (Expected 0, got 0)
:: [   LOG    ] :: sync: CLIENT is waiting for flag SERVER_READY_TEST03
:: [   LOG    ] :: sync: CLIENT got flag SERVER_READY_TEST03
:: [   PASS   ] :: Command 'syncExp SERVER_READY_TEST03' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ipsec auto --up test' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service ipsec status' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ip xfrm state' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ip xfrm policy' (Expected 0, got 0)
:: [   LOG    ] :: Found keying attempt 2
:: [   LOG    ] :: Found keying attempt 3
:: [   LOG    ] :: Found keying attempt 4
:: [   LOG    ] :: Found keying attempt 5
:: [   LOG    ] :: Found keying attempt 6
:: [   LOG    ] :: Breaking unlimited number of keying attempts after 6 attempts
:: [   LOG    ] :: Timeout exceeded!
:: [   PASS   ] :: Command 'break_and_renew 0 test 300' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service ipsec status' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ip xfrm state' (Expected 0, got 0)
:: [   PASS   ] :: Command 'ip xfrm policy' (Expected 0, got 0)
:: [   LOG    ] :: sync: CLIENT set flag CLIENT_DONE_TEST03
:: [   PASS   ] :: Command 'syncSet CLIENT_DONE_TEST03' (Expected 0, got 0)
:: [   LOG    ] :: sync: CLIENT is waiting for flag SERVER_DONE_TEST03
:: [   LOG    ] :: sync: CLIENT got flag SERVER_DONE_TEST03
:: [   PASS   ] :: Command 'syncExp SERVER_DONE_TEST03' (Expected 0, got 0)
:: [   PASS   ] :: Command 'service ipsec stop && sleep 5' (Expected 0, got 0)
:: [   LOG    ] :: Duration: 8m 40s
:: [   LOG    ] :: Assertions: 15 good, 0 bad
:: [   PASS   ] :: RESULT: CLIENT - keyingtries=0 (forever)

For more details, see [1].

[1] https://tcms.engineering.redhat.com/run/296233/?case__tag__name=#caserun_13966224

Comment 6 errata-xmlrpc 2016-11-09 17:16:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2683.html


Note You need to log in before you can comment on or make changes to this bug.