Page MenuHomeVyOS Platform

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?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

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.
c-po triaged this task as High priority.
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po moved this task from Backlog to Finished on the VyOS 1.3 Equuleus board.
erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 6:42 PM