1
0
mirror of https://github.com/containers/netavark.git synced 2026-02-05 15:45:47 +01:00

2095 Commits

Author SHA1 Message Date
Paul Holzinger
1df9198441 bump to v2.0.0-dev
This means we are ready to merge breaking changes such as the iptables
removal.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-12 14:13:33 +01:00
Paul Holzinger
53a710a5ec release v1.17.0
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
v1.17.0
2025-11-12 13:34:41 +01:00
Paul Holzinger
35e1f235a5 release notes for v1.17.0
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-12 13:28:34 +01:00
Paul Holzinger
6cd4a15ab9 sync release notes from v1.16.1
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-12 13:15:41 +01:00
openshift-merge-bot[bot]
2d4a788c8c Merge pull request #1356 from Luap99/cargo-update
run cargo update
2025-11-11 20:26:59 +00:00
openshift-merge-bot[bot]
13b24feac5 Merge pull request #1357 from shivkr6/conntrack
refactor(netlink): Generalize socket for multi-protocol support
2025-11-10 14:01:42 +00:00
Shivang K Raghuvanshi
b83903b0ea refactor(netlink): Generalize socket for multi-protocol support
The existing `netlink.rs` was specific to `NETLINK_ROUTE`. To prepare for adding `NETLINK_NETFILTER` support for conntrack, this commit refactors the netlink socket implementation to be generic.

- A new generic `Socket<P>` is introduced in `src/network/netlink.rs` to handle common send/receive logic.
- All routing-specific code, types, and functions are moved to a new `src/network/netlink_route.rs`, which now uses `Socket<NetlinkRoute>`.
- All imports and type signatures across the codebase have been updated to use this new structure.

This is a pure refactoring with no functional changes.

Signed-off-by: Shivang K Raghuvanshi <shivangraghuvanshi2005@gmail.com>
2025-11-09 13:04:32 +05:30
Paul Holzinger
0b5a12c441 run cargo update
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-07 19:49:45 +01:00
openshift-merge-bot[bot]
4c794dc3c8 Merge pull request #1354 from Luap99/serde-update
Update serde and serde_json
2025-11-07 18:47:47 +00:00
Matt Heon
3d2effea27 Merge pull request #1352 from Luap99/action
fix download artifact action
2025-11-07 13:43:44 -05:00
openshift-merge-bot[bot]
16987205a0 Merge pull request #1355 from Luap99/test-dhcp
test-dhcp: use /24 subnet for bridge
2025-11-07 13:30:16 +00:00
Paul Holzinger
b50a043904 test-dhcp: use /24 subnet for bridge
Fix gateway_from_subnet and strip_last_octet_from_subnet usage to
actually accept a first argument with the subnet like some callers where
using. This makes more sense then depending on the global variable.

Fixes: #1344

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-06 18:42:42 +01:00
Paul Holzinger
ec06f11290 update serde and serde_json
To 1.0.228 and 1.0.145 respectively.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-06 15:35:40 +01:00
Paul Holzinger
d8fd16dd05 varktables: remove use of private serde type
The type can no longer be used. I hav eno idea why it was used here, we
just return a normal Result so can use the default Rust Ok() here.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-06 15:33:20 +01:00
openshift-merge-bot[bot]
de9f438f4a Merge pull request #1185 from containers/renovate/iptables-0.x
fix(deps): update rust crate iptables to 0.6.0
2025-11-06 12:52:23 +00:00
openshift-merge-bot[bot]
0d12ca6d70 Merge pull request #1339 from containers/renovate/clap-4.x
fix(deps): update rust crate clap to ~4.5.51
2025-11-06 12:30:02 +00:00
renovate[bot]
560b00d273 fix(deps): update rust crate iptables to 0.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-06 12:19:15 +00:00
renovate[bot]
fdeb95500d fix(deps): update rust crate clap to ~4.5.51
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-06 12:05:02 +00:00
openshift-merge-bot[bot]
4a7b1648ef Merge pull request #1343 from cathay4t/main
Upgrade to mozim 0.3.0
2025-11-05 15:33:56 +00:00
Paul Holzinger
cd8d1bf787 fix download artifact action
The v5 update broke the download location, it seems to extarct to the
root now and no longer into the release-artifacts directory. So fix this
by specifying the path explicitly, see
https://github.com/actions/download-artifact/issues/419.

Fixes: #1312

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-11-05 15:21:33 +01:00
Gris Ge
ed733e5de9 Upgrade to mozim 0.3.0
Highlights for mozim 0.3:
 * Full tokio based rewrite which does not require standalone thread for
   Future wakeup.
 * Removed `nispor` as dependency.

