OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: astrandb on July 07, 2022, 12:17:05 PM

Title: 22.1.10 - IPsec tunnel disappeared from overview
Post by: astrandb on July 07, 2022, 12:17:05 PM
After upgrading to 22.1.10 the IPsec tunnel (host-host) has dissapeared both from the dashboard-ipsec widget and from VPN->IPsec->Status Overview.

However, the tunnel itself is working as expected.
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: franco on July 07, 2022, 12:47:33 PM
Might be related to vici library switch. https://github.com/opnsense/core/commit/becf4e93428

# opnsense-patch becf4e93428

Does that bring it back?


Cheers,
Franco
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: astrandb on July 07, 2022, 12:57:01 PM
No difference.

Did that patch change anything?

root@reserv2:~ # opnsense-patch becf4e93428
Fetched becf4e93428 via https://github.com/opnsense/core
No file to patch.  Skipping...
1 out of 1 hunks ignored while patching opnsense/scripts/ipsec/vici/__init__.py
No file to patch.  Skipping...
1 out of 1 hunks ignored while patching opnsense/scripts/ipsec/vici/compat.py
No file to patch.  Skipping...
1 out of 1 hunks ignored while patching opnsense/scripts/ipsec/vici/exception.py
No file to patch.  Skipping...
1 out of 1 hunks ignored while patching opnsense/scripts/ipsec/vici/protocol.py
No file to patch.  Skipping...
1 out of 1 hunks ignored while patching opnsense/scripts/ipsec/vici/session.py
No file to patch.  Skipping...
1 out of 1 hunks ignored while patching opnsense/scripts/ipsec/vici/test/test_protocol.py
root@reserv2:~ #
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: franco on July 07, 2022, 01:04:02 PM
Could be that patch utility falters with reversing the removal of files.

How about this one? https://github.com/opnsense/core/commit/e838492dd

# opnsense-patch e838492dd


Cheers,
Franco
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: astrandb on July 07, 2022, 01:10:54 PM
Yes!
Now the tunnel is showing up again.
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: franco on July 07, 2022, 01:30:19 PM
Thanks, I'm raising awareness about this internally.


Cheers,
Franco
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: franco on July 07, 2022, 01:34:51 PM
Can you try the following:

# rm -rf /usr/local/opnsense/scripts/ipsec/vici
# /usr/local/opnsense/scripts/ipsec/list_status.py


Thanks,
Franco
Title: Re: 22.1.10 - IPsec tunnel disappeared from overview
Post by: franco on July 07, 2022, 02:10:49 PM
Thanks for your help via PM.

The issue seems to be stale .pyc files lingering in the directory and those should be cleaned up after an update anyway:

https://github.com/opnsense/core/commit/99e4cd28b64


Cheers,
Franco