Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SPECS/kata-containers-cc/kata-containers-cc.signatures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Signatures": {
"kata-containers-3.2.0.azl4-cargo.tar.gz": "2a242deedddbd01b50b56d9f6d02ffd3f40cb2e91221fda4f4b4791d98404f96",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove these changes for a pull request. please prepare or contribute to a branch that can be used as the base branch for the Kata CI pipeline which ingests the new release sources. The PR title should then be 'update kata-containers package to azl3.2.0.5 or similar'

"kata-containers-3.2.0.azl4.tar.gz": "397749898ae5963b9d88092e1bd3aacfb2d9bdeb35373be079879fc92f7ffd71"
"kata-containers-3.2.0.azl4.tar.gz": "e9bb1124541152178bb642f613ab586dc7d021021b769d0548c5013ea701361d",
"kata-containers-3.2.0.azl4-cargo.tar.gz": "18749c417a5d0458549832237329cef2f8042fbd28fffde7d7084a2b75cc7188"
}
}
28 changes: 21 additions & 7 deletions SPECS/kata-containers-cc/kata-containers-cc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: kata-containers-cc
Version: 3.2.0.azl4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Kata Confidential Containers package developed for Confidential Containers on AKS
License: ASL 2.0
URL: https://github.com/microsoft/kata-containers
Expand Down Expand Up @@ -43,6 +43,12 @@ Summary: Kata Confidential Containers tools package for building the UVM
%description tools
This package contains the scripts and files required to build the UVM

%package tardev
Summary: tardev-snapshotter for Kata Containers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tardev-snapshotter is not necessarily tied to kata containers. we should rephrase to express its more generic purpose


%description tardev
This package contains the tardev-snapshotter service for Kata Containers.

%prep
%autosetup -p1 -n %{sourceName}-%{version}
pushd %{_builddir}/%{sourceName}-%{version}
Expand All @@ -52,6 +58,7 @@ popd
%build
pushd %{_builddir}/%{sourceName}-%{version}/tools/osbuilder/node-builder/azure-linux
%make_build package-confpods
%make_build tardev
popd

%define kata_path /opt/confidential-containers
Expand All @@ -64,15 +71,16 @@ popd
pushd %{_builddir}/%{sourceName}-%{version}/tools/osbuilder/node-builder/azure-linux
START_SERVICES=no PREFIX=%{buildroot} %make_build deploy-confpods-package
PREFIX=%{buildroot} %make_build deploy-confpods-package-tools
PREFIX=%{buildroot} %make_build deploy-tardev
popd

%preun
%preun tardev
%systemd_preun tardev-snapshotter.service

%postun
%postun tardev
%systemd_postun tardev-snapshotter.service

%post
%post tardev
%systemd_post tardev-snapshotter.service
if [ $1 -eq 1 ]; then # Package install
systemctl enable tardev-snapshotter.service > /dev/null 2>&1 || :
Expand All @@ -82,9 +90,6 @@ fi
%files
%{_sbindir}/mount.tar
%{_bindir}/kata-overlay
%{_bindir}/tardev-snapshotter
%{_unitdir}/tardev-snapshotter.service

%{kata_bin}/kata-collect-data.sh
%{kata_bin}/kata-monitor
%{kata_bin}/kata-runtime
Expand All @@ -98,6 +103,12 @@ fi
%doc CONTRIBUTING.md
%doc README.md

%files tardev
%{_bindir}/tardev-snapshotter
%{_unitdir}/tardev-snapshotter.service
%{_sbindir}/mount.tar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will also need to remove mount.tar and kata-overlay from above files!?

%{_bindir}/kata-overlay

%files tools
%dir %{kata_path}
%dir %{tools_pkg}
Expand Down Expand Up @@ -150,6 +161,9 @@ fi
%{tools_pkg}/tools/osbuilder/node-builder/azure-linux/agent-install/usr/lib/systemd/system/kata-agent.service

%changelog
* Tue Mar 18 2025 Mitch Zhu <[email protected]> - 3.2.0.azl4-2
- Add tardev subpackage

* Wed Jan 22 2025 Saul Paredes <[email protected]> - 3.2.0.azl4-1
- Upgrade to 3.2.0.azl4 release

Expand Down
4 changes: 2 additions & 2 deletions SPECS/kata-containers/kata-containers.signatures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Signatures": {
"kata-containers-3.2.0.azl4-cargo.tar.gz": "2a242deedddbd01b50b56d9f6d02ffd3f40cb2e91221fda4f4b4791d98404f96",
"kata-containers-3.2.0.azl4.tar.gz": "397749898ae5963b9d88092e1bd3aacfb2d9bdeb35373be079879fc92f7ffd71"
"kata-containers-3.2.0.azl4.tar.gz": "e9bb1124541152178bb642f613ab586dc7d021021b769d0548c5013ea701361d",
"kata-containers-3.2.0.azl4-cargo.tar.gz": "18749c417a5d0458549832237329cef2f8042fbd28fffde7d7084a2b75cc7188"
}
}
18 changes: 17 additions & 1 deletion SPECS/kata-containers/kata-containers.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: kata-containers
Version: 3.2.0.azl4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Kata Containers package developed for Pod Sandboxing on AKS
License: ASL 2.0
URL: https://github.com/microsoft/kata-containers
Expand All @@ -22,8 +22,10 @@ BuildRequires: openssl-devel
BuildRequires: clang
BuildRequires: device-mapper-devel
BuildRequires: cmake
BuildRequires: fuse-devel