Signed-off-by: Gris Ge <fge@redhat.com>
2025-11-05 15:05:36 +01:00
openshift-merge-bot[bot]
c1bc4ba86b Merge pull request #1350 from timcoding1988/rotate_aws_meta_task_key
rotating aws key for metadata task
2025-11-04 14:05:53 +00:00
Tim Zhou
0d7867ed79 rotating aws metadata task key
Signed-off-by: Tim Zhou <tizhou@redhat.com>
2025-11-04 08:38:25 -05:00
renovate[bot]
0f3b790593 [skip-ci] Update GitHub Artifact Actions
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-24 22:01:01 +00:00
openshift-merge-bot[bot]
ca8681520f Merge pull request #1340 from timcoding1988/rotate_aws_key
rotate aws keys
2025-10-22 14:39:32 +00:00
Tim Zhou
ddf7e3209e rotate aws keys
Signed-off-by: Tim Zhou <tizhou@redhat.com>
2025-10-22 10:01:37 -04:00
openshift-merge-bot[bot]
71b69267c9 Merge pull request #1345 from containers/renovate/zbus-5.x
fix(deps): update rust crate zbus to 5.12.0
2025-10-15 16:15:48 +00:00
renovate[bot]
6cd1b44baa fix(deps): update rust crate zbus to 5.12.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 15:48:50 +00:00
openshift-merge-bot[bot]
e6087e9780 Merge pull request #1342 from containers/renovate/tokio-1.x
fix(deps): update rust crate tokio to 1.48.0
2025-10-15 11:34:40 +00:00
renovate[bot]
c2313bb356 fix(deps): update rust crate tokio to 1.48.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-14 19:46:50 +00:00
openshift-merge-bot[bot]
8e4a48ba93 Merge pull request #1337 from containers/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.23.0
2025-09-25 13:31:14 +00:00
renovate[bot]
80ff3a5a34 chore(deps): update rust crate tempfile to 3.23.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-23 06:06:47 +00:00
openshift-merge-bot[bot]
1d83bba7ee Merge pull request #1336 from containers/renovate/netlink-packet-core-0.x
fix(deps): update rust crate netlink-packet-core to 0.8.1
2025-09-19 15:03:52 +00:00
renovate[bot]
cdb8c0a61c fix(deps): update rust crate netlink-packet-core to 0.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-19 14:38:29 +00:00
openshift-merge-bot[bot]
8b2c14461a Merge pull request #1330 from Luap99/netlink
update netlink-package-{core, route}
2025-09-19 14:32:51 +00:00
openshift-merge-bot[bot]
7d87176333 Merge pull request #1335 from containers/renovate/hyper-util-0.x
fix(deps): update rust crate hyper-util to 0.1.17
2025-09-16 07:38:59 +00:00
renovate[bot]
09ddeb8372 fix(deps): update rust crate hyper-util to 0.1.17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-16 04:02:06 +00:00
openshift-merge-bot[bot]
b50df10450 Merge pull request #1334 from containers/renovate/serde_json-1.x
fix(deps): update rust crate serde_json to 1.0.144
2025-09-15 09:28:46 +00:00
renovate[bot]
27814a2beb fix(deps): update rust crate serde_json to 1.0.144
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-14 01:28:29 +00:00
openshift-merge-bot[bot]
1983b507c4 Merge pull request #1331 from containers/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.22.0
2025-09-10 09:56:01 +00:00
renovate[bot]
33a4eeebec chore(deps): update rust crate tempfile to 3.22.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 17:50:08 +00:00
Paul Holzinger
4aefcbbdf9 update netlink-package-{core, route}
And adapt for some minor breaking changes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-09 15:52:53 +02:00
openshift-merge-bot[bot]
5d9cc9fb78 Merge pull request #1293 from Luap99/tonic
update tonic and prost to 0.14
2025-09-09 13:41:59 +00:00
openshift-merge-bot[bot]
92b0793662 Merge pull request #1329 from containers/renovate/zbus-5.x
fix(deps): update rust crate zbus to 5.11.0
2025-09-09 11:39:06 +00:00
renovate[bot]
a501d66178 fix(deps): update rust crate zbus to 5.11.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 10:54:26 +00:00
openshift-merge-bot[bot]
70eba6026f Merge pull request #1305 from Rishikpulhani/fix-dhcp-release
Feat(dhcp): Send DHCPRELEASE on container teardown
2025-09-09 10:31:50 +00:00
Rishikpulhani
642242b5e7 feat(dhcp): Send DHCPRELEASE on container teardown
When a container using DHCP is torn down, its lease is left active on the
DHCP server until it expires. This can be problematic in environments
with small IP pools or long lease times. In setups using Dynamic DNS (DDNS),
it can also lead to stale DNS records.

This change introduces the capability for netavark to send a DHCPRELEASE
message to the DHCP server when a container's network is torn down.

This is implemented by:
- Adding a `release_lease` method to the `DhcpV4Service` in `dhcp_service.rs`,
  which wraps the `release` function from the underlying mozim client.
- Wrapped DhcpV4Service inside Arc<> share that to the process_client_stream
  function and then also store it in the task map
- used it in process_client_stream task and also in the teardown function to
  send the DHCPRELEASE message

Signed-off-by: Rishikpulhani <rishikpulhani@gmail.com>
2025-09-09 01:51:15 +05:30
Paul Holzinger
cbc038f1f5 bump MSRV to 1.86
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-08 16:50:25 +02:00
Paul Holzinger
1db5fd2e64 update tonic and prost to 0.14
Some new crates we have to use but not actually code changes.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-08 16:50:23 +02:00
openshift-merge-bot[bot]
07dd9e494c Merge pull request #1328 from containers/renovate/chrono-0.x
chore(deps): update rust crate chrono to 0.4.42
2025-09-08 13:38:29 +00:00