Commit Graph

97 Commits

Author SHA1 Message Date
Daniel Madej
d562602556 Add force to gzip commands
Without force make shows errors when .gz
files already exist.

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
2025-02-28 12:25:09 +01:00
Robert Baldyga
0f6c122e17 Fix manpage installation
gzip manpage properly and update mandb after its installation.

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2025-01-27 22:20:13 +01:00
Jan Musial
5e5b249d24 Fix dracut warning
Dracut requires values appended to config to be surrounded by whitespace

Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-09-21 09:31:43 +02:00
Robert Baldyga
13d3decfa9 Consolidate modules
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2022-09-16 15:16:28 +02:00
Rafal Stefanowski
91f5d497ef copyright/license: Add missing file extensions
Proper file extensions help 'copyright header checker' find files
that should contain copyright info. Extensions also clearly indicate
file type, and help to fit in with the file naming convention.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-09-07 15:23:11 +02:00
Krzysztof Majzerowicz-Jaszcz
69e8e7cd11 Casctl: Python version check fix
Fixes the python version check code in the casctl.

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-05-05 09:06:53 +00:00
Rafal Stefanowski
cb8d1cffae Fix files/dirs permissions
- change modes to proper values
- replace 'mkdir' with 'install'
- remove unused files and dirs

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:49:38 +02:00
Rafal Stefanowski
b14bf05ff8 Add missing license info
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2022-03-28 11:31:15 +02:00
Jan Musial
94daf4e2d6 Update opencas.conf manpage
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
fa167c267f Add support for failover states in opencas.conf
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
a187813d13 Minor improvements in opencas.py/casctl
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
c64e6a3f33 Fix code formatting in casctl
Signed-off-by: Jan Musial <jan.musial@intel.com>
2021-12-29 07:25:16 +01:00
Jan Musial
aa895fe20c Remove dependency on packaging Python package
Signed-off-by: Jan Musial <jan.musial@intel.com>
2021-12-29 07:24:30 +01:00
Robert Baldyga
91c7aa2361
Merge pull request #985 from robertbaldyga/min-python-version-check
Better minimum python version check
2021-11-10 12:36:40 +01:00
Robert Baldyga
96e6acc7f1 casctl: Add minimum python version check
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:59:05 +01:00
Robert Baldyga
5bc29d26ca casctl: Fix license tag
Open CAS Linux and other projects in the Open CAS repo were always intended
to be released under the OSI-approved BSD 3-Clause License.
Change the license tag to the proper one.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:59:05 +01:00
Robert Baldyga
791829a8ce Revert "utils: casctl needs python 3.5+"
This reverts commit 087dd29560.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:58:58 +01:00
Robert Baldyga
14abaf1589 Revert "opencas.py uses the f-string feature of python3.6+."
This reverts commit b533e2cbf9.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:57:00 +01:00
Robert Baldyga
83a477683f open-cas.service: Increase start timeout
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:56:16 +01:00
Robert Baldyga
b689ca3aa6 open-cas.service: Fix license tag
Open CAS Linux and other projects in the Open CAS repo were always intended
to be released under the OSI-approved BSD 3-Clause License.
Change the license tag to the proper one.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:56:16 +01:00
Robert Baldyga
5d33fce70f Revert "utils: lengthen open-cas service timeout"
This reverts commit 40694e5ef3.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-11-10 10:55:55 +01:00
Rafal Stefanowski
acec05060d Fix license
Change license to BSD-3-Clause

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-10-28 12:46:42 +02:00
Robert Baldyga
c968285d9f Remove upgrade-in-flight feature
Due to changes in Linux kernel this feature is not working anymore.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-08-11 20:33:16 +02:00
Sha Fanghao
b533e2cbf9 opencas.py uses the f-string feature of python3.6+.
Signed-off-by: Sha Fanghao <shafanghao@gmail.com>
2021-03-29 18:17:11 +08:00
Robert Baldyga
880cfadde9 Makefile: improve uninstall error handling
Introduce helper functions to handle uninstall errors gracefully.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 15:37:55 +01:00
Robert Baldyga
e58dae02ac Move build system tools to separate directory
Separate tools used internally by build system from utilities that are
part of Open CAS installation package.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 15:37:55 +01:00
Robert Baldyga
feaafdfe06 Makefile: Little cleanup
Move files to components they belong to.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 15:27:03 +01:00
Robert Baldyga
9eaca4bc96 Remove info about casadm -N command from manpage
This command is no longer available.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-02-16 15:38:21 +01:00
Rafal Stefanowski
e17da1cdcc RPM: Improve python files handling
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-02-09 01:04:36 +01:00
Adam Rutkowski
b0ba347ee7 man entry for --zero-metadata command
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-01-21 17:11:31 +01:00
Rafal Stefanowski
43f43068ad Update copyright statements (2021)
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-01-21 13:15:38 +01:00
Rafal Stefanowski
87ea8ced35 Fix resolving modules path for weak-modules
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-01-07 10:26:38 +01:00
Robert Baldyga
d1a2a5ada2 open-cas-loader: Fix error message
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-29 10:50:42 +01:00
Robert Baldyga
309b674fd8
Merge pull request #535 from Ostrokrzew/by-id
Disallow to use other than by-id path to core or cache device
2020-12-23 14:38:07 +01:00
Robert Baldyga
b0f36bea3b utils: Exclude Open CAS modules from dracut initramfs image
Open CAS modules are not intended to be included into initramfs, and so
CAS upgrade does not trigger initramfs rebuild. This may lead to loading
old Open CAS modules if they were included into initramfs image. Explicitly
excluding them from initramfs image effectively addressed this issue.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-22 17:13:10 +01:00
Slawomir Jankowski
17f440de10 Update TF and functional tests API
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-12-22 16:29:33 +01:00
Slawomir Jankowski
0d9a56b4f0 Update smoke tests utilities
according to recent changes

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-12-22 16:29:06 +01:00
Slawomir Jankowski
7b4837e240 Documentation update
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-12-22 16:29:06 +01:00
Slawomir Jankowski
d7e0bad5a4 Coding style fixes in loader to meet PEP 8 criteria
Change str.format() to formatted string literals.
It should be a little faster and easier to read.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-12-22 16:29:05 +01:00
Slawomir Jankowski
068d90bbea Do not accept non-by-id path in opencas.conf
Exception: allow passing exported objects paths.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-12-22 16:29:05 +01:00
Robert Baldyga
4972deb312
Merge pull request #558 from imjfckm/fix-cache-lazy-startup
Fix handling of lazy_startup for cache
2020-11-05 14:02:41 +01:00
Robert Baldyga
3060aaf95f Introduce DKMS support for DEB packages
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-11-04 11:47:34 +01:00
Jan Musial
45d0d36191 Fix handling of lazy_startup for cache
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-10-27 11:17:26 +01:00
Jan Musial
3ce173800f Make casctl settle wait for udev and add cores/start caches
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-10-14 14:27:06 +02:00
Jan Musial
bc29b6987a Update sample opencas.conf to include lazy_startup option
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-10-05 16:49:53 +02:00
Rafal Stefanowski
ef70bce154 Update automatic package generator
- add DEB package creation functionality
- update RPM spec file to work with SLES

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-09-14 14:17:28 +02:00
Rafal Stefanowski
bc5c92d3ed Fix typo in casctl manpage title line
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-09-14 13:12:06 +02:00
Robert Baldyga
795bdd2440
Merge pull request #483 from rafalste/fix_weak_updates_symlinks
Fix depmod error in RPM install/uninstall
2020-09-14 12:36:07 +02:00
Rafal Stefanowski
67858ed594 Fix depmod error in RPM install/uninstall
Fixes module removing by weak-modules and deleting broken symlinks to
non-existing modules.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-09-11 16:08:04 +02:00
Rafal Stefanowski
db07756d22 Patch for RPM generation on SLES
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-09-01 00:15:37 +02:00