list.svg58 KBDownload
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed All Stories
All Stories
All Stories
May 30 2020
May 30 2020
syncer changed the subtype of T2524: Restarting vyos-router.service breaks router from "Task" to "Bug".
Please merge the following PR, if there is a problem, please let me modify it.
c-po added a comment to T2500: vyos-build scripts/build-packages builds vyos-1x with version 0.0-no.git.tag.
Well I do no longer maintain it so it‘s defacto dead. It only served as poc, I rather use some bash aliases now to build my packages and rely on the deb mirror.
No
jjakob added a comment to T2500: vyos-build scripts/build-packages builds vyos-1x with version 0.0-no.git.tag.
@c-po IMO the script should be kept but fixed so it builds all valid packages. Otherwise there's no way to build our own packages with one command. Sure we can build them one by one by manually cloning each repository, but that's automated by this script. There's a task I already opened for it.
If so, it's better to consider porting the 1.2 NPT implementation instead of using a new solution. Can they coexist? I'm just a suggestion.
thomas-mangin added a comment to T2500: vyos-build scripts/build-packages builds vyos-1x with version 0.0-no.git.tag.
I believe it was git pull —tags which fixed it for me ..
thomas-mangin added a comment to T2436: equuleus: Testing: vyos-1x: syntax checking Python scripts in PR.
Many scripts also so do implement if name == “main”
I'm working on a larger set of patches for DNS, a fix for this will be included
This does not compile python scripts without a .py extension (there are several in src/services, src/utils that have #!/usr/bin/env python3)
daniil changed Is it a breaking change? from behavior to none on T2533: FRR 7.3.1-0 stale connected route.
The recent implementation here uses the python ifconfig module and walks it to detect interfaces marked as beidgable. I found such constructs are way too slow, simply listing ls -1 /sys/class/net (and do some filtering) is magnitudes faster.
c-po closed T2460: Migrate vyatta-nat-translations.pl to Python, a subtask of T2198: Rewrite NAT in new XML/Python style, as Resolved.
c-po added a comment to T2500: vyos-build scripts/build-packages builds vyos-1x with version 0.0-no.git.tag.
I think I drop the script as it was considered as a PoC but its heavily unmaintained
That is what VyConf is for
It‘s implemented in 1.2 but not with the new nftables based NAT backend as the required commands could not be translated from ip6tables.
Validator now prevents this
c-po changed the status of T2530: Error creating VRF with a name of exactly 16 characters from Open to In progress.
c-po changed Is it a breaking change? from none to compatible on T2531: Update Linux Kernel to v4.19.125.
In addition a show opmode command should be added to list all the USB serial stuff in a human friendly way
May 29 2020
May 29 2020
Completion helper:
vyos@vyos:~$ find /dev/serial/by-bus/ -name usb* -exec basename {} \; | sort
usb0b1.3p1.0
usb0b1.3p1.2
usb0b1.3p1.3
usb0b2.4p1.0
usb0b2.4p1.1
usb0b2.4p1.2
usb0b2.4p1.3Unknown Object (User) changed the status of T2000: strongSwan does not install routes to table 220 in certain cases from In progress to Needs testing.
c-po moved T2528: "update dns dynamic" throws FileNotFoundError excepton from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved T2342: Bridge l2tpv3 + ethX errors from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.6) board.
c-po moved T1982: Increase rotation for atop.acct from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.6) board.
c-po moved T1291: Under certain conditions the VTI will stay forever down from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.6) board.
c-po moved T103: DHCP server prepends shared network name to hostnames from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.6) board.
c-po moved T2528: "update dns dynamic" throws FileNotFoundError excepton from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.6) board.
c-po added a project to T2528: "update dns dynamic" throws FileNotFoundError excepton: VyOS 1.2 Crux (VyOS 1.2.6).
c-po changed the status of T2528: "update dns dynamic" throws FileNotFoundError excepton from Open to In progress.
GitHub <noreply@github.com> committed rVYOSONEXd40daeaa4d09: Merge pull request #439 from thomas-mangin/T2088-explicit-airbag (authored by c-po).
If you think it's possible to delay dhcp6c, I'll start making patches.
@CRCinAU @c-po I have already submitted a PR, to repair the problems caused by the first load after boot, because the interface has not yet been initialized, but this completely depends on the automatic restart of systemctl for fault recovery. I think this is not enough. It is natural to recover from the failure, but if there is a mechanism and processing, it would be better to postpone it until all interfaces have been initialized.
@gadams Is there any way to dynamically increase the dependency list in vyos's current configuration?
There is no error in the configuration itself, and the key is the first boot load when rebooting. In this case, some of the interfaces are not initialized.
So - just to refocus for a minute...
May 28 2020
May 28 2020
@c-po if the interface dependency system that @jjakob describes works as I might imagine, then perhaps it's just a matter of adding the interfaces that appear in prefix-delegation configs to the dependency lists. (There would be some subtleties dealing with things like vifs within an interface, but that can be sorted out.)
In T421#65476, @gadams wrote:Recovery from failures does seem generally desirable, but it would also be preferable to discover errors in configuration while in conf code. For this reason, it seems like the best way to handle this would be to defer starting dhcp6c until the very end of configuring all the interfaces, if that's possible. Is there a mechanism already to do this, or should I look into restructuring things slightly.
c-po changed the status of T1291: Under certain conditions the VTI will stay forever down from Unknown Status to Resolved.
c-po edited projects for T1291: Under certain conditions the VTI will stay forever down, added: VyOS 1.2 Crux (VyOS 1.2.6); removed Ready for Crux (1.2.x).
I've been trying to find the ultimate solution to this problem, and it seems that the best solution is to postpone dhcp6c until the end of all interfaces to start it. Before that. I have done enough testing, and the previous comments in the error log have been released.
@jjakob I understand what you mean, so let me explain to you carefully. Over the past two days, I have been trying to find out why the first automatic startup of dhcp6c fails (this is usually due to the automatic call when vyos automatically loads the configuration). At present, the root cause has been determined. I just call dhcp6c manually by the script of vyos, and I also understand this process, but because of the particularity of prefix delegation, such as my case, When pppoe completes the call to execute dhcp6c@pppoe0 execution prefix delegation, I give the prefix to br1 and br2, respectively, which are not created at the startup of their pppoe0 and dhcp6c@pppoe0, so the dhcp6c launcher will fail. I currently have a pudding configuration that when the vyos script manually invokes and starts dhcp6c and fails, it restarts at regular intervals until the service runs or the user stops it manually. But this is far from enough, it only depends on the recovery from the failure of the systemctl startup service to complete the recovery operation. As @gadams said, due to the particularity of dhcp6c's configuration file, when its prefix is delegated, its dependency will change from configuration to change, and its behavior allows it to depend on all interfaces. Therefore, it is a good idea to postpone the startup of dhcp6c to the last call (please note that fault exploration has been completed, the root cause of this failure has been determined, and its temporary patch configuration has been tested in the local environment. Therefore, we can first approve the patch configuration merge, and then discuss the issues related to the postponement of dhcp6c)
I haven't looked at how dhcp6c gets started currently. VyOS uses systemd to manage the services, but none of them should be set to enabled, they're all started manually via VyOS scripts. It's possible it's done differently in this case, I'm not going to speculate on something I don't know. I assumed it got started the same, when the interface script starts it.
On the dependency problem, I don't know how dhcp6c behaves when it's started with configured nonexistent interfaces. If it does cause a failure to start, that is an issue that needs to be fixed via another way. I'm not the implementer of this code so I'm not going to speculate on the best way to do it.
jjakob added a comment to T2515: Ethernet interface is automatically disabled when removing it from bond.
That's basically re-implementing and duplicating code from the ethernet script. It would work for bonding and for the link-local, but I'm thinking there may be other attributes that enslaving it to a bond (or bridge) may have changed (MTU?) that I don't know if they're changed back by the kernel after unenslaving it. It would quickly become a kludge.
You'd also need to do the same in the bridge interface, but there there can be any interface type enslaved, so you'd need to first get the interfaces config path (via Section). You'd end up with 2 pieces of code that are slightly different that duplicate code from the interface scripts (rather I think it's been moved into configdict.intf_from_dict).
It is possible, but I don't like it at all.
Unknown Object (User) renamed T2515: Ethernet interface is automatically disabled when removing it from bond from IPv6 link-local address is gone after removing the interfaces from bond to Ethernet interface is automatically disabled when removing it from bond.
Unknown Object (User) added a comment to T2515: Ethernet interface is automatically disabled when removing it from bond.
I just did a few more tests and the reason why IPv6 is gone is that the interface is being automatically disabled after it leaves bond membership. I will change the description accordingly.
Of course, if there is a better way to solve this problem, you are welcome to put forward
When using dhcp6c for prefix delegation fetch, it can rely on any interface and should be called after all interfaces have finished starting
Because it is impossible to determine the user's dependence on the configuration interface of dhcp6c, the dependency problem has already occurred, which will cause the startup program of dhcp6c to fail after rebooting the system. I have made a patch configuration so that dhcp6c, can be restarted indefinitely in the event of failure, but this is still not the best way. Of course, the best solution may be to postpone the startup priority of dhcp6c.
Sure, a new task would be very welcome so there's less spam in this task.
Why do you want to postpone dhcp6c startup? All the requirements and dependencies are there when the interface scripts start it. The interface is brought up before it's started. Other than waiting for a pppoe connection, yes, that would be worthwile. Each interface script has a priority so that other interfaces they depend on are configured before the one that depends on them, that's set in the priority tag in the XML definitions and done by vyatta-cfg. They're started sequentially by their priority value, not all at once.
Unknown Object (User) added a comment to T2515: Ethernet interface is automatically disabled when removing it from bond.
@jjakob, thanks for your opinion. What if we just add a couple of lines into the apply() function in the interfaces-bonding.py:
https://github.com/vyos/vyos-1x/compare/current...L6NqLW:T2515?expand=1
Because I need to recover the fault first, so I made a patch. After all, I don't have a good way to postpone its processing.
I think this problem can consider setting up a new task list and studying how to postpone the processing of this. Fault recovery is usually desirable, but we should not push all possible priority-induced failures to recovery in the fault.
I still think the failure recovery mechanism needs to exist, but I agree with you. I think we should postpone the startup mechanism of dhcp6c until all interfaces have been initialized. A better idea is to execute dhcp6c processing uniformly after all interfaces have been initialized.
Recovery from failures does seem generally desirable, but it would also be preferable to discover errors in configuration while in conf code. For this reason, it seems like the best way to handle this would be to defer starting dhcp6c until the very end of configuring all the interfaces, if that's possible. Is there a mechanism already to do this, or should I look into restructuring things slightly.
Please merge this fix.
The repair settings take effect on tests in the local environment.
@gadams Yes, I thought that since the system CTL automatic restart failed, I might need to write a script to perform the automatic recovery. Now it doesn't seem necessary. I will modify its service file.
OK, I have found the best recovery. I will submit PR immediately. I will modify the service settings of systemctl and use its failure to restart automatically to fix the problem. When dhcp6c service fails to start, it will restart according to the preset settings.
Something else I realized last night: In general, it's not safe to start dhcp6c before all interfaces are configured, as long as PD is specified (whether 'address dhcpv6' is specified). That's because the prefix-delegation stanza can refer to any other interface on the system--even ones that haven't been set up, yet. That might include vif interfaces (such as I noticed last night) or any other virtual interface, like br or tun.
@gadams it makes no sense to use this as a catch-all thread. New requests/bugs should go into dedicated tasks.
@jjakob Yes, exactly my thoughts, and what my last pull request starts. I'll try to catch the remaining cases later this evening my time (in 12 hours or so). I can imagine one case that might be a little tricky.
GitHub <noreply@github.com> committed rVYOSONEXd7ae866ec522: ethernet: T2514: add warning when changing mac for bond member (authored by L6NqLW <64205544+L6NqLW@users.noreply.github.com>).
c-po added a comment to T2523: Upgrade from 1.2.5 to 1.3-rolling-202005261512 results in broken network config on second boot.
Yes there have been issues with interface naming in the past. Hopefully they are finally resolved in 1.3 now.
In general, there are several solutions:
a) Add the CLI option of auto repair daemons, and rely on cron to execute the repair program. In case of service failure, the service can be restarted automatically
b) Find the only way to solve the problem thoroughly
Generally, I prefer a + b, so that when the service fails to start in a single time, the daemons can complete the recovery execution.
But it's just an idea. If you have any other suggestions, please let me know.
Unknown Object (User) added a comment to T945: Unable to change configuration after changing it from script (vbash + script-template).
@zsdc can you try to reproduce this issue on 1.3 rollings or on 1.2.5? I can't reach this behavior.
Unknown Object (User) changed the status of T2000: strongSwan does not install routes to table 220 in certain cases from Confirmed to In progress.
Unknown Object (User) added a comment to T2000: strongSwan does not install routes to table 220 in certain cases.
PR added https://github.com/vyos/vyatta-cfg-vpn/pull/33.
vyos@vyos# commit [ vpn ] Warning: local prefix 192.168.34.0/24 specified for peer "192.168.50.2" is not configured on any interfaces
Unknown Object (User) edited projects for T2517: vyos-container: link_filter: No such file or directory, added: VyOS 1.2 Crux (VyOS 1.2.6); removed VyOS 1.2 Crux.