Vyos 1.3.1-S - config error

Just upgraded to the latest vyos 1.3.1-S release.

Entered the config menu and loaded my current config expecting that no changes were required.

However, this is showing. That section loads fine in 1.3.0 and 1.3.1.

[edit interfaces]
+loopback lo {
+}
[edit]

When attempting a commit I get the following error;

[ interfaces loopback lo ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your 
  business policy requires it)
- and include all the information presented below

Report time:      2022-03-30 13:27:54
Image version:    VyOS 1.3.1-S1
Release train:    equuleus

Built by:         Sentrium S.L.
Built on:         Mon 28 Mar 2022 17:02 UTC
Build UUID:       b89ffc4c-3c7e-4d89-91de-bd89e584c532
Build commit ID:  bfd58ad202462f

Architecture:     x86_64
Boot via:         installed image
System type:      VMware guest

Hardware vendor:  VMware, Inc.
Hardware model:   VMware Virtual Platform
Hardware S/N:     VMware-56 4d 7f e2 82 d3 d9 ce-88 cb ca de 92 1a 21 84
Hardware UUID:    e27f4d56-d382-ced9-88cb-cade921a2184

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-loopback.py", line 61, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-loopback.py", line 52, in apply
    l.update(loopback)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/loopback.py", line 70, in update
    super().update(config)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1300, in update
    self.add_addr(addr)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 999, in add_addr
    self._cmd(f'ip addr add "{addr}" '
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 52, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip addr add "::1/128" dev "lo"
returned: 
exit code: 2

noteworthy:
cmd 'ip addr add "::1/128" dev "lo"'
returned (out):

returned (err):
RTNETLINK answers: Permission denied

[[interfaces loopback lo]] failed
Commit failed
[edit]

Can I take any action to fix this?

Can you provide more info on how to reproduce this exactly? Did you remove manually lo interface?
In quick lab wasn’t able to reproduce it:

[edit]
vyos@vyos# load /config/config.boot
Loading configuration from '/config/config.boot'
Load complete. Use 'commit' to make changes effective.
[edit]
vyos@vyos# compare
[edit interfaces]
+loopback lo {
+}
[edit]
vyos@vyos# commit
[edit]

I did exactly what you shown.

Loaded config, did a compare, went to commit and got that error.

I do the load generally after an update to ensure my config file got fully loaded.

Output of “show interfaces”

phillipmcmahon@myrouter:~$ show interfaces 
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             172.31.255.6/30                   u/u  wan
eth1             192.168.68.1/24                   u/u  lan
eth2             192.168.100.1/24                  u/u  mullvad-us
eth3             192.168.110.1/24                  u/u  mullvad-gb
lo               127.0.0.1/8                       u/u  
wg0              10.67.134.85/32                   u/u  mullvad-us
wg1              10.67.136.97/32                   u/u  mullvad-gb
wg7              192.168.32.1/24                   u/u  vpn +lan +mullvad-us
wg8              10.0.10.1/24                      u/u  vpn +lan +swisscom
phillipmcmahon@myrouter:~$

When I go into config mode and show interfaces I have no lo interface defined.

My config.boot file has the definition in it.

trying to add the loopback interface I get the following error

phillipmcmahon@myrouter# set interfaces loopback lo
[edit]
phillipmcmahon@myrouter# commit
[ interfaces loopback lo ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
  https://support.vyos.io/
- Make sure you are running the latest version of VyOS available at:
  https://vyos.net/get/
- Consult the community forum to see how to handle this issue:
  https://forum.vyos.io
- Join us on Slack where our users exchange help and advice:
  https://vyos.slack.com

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your 
  business policy requires it)
- and include all the information presented below

Report time:      2022-03-30 14:05:28
Image version:    VyOS 1.3.1-S1
Release train:    equuleus

Built by:         Sentrium S.L.
Built on:         Mon 28 Mar 2022 17:02 UTC
Build UUID:       b89ffc4c-3c7e-4d89-91de-bd89e584c532
Build commit ID:  bfd58ad202462f

Architecture:     x86_64
Boot via:         installed image
System type:      VMware guest

Hardware vendor:  VMware, Inc.
Hardware model:   VMware Virtual Platform
Hardware S/N:     VMware-56 4d 7f e2 82 d3 d9 ce-88 cb ca de 92 1a 21 84
Hardware UUID:    e27f4d56-d382-ced9-88cb-cade921a2184

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/interfaces-loopback.py", line 61, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/interfaces-loopback.py", line 52, in apply
    l.update(loopback)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/loopback.py", line 70, in update
    super().update(config)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 1300, in update
    self.add_addr(addr)
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/interface.py", line 999, in add_addr
    self._cmd(f'ip addr add "{addr}" '
  File "/usr/lib/python3/dist-packages/vyos/ifconfig/control.py", line 52, in _cmd
    return cmd(command, self.debug)
  File "/usr/lib/python3/dist-packages/vyos/util.py", line 161, in cmd
    raise OSError(code, feedback)
FileNotFoundError: [Errno 2] failed to run command: ip addr add "::1/128" dev "lo"
returned: 
exit code: 2

noteworthy:
cmd 'ip addr add "::1/128" dev "lo"'
returned (out):

returned (err):
RTNETLINK answers: Permission denied

[[interfaces loopback lo]] failed
Commit failed
[edit]

It fails when trying to add ipv6 address ::1/128 to lo interface.
Do you have this command in your config?

set system ipv6 disable

If so, try removing it, adding lo interfaces, and then re add it

That’s works as a temp fix, on reboot the same config load issue is present.

Didn’t see this on 1.3.0 or 1.3.1. Will this be fixed?

We are currently working on it.
More info should be included in this task: T4319

1 Like

@phillipmcmahon Thanks for reporting the issue! We prepared a hotfix:

wget https://cdn.vyos.io/1.3.1-S1/fixes/vyos-1x-1.3.1-S1-hotfix.deb
sudo dpkg -i vyos-1x-1.3.1-S1-hotfix.deb

Nicolas and I tested it, but let us know if you experience any issues.

1 Like

speedy!

Will check it out and let you know.

And now you are famous @phillipmcmahon VyOS 1.3.1-S1 security release
We’ll be waiting for your results!

1 Like

haha! doubly impressed with the speed of fix and the name drop!

Although you spelt my name incorrectly, it’s Phillip, not Philip :slight_smile:

Applied the fix and it looks good. Thanks once again.

Ah, sorry, I wanted to publish the hotfix as soon as possible and misspelled your name indeed. Fixed now.

1 Like

With this hotfix applied I cannot get to some websites now, specifically a lot of amazon services. For example https://health.aws.amazon.com/health/status but if I enable ipv6 this works? on 1.3.0 I had disable ipv6 set and i had no issues with these services?

Checked on my side, and with the hotfix applied I can get to the AWS health status link you posted.

Do you have other examples I can try out?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.