Skip to content

DEB package fixes and tests - #1822

Merged
robertbaldyga merged 3 commits into
Open-CAS:masterfrom
robertbaldyga:tests-deb
Sep 24, 2026
Merged

robertbaldyga merged 3 commits into
Open-CAS:masterfrom
robertbaldyga:tests-deb

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

No description provided.

debhelper keeps the services' enablement symlinks until the package is
purged. open-cas.service is RequiredBy local-fs.target, so after a plain
'apt remove' local-fs.target requires a unit that no longer exists and
fails to start ('Unit open-cas.service not found'). Drop the symlinks
and their state on remove - a later install enables the services again
the same way a fresh one does. This matches the RPM, which disables the
services when the package is erased.

Also remove the Python bytecode cache casctl leaves in /usr/lib/opencas,
which kept dpkg from removing the directory - again as the RPM does.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
The modules package ships only sources that DKMS builds on the target,
yet it was built as architecture specific, depended on debhelper at run
time and named the build host's running kernel in its description, as
if it carried modules prebuilt for it. Mark it 'Architecture: all', drop
the leftover debhelper dependency and describe it as the DKMS package.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Test build (binary, debug and from the source package), installation
and removal (with and without purge), reinstall, upgrade/downgrade, the
exact version dependency between the tools and the modules, and the
DKMS rebuild for a newly installed kernel.

DEB packages always ship the modules as DKMS sources, so building a set
takes seconds and each test builds what it needs. The newer version is
produced by bumping the version file of the sources on the DUT.

These tests require Debian-based OS on DUT.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga
robertbaldyga merged commit 7816762 into Open-CAS:master Sep 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant