Page MenuHomePhabricator

OpenVPN - Commiting config when OpenVPN peer/server not available makes commit hang
Closed, ResolvedPublicBUG

Description

Using: vyos-1.2-rolling-201909260118-amd64.iso

If the VPN tunnel can't be established because the peer/server isn't available at the moment, the vtun interface never becomes registered with the kernel, which makes this code never end, and the commit hangs:

interface-openvpn.py:

while openvpn['intf'] not in interfaces():
    sleep(0.250) # 250ms

Perhaps add a form of timeout?

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.2-rolling-201909260118-amd64.iso
Why the issue appeared?
Design mistake
Is it a breaking change?
Perfectly compatible

Event Timeline

vindenesen renamed this task from OpenVPN - Commiting config when OpenVPN peer/server not available hangs to OpenVPN - Commiting config when OpenVPN peer/server not available makes commit hang.Sep 26 2019, 5:46 PM
vindenesen created this task.
vindenesen updated the task description. (Show Details)Sep 26 2019, 5:50 PM
c-po claimed this task.Sep 26 2019, 6:15 PM
c-po triaged this task as High priority.
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
pasik added a subscriber: pasik.Sep 26 2019, 9:49 PM
c-po moved this task from Need Triage to Backlog on the VyOS 1.3 Equuleus board.Oct 13 2019, 3:01 PM
c-po moved this task from Backlog to Finished on the VyOS 1.3 Equuleus board.