Can't Apply IPv6 Address to Container

When I try to apply an IPv6 address to a container, I get this failure:

# commit
[ container ]
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:      2023-09-28 16:11:44
Image version:    VyOS 1.5-rolling-202309240034
Release train:    current

Built by:         removed
Built on:         Sun 24 Sep 2023 00:34 UTC
Build UUID:       1f433306-4a71-4d71-b6d5-d49a7175e3d4
Build commit ID:  ab114f9533bbac

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  Protectli
Hardware model:   FW4B
Hardware S/N:     123456789
Hardware UUID:    Unknown

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/container.py", line 487, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/container.py", line 460, in apply
    cmd(f'systemctl restart vyos-container-{name}.service')
  File "/usr/lib/python3/dist-packages/vyos/utils/process.py", line 155, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: systemctl restart vyos-container-pihole.service
returned:
exit code: 1

noteworthy:
cmd 'systemctl restart vyos-container-pihole.service'
returned (out):

returned (err):
Job for vyos-container-pihole.service failed because the control process exited with error code.
See "systemctl status vyos-container-pihole.service" and "journalctl -xeu vyos-container-pihole.service" for details.

[[container]] failed
Commit failed

My config is:

name pihole {
     description "pihole dns server"
     environment DNS1 {
         value 1.1.1.3
     }
     environment DNS2 {
         value 1.0.0.3
     }
     environment DNS3 {
         value 2606:4700:4700::1113
     }
     environment DNS4 {
         value 2606:4700:4700::1003
     }
     environment DNSMASQ_LISTENING {
         value all
     }
     environment TZ {
         value America/Denver
     }
     environment WEBPASSWORD {
         value removed
     }
     image pihole:latest
     network NET {
         address 10.99.0.2
+        address fd7b:79ad:2037:2607::2
     }
     restart on-failure
     volume dnsmasq.d {
         destination /etc/dnsmasq.d
         source /config/pihole/dnsmasq.d
     }
     volume log {
         destination /var/log/pihole
         source /config/pihole/log
     }
     volume pihole {
         destination /etc/pihole
         source /config/pihole/etc
     }
 }
 network NET {
     prefix 10.99.0.0/24
     prefix fd7b:79ad:2037:2607::/64
 }

The network saves the subnet fine, but can’t apply to container.
Any ideas?

Does this log show anything helpful?

Try to add another address for example .10
I got this bug any was related if address was assigned to another vm before
But not sure is it the same

It’s happened on two different instances of Vyos. Only when assigning IPv6 address. v4 works. The IPv6 range is internal and definitely not in use elsewhere.

FYI, I have a new build and it still happens. As soon as you try to apply an IPv6 address to a container, it crashes. You can assign an IPv6 prefix to a container network, but you can’t assign an address to a container.

Could you add a bug report?

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