Page MenuHomeVyOS Platform
Feed Advanced Search

Feb 19 2020

jjakob triaged T2054: Changing "system name-server" doesn't update dns forwarding config, neither does "restart dns forwarding" as Normal priority.
Feb 19 2020, 6:37 PM · VyOS 1.3 Equuleus (1.3.0)

Feb 9 2020

jjakob added a comment to T2020: Unable to log in after upgrade to 1.3-rolling-202002080217.

Tested with 1.3-rolling-202002091356, the issue is fixed. Thanks!

Feb 9 2020, 2:36 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2020: Unable to log in after upgrade to 1.3-rolling-202002080217.

This is only the login section

login {
    user vyos {
        authentication {
            encrypted-password $6$***
            plaintext-password ""
            public-keys jernej@jernej {
                key ****************
                type ssh-ed25519
            }
        }
        level admin
    }
}

the config version line

/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "broadcast-relay@1:cluster@1:config-management@1:conntrack@1:conntrack-sync@1:dhcp-relay@2:dhcp-server@5:dns-forwarding@2:firewall@5:interfaces@4:ipsec@5:l2tp@1:mdns@1:nat@4:ntp@1:pptp@1:qos@1:quagga@3:snmp@1:ssh@1:system@12:vrrp@2:vyos-accel-ppp@2:wanloadbalance@3:webgui@1:webproxy@2:zone-policy@1" === */
/* Release version: 1.3-rolling-201912110242 */
Feb 9 2020, 9:13 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob triaged T2020: Unable to log in after upgrade to 1.3-rolling-202002080217 as High priority.
Feb 9 2020, 6:29 AM · VyOS 1.3 Equuleus (1.3.0)

Jan 18 2020

jjakob added a comment to T421: Add Pv6 prefix delegation support.

No, work would be needed to add the necessary logic to VyOS scripts.
This wasn't possible before the version of isc-dhcpd VyOS uses was
updated to one that supported PD length. But now it is at least
possible, before it wasn't possible at all.

Jan 18 2020, 5:26 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Jan 3 2020

jjakob added a comment to T1891: Router announcements broken on boot.

I actually suggested using reload/SIGHUP. The problem is the very rapid reloads sent by the vyos script to systemd. start-stop-daemon is handled by systemd in Debian Buster, in Jessie it was still handled by sysvinit so it didn't have any limits. I suppose it uses some default restart limits/timeouts that can otherwise be adjusted in unit/service files. I suppose it could be converted to a native systemd service so the limits can be set if there is a corresponding setting that would fix the issue. Otherwise it'd be better if we don't use systemd to send SIGHUP at all and send the signal direclty to the daemon w/ pid read from pid file. Or switch to using frr for RAs - what's the progress on that?

Jan 3 2020, 5:46 PM · VyOS 1.2 Crux (VyOS 1.2.5)

Dec 28 2019

jjakob updated subscribers of T1499: Move nic to mac mapping out of the configuration file.

@rps Great idea. A summary of some brainstorming that we had on Slack with @runar, @rps and @dmitry:

Dec 28 2019, 10:25 AM · VyOS 1.5 Circinus

Dec 26 2019

jjakob added a comment to T1903: Implementation udev predefined interface naming.

Is this only for crux or also for equuleus? There is also
https://phabricator.vyos.net/T1499
https://phabricator.vyos.net/T1584
https://phabricator.vyos.net/T291

Dec 26 2019, 7:09 PM · VyOS 1.2 Crux (VyOS 1.2.4)

Dec 24 2019

jjakob added a comment to T599: Bind NTP service to specific interface.

This is confusing. While NTP used to work (listen on all interfaces) without any listen-address set, now it doesn't. This means any old config without listen-address set will now have a non-working NTP without any warning. There was no migration script to migrate the old behavior to the new. ntp should have a mandatory listen-address if this new behavior is kept.

Dec 24 2019, 11:11 AM · VyOS-1.2.0-GA, VyOS 1.2 Crux (VyOS 1.2.0-rc1)

Dec 22 2019

