-
Notifications
You must be signed in to change notification settings - Fork 453
T7557: Updates for Debian Trixie #4576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c5d9877
3f4be8e
110be2f
c3ff111
59665ec
657e552
b1542a2
f84a046
5dab884
c67ae6c
0fc8fb2
056958f
4ee0bce
8693365
ede2bf3
a8931b1
c6bef37
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ### Autogenerated by container.py ### | ||
| [Unit] | ||
| Description=VyOS Network {{ name }} | ||
|
|
||
| [Network] | ||
| {% for opt in opts %} | ||
| {{ opt }} | ||
| {% endfor %} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ### Autogenerated by container.py ### | ||
| [Unit] | ||
| Description=VyOS Container {{ name }} | ||
|
|
||
| [Container] | ||
| {% for opt in opts %} | ||
| {{ opt }} | ||
| {% endfor %} | ||
|
|
||
| [Service] | ||
| Restart={{ restart }} |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ Build-Depends: | |
| python3-hurry.filesize, | ||
| python3-netaddr, | ||
| python3-netifaces, | ||
| python3-nose, | ||
| python3-nose2, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. python3-nose2 exists in Bookworm — can we update these dependencies separately right now? |
||
| python3-jinja2, | ||
| python3-paramiko, | ||
| python3-passlib, | ||
|
|
@@ -132,6 +132,7 @@ Depends: | |
| mokutil, | ||
| shim-signed [amd64], | ||
| sbsigntool [amd64], | ||
| e2fsprogs, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could add it right now. |
||
| # Image signature verification tool | ||
| minisign, | ||
| # Live filesystem tools | ||
|
|
@@ -404,6 +405,7 @@ Description: VyOS configuration scripts and data for AWS Gateway Load Balancer | |
| Package: vyos-1x-smoketest | ||
| Architecture: all | ||
| Depends: | ||
| python3-systemd, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could add it right now, in a PR to upgrade dependencies. |
||
| skopeo, | ||
| snmp, | ||
| vyos-1x | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| <!-- include start from include/version/ssh-version.xml.i --> | ||
| <syntaxVersion component='ssh' version='2'></syntaxVersion> | ||
| <syntaxVersion component='ssh' version='3'></syntaxVersion> | ||
| <!-- include end --> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| <!-- include start from include/version/system-version.xml.i --> | ||
| <syntaxVersion component='system' version='29'></syntaxVersion> | ||
| <syntaxVersion component='system' version='30'></syntaxVersion> | ||
| <!-- include end --> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [unittest] | ||
| start-dir = src | ||
| code-directories = conf_mode | ||
| op_mode | ||
| completion | ||
| validators | ||
| tests | ||
| test-file-pattern = test_*.py | ||
| test-method-prefix = test |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ | |
| RE_GETTY_DEVICES = re.compile(r'.+@(.+).service$') | ||
|
|
||
| SD_UNIT_PATH = '/run/systemd/system' | ||
| UTMP_PATH = '/run/utmp' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This certainly deserves a separate task. |
||
|
|
||
| def get_serial_units(include_devices=[]): | ||
| # Since we cannot depend on the current config for decommissioned ports, | ||
|
|
@@ -60,10 +59,10 @@ def get_authenticated_ports(units): | |
| # | ||
| # We can safely skip blank or LOGIN sessions with valid device names. | ||
| # | ||
| for line in cmd(f'utmpdump {UTMP_PATH}').splitlines(): | ||
| row = line.split('] [') | ||
| user_name = row[3].strip() | ||
| user_term = row[4].strip() | ||
| for line in cmd(f'who').splitlines(): | ||
|
sarthurdev marked this conversation as resolved.
|
||
| row = line.split() | ||
| user_name = row[0].strip() | ||
| user_term = row[1].strip() | ||
| if user_name and user_name != 'LOGIN' and user_term in ports: | ||
| connected.append(user_term) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,6 @@ | |
|
|
||
| base_path = ['container'] | ||
| PROCESS_NAME = 'conmon' | ||
| PROCESS_PIDFILE = '/run/vyos-container-{0}.service.pid' | ||
|
|
||
| busybox_image = 'busybox:stable' | ||
| busybox_image_path = '/usr/share/vyos/busybox-stable.tar' | ||
|
|
@@ -68,9 +67,13 @@ def tearDown(self): | |
| self.assertIsNone(process_named_running(PROCESS_NAME)) | ||
|
|
||
| # Ensure systemd units are removed | ||
| units = glob.glob('/run/systemd/system/vyos-container-*') | ||
| units = glob.glob('/run/containers/systemd/vyos*') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sure this also needs its own task. |
||
| self.assertEqual(units, []) | ||
|
|
||
| def is_running(self, name): | ||
| command = f'systemctl show vyos-{name} --property=ActiveState --value' | ||
| return cmd(command).strip() == 'active' | ||
|
|
||
| def test_basic(self): | ||
| cont_name = 'c1' | ||
|
|
||
|
|
@@ -99,12 +102,7 @@ def test_basic(self): | |
| # commit changes | ||
| self.cli_commit() | ||
|
|
||
| pid = 0 | ||
| with open(PROCESS_PIDFILE.format(cont_name), 'r') as f: | ||
| pid = int(f.read()) | ||
|
|
||
| # Check for running process | ||
| self.assertEqual(process_named_running(PROCESS_NAME), pid) | ||
| self.assertTrue(self.is_running(cont_name)) | ||
|
|
||
| # verify | ||
| tmp = cmd(f'sudo podman exec -it {cont_name} sysctl kernel.msgmax') | ||
|
|
@@ -143,6 +141,8 @@ def test_name_server(self): | |
| self.cli_set(base_path + ['network', net_name, 'no-name-server']) | ||
| self.cli_commit() | ||
|
|
||
| self.assertTrue(self.is_running(cont_name)) | ||
|
|
||
| n = cmd_to_json(f'sudo podman inspect {cont_name}') | ||
| self.assertEqual(n['HostConfig']['Dns'][0], name_server) | ||
|
|
||
|
|
@@ -158,12 +158,7 @@ def test_cpu_limit(self): | |
|
|
||
| self.cli_commit() | ||
|
|
||
| pid = 0 | ||
| with open(PROCESS_PIDFILE.format(cont_name), 'r') as f: | ||
| pid = int(f.read()) | ||
|
|
||
| # Check for running process | ||
| self.assertEqual(process_named_running(PROCESS_NAME), pid) | ||
| self.assertTrue(self.is_running(cont_name)) | ||
|
|
||
| def test_ipv4_network(self): | ||
| prefix = '192.0.2.0/24' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel this warrants a comment to explain what the old settings in question are. Or can we change the scripts to make this no longer necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PowerDNS changed the settings format to YAML from legacy config files.
This argument enables our legacy .conf templates to work, pending rewrite to YAML.