Commit Graph

77 Commits

Author SHA1 Message Date
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
Rafal Stefanowski
34961c7ff0 Fix versioning related error messages
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-07-31 15:19:33 +02:00
Robert Baldyga
b8cfee1883
Merge pull request #435 from rafalste/update_versioning
Version unifying
2020-07-27 18:34:46 +02:00
Robert Baldyga
3c486186e7
Merge pull request #436 from mmichal10/upgrade-return-error
upgrade: return actual upgrade status
2020-06-15 16:30:06 +02:00
Michal Mielewczyk
165fcae798 upgrade: restore original config after upgrade
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-06-12 02:48:09 -04:00
Rafal Stefanowski
05d8181a85 Update RPM creation for new versioning
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-06-10 18:14:36 +02:00
Michal Mielewczyk
fb8c4c34cf upgrade: return actual upgrade status
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-06-10 11:56:59 -04:00
Rafal Stefanowski
afa0c1b53f Modify version check flow
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-06-10 15:08:37 +02:00
Robert Baldyga
80327aea1b
Merge pull request #418 from rafalste/pckgen_deps
Fix pckgen dependencies
2020-05-25 15:04:25 +02:00
Rafal Stefanowski
72387d61fd Fix pckgen dependencies
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-15 15:18:28 +02:00
Rafal Stefanowski
44b4020cc1 Update copyright statements
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-04 16:47:38 +02:00
Rafal Stefanowski
20aa069546 Change 'major' version number to double digit
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-04-03 12:25:14 +02:00
Rafal Stefanowski
a2d64d7d55 Fix git calls in package generator script
- make git command compatible with older git versions by removing -C option
- minor syntax improvements in the entire script

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-03-27 16:19:57 +01:00
Robert Baldyga
5b37183e41
Merge pull request #344 from rafalste/add_package_generator
Add package generator script
2020-03-25 12:40:29 +01:00
Rafal Stefanowski
7335b321ea Add package generator script
- add a 'pckgen' script to generate various OpenCAS packages like
release archives (tar, zip), RPMs (source and binary) as well as to
create version file with metadata
- add a SPEC file for RPM creation
- add Makefile targets to use 'pckgen' script through 'make <package>'

'pckgen' script has a bunch of features for package generation.
Read './pckgen --help' for more information on usage scenarios.

Script is also prepared to easily add new packages creation in the future.

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-03-20 03:16:56 +01:00
Slawomir Jankowski
5d74062599 Casadm man extend
Add description of OpenCAS exported objects' naming template
Update date in mans.
closes #359

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-03-19 13:05:18 +01:00
Daniel Madej
55bdad7054 Return exit codes from casctl stop
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-03-17 11:55:51 +01:00
Rafal Stefanowski
0d256b675d Makefile changes for building RPM
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-02-11 14:47:32 +01:00
Adam Rutkowski
3c6e76aa39 Remove obsolete ext3 & ext4 io class configs
These configs use legacy syntax and serve no purpose
on standard kernels.

Fixes #261

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-02-11 15:25:29 -05:00
Michal Mielewczyk
f76103dc60 casctl: fix matching multilevel configuration
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-01-30 09:36:45 -05:00
Michal Mielewczyk
6c57d2827f Fix restoring old CAS version when upgrade failed
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-01-29 10:12:09 -05:00