jjakob added a comment to T1891: Router announcements broken on boot.

If this is the issue I would replace the init.d call with systemctl since in 1.3 init.d/radvd is redirected to systemd anyway (maybe the bugs are present in this redirection so it's best to completely avoid it).
1.2 and earlier would still need to call init.d as-is.

Dec 22 2019, 1:40 AM · VyOS 1.2 Crux (VyOS 1.2.5)

Dec 21 2019

jjakob renamed T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters from Host-specific settings for static-mapping in dhcp-server to Add missing documentation on how to use quote characters inside dhcp-server raw parameters.
Dec 21 2019, 10:28 PM · Restricted Project
jjakob closed T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters as Resolved.
Dec 21 2019, 10:26 PM · Restricted Project
jjakob added a comment to T421: Add Pv6 prefix delegation support.

VyOS 1.3 (rolling/equuleus) is now based on Debian Buster so has isc-dhcp-client 4.4.1.
According to the manual dhclient now has a command line option

--prefix-len-hint
When used in conjunction with -P, it directs the client to use the given length to use a prefix hint of, "::/length", when requesting new prefixes.

It was added in 4.3.6:
https://ftp.isc.org/isc/dhcp/4.4.1/dhcp-4.4.1-RELNOTES

Dec 21 2019, 5:02 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
jjakob changed the status of T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters from Open to In progress.

Added explanation on how to use quotes inside raw parameters to the docs.
https://github.com/vyos/vyos-documentation/pull/163

Dec 21 2019, 11:54 AM · Restricted Project
jjakob added a comment to T1891: Router announcements broken on boot.

Confirmed on 1.3-20191213, tcpdump on the router shows no advertisements until radvd is restarted with sudo systemctl restart radvd.

Dec 21 2019, 10:44 AM · VyOS 1.2 Crux (VyOS 1.2.5)

Dec 20 2019

jjakob changed the status of T1892: vyos-build: Do not install recommends in docker image [enhancement] from Open to In progress.
Dec 20 2019, 9:36 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1892: vyos-build: Do not install recommends in docker image [enhancement].

https://github.com/vyos/vyos-build/pull/70

Dec 20 2019, 9:36 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T1892: vyos-build: Do not install recommends in docker image [enhancement].
Dec 20 2019, 9:29 AM · VyOS 1.3 Equuleus (1.3.0)

Dec 19 2019

jjakob removed a project from T1620: Leases in "show dhcp server leases" lose Pool and Hostname after some time: VyOS 1.3 Equuleus.
Dec 19 2019, 11:50 AM · VyOS 1.3 Equuleus (1.3.6)
jjakob added a comment to T1620: Leases in "show dhcp server leases" lose Pool and Hostname after some time.

This is fixed/was not present in 1.3-rolling.
1.2 is not possible to fix, the bug is in isc-dhcp which would need to be upgraded to a newer version.

Dec 19 2019, 11:48 AM · VyOS 1.3 Equuleus (1.3.6)
jjakob closed T1873: DHCP server fails to start due to a change in isc-dhcp-server init scripts as Resolved.
Dec 19 2019, 11:44 AM · VyOS 1.3 Equuleus (1.3.0)

Dec 15 2019

jjakob created T1880: "A stop job is running for live-tools - System Support Scripts" hangs, times out when shutting down equuleus live iso.
Dec 15 2019, 4:10 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

This was discussed previously: https://phabricator.vyos.net/T1129
Use """ which will be replaced with quotes when generating the isc dhcpd config.
https://github.com/vyos/vyos-1x/blob/current/src/conf_mode/dhcp_server.py#L813-L815

Dec 15 2019, 3:45 PM · Restricted Project

Dec 13 2019

jjakob added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

Sorry, I misunderstood your issue, indeed adding quotes inside the parameters is not possible now. A reimplementation would be needed.

Dec 13 2019, 8:17 AM · Restricted Project
jjakob updated the task description for T1873: DHCP server fails to start due to a change in isc-dhcp-server init scripts.
Dec 13 2019, 8:06 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1873: DHCP server fails to start due to a change in isc-dhcp-server init scripts.

https://github.com/vyos/vyos-1x/pull/182
We have to ship our own /etc/{init.d,default}/isc-dhcp{v4,v6}-server files since we can't overwrite the ones supplied by the debian package.

Dec 13 2019, 12:38 AM · VyOS 1.3 Equuleus (1.3.0)

Dec 12 2019

jjakob added a comment to T1806: Add missing documentation on how to use quote characters inside dhcp-server raw parameters.

The current static-mapping-parameters can be used to add a quoted value, e.g.

static-mapping test {
                    ip-address x.x.x.x
                    mac-address yy:yy:yy:yy:yy:yy
                    static-mapping-parameters "option domain-name-servers 1.1.1.1, 9.9.9.9;"
                }

command

set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option domain-name-servers 192.0.2.11, 192.0.2.12;"
Dec 12 2019, 9:15 PM · Restricted Project
jjakob claimed T1873: DHCP server fails to start due to a change in isc-dhcp-server init scripts.
Dec 12 2019, 7:48 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob updated the task description for T1873: DHCP server fails to start due to a change in isc-dhcp-server init scripts.
Dec 12 2019, 7:40 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T1873: DHCP server fails to start due to a change in isc-dhcp-server init scripts.
Dec 12 2019, 7:39 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1872: Removing serial console port from ESXi VM causes flooded syslog.

I'm experiencing the same issue of the service failing to start on 1.3.
The installation was first started with the default config in a VM that had a serial port. Then the installation was transferred to a physical machine without a serial port, and the whole /config directory was manually copied from the old installation on that machine. The machine was then rebooted. The result were the same errors in syslog/journal.
I believe the issue is that if the config.boot is manually replaced or edited on disk, the script that would normally be triggered on commit when deleting system console is never triggered, thus the service remains enabled, but there is no system console in the config to delete any more.

Dec 12 2019, 7:10 PM · VyOS 1.3 Equuleus (1.3.0)

Dec 5 2019

jjakob awarded T1354: Add support for VLAN-Aware bridges a Like token.
Dec 5 2019, 7:43 PM · VyOS 1.5 Circinus, VyOS 1.4 Sagitta

Nov 19 2019

jjakob added a comment to T1376: Incorrect DHCP lease counting.

Crux needs a backport of show_dhcp.py from current, I fixed this in current

Nov 19 2019, 9:22 AM · VyOS 1.2 Crux (VyOS 1.2.5)

Nov 17 2019

jjakob added a comment to T1787: Failed config migration from V1.2.3 to 1.2-rolling-201911030217.

This is related/a duplicate of T1744

Nov 17 2019, 10:48 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1744: Config load fails in ConfigTree with ValueError: Failed to parse config: lexing: empty token.

The replacement of special characters with backslash decimal happened on upgrade from 1.2.0-rc11 to 1.2.0-rolling+201906231514.

Nov 17 2019, 10:47 AM · VyOS 1.3 Equuleus (1.3.0)

Oct 19 2019

jjakob added a project to T1745: dhcp-server commit fails with "DHCP range stop address x must be greater or equal to the range start address y!" when static mapping has same IP as range stop: VyOS 1.2 Crux.

This is present in branches crux and current too, so adding tag for crux.
https://github.com/vyos/vyos-1x/commit/5848a4d6095e6d7bc70e34e0b7b7e2c3d8e3303f
https://github.com/vyos/vyos-1x/commit/6f954ab56768af9a07d8a1dc086f54ddefa58da7
https://github.com/vyos/vyos-1x/commit/5848a4d6095e6d7bc70e34e0b7b7e2c3d8e3303f

Oct 19 2019, 4:48 AM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob created T1745: dhcp-server commit fails with "DHCP range stop address x must be greater or equal to the range start address y!" when static mapping has same IP as range stop.
Oct 19 2019, 4:40 AM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob added a comment to T1744: Config load fails in ConfigTree with ValueError: Failed to parse config: lexing: empty token.

Via the process of elimination I found the culprit - comments with special characters in them, that at some point in the upgrade cycle got converted into backslash-escped decimal:

description "\197\160" # this was once Š
description "\196\140 \196\141" # Č č

\197\160 is C5 A0 which is U+0160, which was the original character.
So old versions allowed these characters in comments and worked fine with them, then at one point an upgrade converted them to backslash decimal UTF-8, which still worked until at some point they started causing the error.

Oct 19 2019, 4:18 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T1744: Config load fails in ConfigTree with ValueError: Failed to parse config: lexing: empty token.
Oct 19 2019, 3:42 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob closed T1743: equuleus: remove references to SSH key type "rsa1" deprecated in Debian Buster as Resolved.
Oct 19 2019, 2:12 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1743: equuleus: remove references to SSH key type "rsa1" deprecated in Debian Buster.

https://github.com/vyos/vyatta-cfg-system/pull/109

Oct 19 2019, 1:27 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob updated the task description for T1743: equuleus: remove references to SSH key type "rsa1" deprecated in Debian Buster.
Oct 19 2019, 1:16 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob changed the status of T1743: equuleus: remove references to SSH key type "rsa1" deprecated in Debian Buster from Open to In progress.
Oct 19 2019, 1:06 AM · VyOS 1.3 Equuleus (1.3.0)

Oct 18 2019

jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

@c-po I can't see the issue here, that seems like normal expected behavior (tabbing gives a list of all possible nodes, even the long ones?)
I agree that if there is a problem, it's for a separate issue and describe what the problem and expected behavior is in more detail there.

Oct 18 2019, 8:59 PM · VyOS 1.3 Equuleus (1.3.0)

Oct 14 2019

jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

@c-po can you provide a way to reproduce your issue?

Oct 14 2019, 7:49 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

https://github.com/vyos/vyatta-cfg/pull/19
This fixes the conf mode completion, at least in the bash cli shell.

Oct 14 2019, 7:41 PM · VyOS 1.3 Equuleus (1.3.0)

Sep 19 2019

jjakob added a comment to T1416: 2 dhcp server run in failover mode can't sync hostname with each other.

@thinkl33t you can run your own DNS server with dynamic update functionality, vyos's dhcp server will write the hostnames to it. Doing that is outside the scope of vyos though, and you'd have to think of security, e.g. can a rogue dhcp client DNS spoof your hostnames to do a MITM attack. Systems that do do dyn-dns updates, for example FreeIPA, usually use some sort of pre-shared keys/certificates on the clients (for authentication) and limit the scope to IP updates on preexisting hostnames only, they don't allow adding arbitrary hostnames. At least I'd limit the scope to add all dynamic dns updates to a single zone predefined expressly for that purpose, and not use that zone for any security-critical applications, like logging in to services or doing unauthenticated connections, where a MITM may scrape your sensitive data. I'd only do dyn-dns hostnames from dhcp on a DHCP network where I'm absolutely sure no rogue client could gain access to it, via the network or physically, and that is almost never useful.

Sep 19 2019, 4:33 PM · VyOS 1.2 Crux (VyOS 1.2.5)

Sep 7 2019

jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

It still fails in config mode:

vyos@vyos# ls <TAB>
  Configuration path [-o] is not valid
  Set failed
Sep 7 2019, 9:12 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

This PR fixes it for me: https://github.com/vyos/vyatta-op/pull/29

Sep 7 2019, 8:19 PM · VyOS 1.3 Equuleus (1.3.0)

Sep 5 2019

jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

The same, but on current (jessie):


The above 2 files can be diffed to see where the bug is triggered.
The _filedir function from /usr/share/bash-completion/bash_completion was changed, the offending part is:

reset=$(shopt -po noglob); set -o noglob
toks=( $( compgen -d -- "$cur" ) )
eval $reset

when eval is called, it expands to eval 'set -o noglob' which triggers _vyatta_op_run set -o noglob, which chokes on the input.
_vyatta_op_run was set up as alias for "set" in https://github.com/vyos/vyatta-op/blob/66753705b86a3d104dfe127d4dd2b904a54ab404/functions/interpreter/vyatta-op-run#L38

eval alias ${cmd:0:$pos}=\'_vyatta_op_run ${cmd:0:$pos}\'

due to "set" being part of the templates.

Sep 5 2019, 10:25 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1604: equuleus: buster: vbash: tab completion breaks.

Here's the output of set -x redirected to a file when doing "ls <TAB>" as root.


At first glance it seems like a call to "set -o tag" from within a script is interpreted as an argument to the template "set" node somewhere, which causes it to break.
If anyone wants to dig in to vyatta-op, this is a starting point.

Sep 5 2019, 12:18 AM · VyOS 1.3 Equuleus (1.3.0)

Sep 4 2019

jjakob created T1634: Commit fails when changing policy route "set table" and adding the table at the same time, results in config deadlock.
Sep 4 2019, 3:59 PM

Sep 2 2019

jjakob added a comment to T1620: Leases in "show dhcp server leases" lose Pool and Hostname after some time.

Here's the sanitized dhcp-server config.

Sep 2 2019, 7:00 PM · VyOS 1.3 Equuleus (1.3.6)
jjakob added a comment to T1620: Leases in "show dhcp server leases" lose Pool and Hostname after some time.

On my routers they are definitely missing from /config/dhcpd.leases. I have some static host mappings in the config too. I also confirmed the "on commit set shared-networkname" line is in dhcpd.conf.

Sep 2 2019, 6:07 PM · VyOS 1.3 Equuleus (1.3.6)

Aug 31 2019

jjakob added a comment to T169: Image install should put correct serial console device in created GRUB menu entry.

+1 to this. I have VyOS running on several serial-console-only devices (they do have a graphics card on the chipset but it has no connector and is disabled in BIOS).
The console works in GRUB and once fully booted (login screen) but the boot console messages (kernel) still go to the video console. I have console device ttyS0 set in config, but every "install system image" resets the GRUB default entry to KVM console.

Aug 31 2019, 6:39 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Aug 30 2019

jjakob created T1620: Leases in "show dhcp server leases" lose Pool and Hostname after some time in the S1 VyOS Public space.
Aug 30 2019, 9:54 AM · VyOS 1.3 Equuleus (1.3.6)

Aug 28 2019

jjakob added a comment to T1586: OpenVPN add IPv6 support to tunnels.

Adding "tls-crypt" and in the upcoming 2.5 release "tls-crypt-v2" options would also be desirable.

Aug 28 2019, 10:25 PM · VyOS 1.3 Equuleus (1.3.0)

Aug 24 2019

jjakob added a comment to T1611: Migration to latest rolling fails with vyos.configtree.ConfigTreeError: Path [b'interfaces bridge br0 igmp-snooping querier'] doesn't exist.

https://github.com/vyos/vyos-1x/pull/116

Aug 24 2019, 9:53 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1611: Migration to latest rolling fails with vyos.configtree.ConfigTreeError: Path [b'interfaces bridge br0 igmp-snooping querier'] doesn't exist.

vyos-1x src/migration-scripts/interfaces/0-to-1 line 41:
https://github.com/vyos/vyos-1x/blob/2f3aa28f259ee7f23ef8a4a091db8ced2202bbd8/src/migration-scripts/interfaces/0-to-1#L41:

# igmp-snooping: check if enabled
igmp_val = config.return_value(base + [br, 'igmp-snooping', 'querier'])

This should be preceded by a if config.exists, as should line 33:

    # STP: check if enabled
        stp_val = config.return_value(base + [br, 'stp'])
`
Aug 24 2019, 9:39 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1556: Rewrite Bridge in new style XML syntax.

The interface/0-to-1 migration script is failing on upgrade (T1611).

Aug 24 2019, 9:34 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob updated subscribers of T1156: VyOS sticker templates.

@c-po The above commits should reference T1556, probably a typo.

Aug 24 2019, 9:31 PM · Restricted Project, Active contributors
jjakob added a comment to T1608: bridge: Bridge adding non existing interfaces is allowed but does not work.

Would something like https://openwrt.org/docs/techref/netifd be useful? The drawback that it's dependent on ubus https://openwrt.org/docs/techref/ubus

Aug 24 2019, 9:20 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T1612: dhcp-server time-offset fails to validate in the S1 VyOS Public space.
Aug 24 2019, 8:56 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T1611: Migration to latest rolling fails with vyos.configtree.ConfigTreeError: Path [b'interfaces bridge br0 igmp-snooping querier'] doesn't exist in the S1 VyOS Public space.
Aug 24 2019, 8:13 PM · VyOS 1.3 Equuleus (1.3.0)

Jul 19 2019

jjakob added a comment to T1331: DNS stops working.

I'll set up monitoring, sure.

Jul 19 2019, 5:46 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1435: Make ip-address [OPTIONAL] (in dhcp-server -> static-mapping) to cope with "unfriendly" client-hostnames of IoT-Devices.

Can be set to finished on 1.3 Equuleus

Jul 19 2019, 5:23 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1331: DNS stops working.

That's unfortunate. I've had to restart dns every few days at some clients due to an outage because of this bug. It would be not nice if it were to regress. Is there a way to build on buster with newer packages?

Jul 19 2019, 4:37 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1376: Incorrect DHCP lease counting.

PR https://github.com/vyos/vyos-1x/pull/91

Jul 19 2019, 12:39 AM · VyOS 1.2 Crux (VyOS 1.2.5)

Jul 18 2019

jjakob added a comment to T1440: Creating two DHCPv6 shared-network-names with the same subnet is allowed, causes dhcpd to fail to start..

Even if it was allowed, dhcpd would fail to start with the generated config so it shouldn't be a problem? Unless some had their invalid config kept even with broken dhcp-server, which I doubt.
It would be fixed first in current, of course. It's not a priority for me so I won't be tackling it.

Jul 18 2019, 10:09 PM · VyOS 1.3 Equuleus (1.3.0)

Jul 16 2019

jjakob added a comment to T1527: Typo in dhcpv6-server description.

This is already fixed in the latest rolling images (equuleus).

Jul 16 2019, 11:50 PM · VyOS 1.2 Crux (VyOS 1.2.3)

Jul 4 2019

jjakob changed the status of T1470: improve output of "show dhcpv6 server leases" from In progress to Backport candidate.
Jul 4 2019, 10:48 PM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob added a comment to T1435: Make ip-address [OPTIONAL] (in dhcp-server -> static-mapping) to cope with "unfriendly" client-hostnames of IoT-Devices.

Fix is commited in current branch (rolling/Equuleus), it can be tested with the latest rolling build and task status updated.

Jul 4 2019, 10:40 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1499: Move nic to mac mapping out of the configuration file.

Also to consider, if going to a different naming scheme: https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

Jul 4 2019, 2:04 PM · VyOS 1.5 Circinus
jjakob added a comment to T1491: Primary interface for bond not getting configured on VyOS 1.2.0 / 1.2.1.

mode 802.3ad doesn't support setting a primary interface.

Jul 4 2019, 11:34 AM
jjakob triaged T1506: commit-archive scp/sftp public key authentication as Wishlist priority.
Jul 4 2019, 11:07 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob created T1506: commit-archive scp/sftp public key authentication in the S1 VyOS Public space.
Jul 4 2019, 11:06 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T1499: Move nic to mac mapping out of the configuration file.

I had a few (one or two) cases where I did a rolling-to-rolling offline migration (installed the new rolling to a clean drive and copied the old config dir into new image's /boot/<image>/rw/) that the interface naming got completely screwed up, creating new eth devices in the config with higher numbers and leaving the config defined ones inactive, I then had to rescue the situation manually on console (don't remember how exactly). I probably should've created a issue then but I was just glad it was over with. Hopefully this does something to improve the situation as I'm now hesitant to do remote upgrades for fear of losing connectivity...

Jul 4 2019, 8:00 AM · VyOS 1.5 Circinus

Jun 28 2019

jjakob added a comment to T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id.

Putting the migration script on hold until I can get sample configs for "service dhcp6-server static-mapping identifier ..." and related host entries in /etc/dhcp/dhcpdv6.conf from an old vyos version with the old vyatta-cfg-dhcp-server scripts.
In particular if it was possible to set quoted strings as identifier which would be set unchanged in dhcpd6.conf, this would necessitate detecting whether the identifier was a quoted string or not, and converting the string to hex. If it wasn't possible to set quoted strings the migration script is not necessary.

Jun 28 2019, 5:51 PM · VyOS 1.2 Crux (VyOS 1.2.3)

Jun 26 2019

jjakob added a comment to T1416: 2 dhcp server run in failover mode can't sync hostname with each other.
In T1416#38821, @zsdc wrote:

I have checked behavior in 4.3.5 and 4.4.1 versions. The information about hostname is still not synced from primary to secondary.

I wonder if this was even ever a working feature. Perhaps check the source of isc-dhcp.

As I see from the information in the Debian bug report, it is about the other bug - when hostname not rewritten after offering lease. From the ISC-DHCP changelog:

This corrects an issue where leases that were offered but ignored retained the client hostname from the original client.

Also, I have found another one problem - there is no trigger in the failover mechanism to run external commands, which are using for hostname updates. This means that, even if hostname would be synced via failover, this will be not enough for updating information inside the hosts.

Therefore, due to lack of functionality inside the ISC-DHCP syncing hostnames inside the hosts file via DHCP failover is currently impossible in the VyOS.

Yeah, I'd mark this not-a-bug. Update the documentation to mention hosts file update with failover doesn't maintain consistent state between failover servers.

Jun 26 2019, 11:37 PM · VyOS 1.2 Crux (VyOS 1.2.5)
jjakob added a comment to T1376: Incorrect DHCP lease counting.

@zsdc I'm thinking of partially rewriting show_dhcp.py soon. You can wait a few days if it's not urgent.
@dongjunbo please attach your /config/dhcpd.leases as a file so we can test the code against it. You can sanitize it manually of MAC addresses if you prefer.

Jun 26 2019, 5:08 PM · VyOS 1.2 Crux (VyOS 1.2.5)
jjakob moved T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id from Finished to Need Triage on the VyOS 1.3 Equuleus board.
Jun 26 2019, 12:33 PM · VyOS 1.2 Crux (VyOS 1.2.3)
jjakob added a comment to T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id.

Since this changed dhcp6.client-id to only accept colon-separated hex lists, configs that still have the strings will fail to apply, leading to nonworking configs.
Should we bump the dhcp-server vyatta-config-version and write a migration script?
Shouldn't there be a separate dhcpv6-server/relay vyatta-config-version? Perhaps the migration script could add those.

Jun 26 2019, 12:31 PM · VyOS 1.2 Crux (VyOS 1.2.3)

Jun 25 2019

jjakob added a comment to T1416: 2 dhcp server run in failover mode can't sync hostname with each other.

I think this is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810971
Fixed in isc-dhcp 4.3.4-1 so pulling in newer isc-dhcp should fix it.

Jun 25 2019, 11:36 AM · VyOS 1.2 Crux (VyOS 1.2.5)

Jun 24 2019

jjakob created T1487: DNS (pdns_recursor) stats logs not saved to disk in the S1 VyOS Public space.
Jun 24 2019, 9:58 PM · VyOS 1.4 Sagitta (1.4.0-epa1), Restricted Project
jjakob added a comment to T1383: Cannot use quotes for openvpn-option --route-up.

I think this is a parser issue

vyos@vyos# set interfaces openvpn vtun0 openvpn-option "route-up \"echo arg1 arg2\""
Jun 24 2019, 6:38 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob moved T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id from Need Triage to Finished on the VyOS 1.3 Equuleus board.
Jun 24 2019, 6:24 PM · VyOS 1.2 Crux (VyOS 1.2.3)
jjakob changed the status of T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id from In progress to Backport candidate.
Jun 24 2019, 6:23 PM · VyOS 1.2 Crux (VyOS 1.2.3)
jjakob updated the task description for T1481: When deleting and re-adding a configuration node with the same value, exit and save still say configuration has been modified.
Jun 24 2019, 6:07 PM
jjakob created T1481: When deleting and re-adding a configuration node with the same value, exit and save still say configuration has been modified in the S1 VyOS Public space.
Jun 24 2019, 6:06 PM
jjakob changed the status of T1421: OpenVPN client push-route stopped working, needs added quotes to fix from Open to In progress.

https://github.com/vyos/vyatta-openvpn/pull/11
Tested working on current rolling

Jun 24 2019, 5:39 PM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob added a comment to T1470: improve output of "show dhcpv6 server leases".

https://github.com/vyos/vyos-1x/pull/77
tested working on rolling (current)

Jun 24 2019, 12:13 AM · VyOS 1.2 Crux (VyOS 1.2.4)

Jun 23 2019

jjakob updated subscribers of T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id.
Jun 23 2019, 11:55 PM · VyOS 1.2 Crux (VyOS 1.2.3)
jjakob added a comment to T1439: DHCPv6 static-mappings not working due to excess quotes around dhcp6.client-id.

Tested working on 1.2.0-rolling+201906210337

Jun 23 2019, 11:52 PM · VyOS 1.2 Crux (VyOS 1.2.3)
jjakob added a comment to T1331: DNS stops working.

Still present on 1.2.0-rolling+20190616
Some domains were still working normally while most returned SERVFAIL.

Jun 23 2019, 1:38 PM · VyOS 1.3 Equuleus (1.3.0)

Jun 22 2019

jjakob added a comment to T1470: improve output of "show dhcpv6 server leases".

https://kb.isc.org/docs/isc-dhcp-44-manual-pages-dhcpdleases#the-dhcpv6-lease-ia-declaration
isc-dhcpd can store IANA_DUID either as octal string (default) or hex, as set by lease-id-format parameter.
python-isc-dhcp-leases currently only supports string type, so it internally parses it into hex. We need to parse it again to add colons to unify with isc-dhcp hex format.
If python-isc-dhcp-leases were improved to add hex type support, we could set lease-id-format to hex and do away with all this parsing.

Jun 22 2019, 4:17 PM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob updated the task description for T1470: improve output of "show dhcpv6 server leases".
Jun 22 2019, 4:02 PM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob changed the subtype of T1470: improve output of "show dhcpv6 server leases" from "Task" to "Enhancement".
Jun 22 2019, 3:16 PM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob changed the status of T1470: improve output of "show dhcpv6 server leases" from Open to In progress.
Jun 22 2019, 3:15 PM · VyOS 1.2 Crux (VyOS 1.2.4)
jjakob added a comment to T1433: "show dhcpv6 server leases" shows leases from wrong file.

With https://github.com/vyos/vyos-1x/pull/74 tested working on crux.

Jun 22 2019, 2:59 PM · VyOS 1.2 Crux (VyOS 1.2.2)

Jun 21 2019

jjakob added a comment to T1434: Add support for global-parameters, shared-network-parameters, subnet-parameters and static-mapping-parameters in dhcpv6-server as already implemented in (v4) dhcp-server.

Looking at the dhcp_server.py for reference, I see the *-parameters were considered to be deprecated:

# HACKS AND TRICKS
#
# check for 'raw' ISC DHCP parameters configured by users
# actually this is a bad idea in general to pass raw parameters
# from any user
#
# deprecate this and issue a warning like we do for DNS forwarding?
if conf.exists('shared-network-parameters'):
    config['network_parameters'] = conf.return_values('shared-network-parameters')

Now I'm not sure whether this would be a welcome addition to dhcpv6 server.
My particular use-case that I considered this for is assigning per-static-mapping DNS server config (manually migrating clients enrolled into a IPA domain means I have to have some clients pointed to old DNS servers and some to new, currently I get by with setting static v6 addresses on the clients)

Jun 21 2019, 8:00 PM · VyOS 1.3 Equuleus (1.3.6)