Requires: kernel-uvm
Requires: kata-containers-cc-tardev
# Must match the version specified by the `assets.virtiofsd.version` field in the source's versions.yaml.
Requires: virtiofsd = 1.8.0

Expand Down Expand Up @@ -67,6 +69,8 @@ popd
%{kata_bin}/kata-runtime

%{defaults_kata}/configuration.toml
%{defaults_kata}/configuration-clh-debug.toml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line relevant for this PR?

%{defaults_kata}/configuration-blk.toml

%{kata_shim_bin}/containerd-shim-kata-v2

Expand All @@ -81,6 +85,13 @@ popd
%dir %{tools_pkg}/tools/osbuilder
%{tools_pkg}/tools/osbuilder/Makefile

%dir %{tools_pkg}/src
%dir %{tools_pkg}/src/kata-opa
%{tools_pkg}/src/kata-opa/allow-all.rego
%dir %{tools_pkg}/src/tarfs
%{tools_pkg}/src/tarfs/Makefile
%{tools_pkg}/src/tarfs/tarfs.c

%dir %{tools_pkg}/tools/osbuilder/scripts
%{tools_pkg}/tools/osbuilder/scripts/lib.sh

Expand Down Expand Up @@ -112,6 +123,11 @@ popd
%{tools_pkg}/tools/osbuilder/node-builder/azure-linux/agent-install/usr/lib/systemd/system/kata-agent.service

%changelog
* Tue Mar 18 2025 Mitch Zhu <[email protected]> - 3.2.0.azl4-2
- Add systemd-udev, tarfs, and tardev-snapshotter to enable virtio-blk with pod sandboxing
- Add new config for virtio-blk based pod sandboxing
- Set AGENT_POLICY=yes for UVM and kata-agent

* Wed Jan 22 2025 Saul Paredes <[email protected]> - 3.2.0.azl4-1
- Upgrade to 3.2.0.azl4 release

Expand Down
51 changes: 39 additions & 12 deletions SPECS/kata-packages-uvm/kata-packages-uvm.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Metapackage for Kata UVM components
Name: kata-packages-uvm
Version: 1.0.0
Release: 7%{?dist}
Release: 9%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
Expand All @@ -14,34 +14,50 @@ Requires: bash
Requires: ca-certificates
Requires: chrony
Requires: cpio
# Required for confidential storage functionality
Requires: cryptsetup
Requires: curl
Requires: dbus
# Required for confidential storage functionality
Requires: e2fsprogs
Requires: elfutils-libelf
Requires: filesystem
Requires: grep
Requires: gzip
Requires: iptables
Requires: iproute
Requires: iputils
Requires: irqbalance
Requires: lvm2
Requires: lz4
Requires: procps-ng
Requires: readline
Requires: sed
# Note: We currently only support using systemd for our init process, not the kata-agent.
# When we go to add support for AGENT_INIT=yes, can drop this.
# https://github.com/microsoft/kata-containers/blob/msft-main/tools/osbuilder/rootfs-builder/cbl-mariner/config.sh#L10
Requires: systemd
Requires: tar
Requires: tzdata
Requires: util-linux
Requires: zlib
Requires: cifs-utils
Requires: device-mapper
# Note: This assumes we are using systemd which may not always be the case when we support AGENT_INIT=yes
Requires: systemd-udev

%description
Metapackage to install the set of packages inside a Kata containers UVM

%package debug
Summary: Metapackage to install the set of packages inside a Kata confidential containers debug UVM.
Requires: %{name} = %{version}-%{release}
Requires: curl
Requires: cpio
# Provides find
Requires: findutils
Requires: gzip
Requires: iproute
# Provides ping, tracepath, etc for debugging net
Requires: iputils
Requires: lz4
Requires: sed
Requires: tar
# Provides free, kill, pgrep, ps, etc
Requires: procps-ng

%description debug
Metapackage to install the set of packages inside a Kata containers UVM, includes extra debug utilities.

%package coco
Summary: Metapackage to install the set of packages inside a Kata confidential containers UVM.
Requires: %{name} = %{version}-%{release}
Expand Down Expand Up @@ -95,13 +111,24 @@ Requires: golang

%files

%files debug

%files coco

%files build

%files coco-sign

%changelog
* Mon Feb 24 2025 Mitch Zhu <[email protected]> - 1.0.0-9
- Add cifs-utils, device-mapper, and systemd-udev to kata pod sandboxing.

* Tue Feb 11 2025 Cameron Baird <[email protected]> - 1.0.0-8
- Introduce debug metapackage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI cherry-picked from #12298.
Current plan is to merge after this one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best to remove things from your commit/branch that you do not add. Let's get to a baseline diff of the changes you want to introduce invidually.

- Move curl, cpio, gzip, iputils, lvm2, tar, procps-ng to debug metapackage
- Remove bash, grep, readline, util-linux from all metapackages (implicit deps of existing requirements)
- Add findutils to debug metapackage

* Mon Nov 25 2024 Manuel Huber <[email protected]> - 1.0.0-7
- Add explicit make dependency for UVM build
- Remove commented package dependencies
Expand Down
Loading