Commit Graph

12 Commits

Author SHA1 Message Date
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
Rafal Stefanowski
43f43068ad Update copyright statements (2021)
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2021-01-21 13:15:38 +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
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
0d256b675d Makefile changes for building RPM
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-02-11 14:47:32 +01:00
Jan Musial
aaedfb35dd Change startup procedure
Current startup procedure works on an assumption that we will
deal with asynchronously appearing devices in asynchronous way
(udev rules) and synchronous events in the system (systemd units)
won't interfere. If we would break anything (mounts) we would just
take those units and restart them. This tactic was working as long
as resetting systemd units took reasonable time.

As hackish as it sounds it worked in all systems that the software
has been validated on. Unfortunately it stopped working because
of *.mount units taking MUCH longer time to restart even on
mainstream OSes, so it's time to change.

This change implements open-cas systemd service which will wait
synchronously with systemd bootup process for all required Open CAS
devices to start. If they don't we fail the boot process just as
failing mounts would. We also make sure that this process takes place
before any mounts (aside from root FS and other critical FS's) are
even attempted. Now opencas-mount-utility can be discarded.

To override this behaviour on per-core basis you can specify
lazy_startup=true option in opencas.conf.

Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-11-14 12:20:08 +01:00
Rafal Stefanowski
623f758cb2 Improve check for Python 3 in Makefile
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-09-30 13:56:06 +02:00
Michal Mielewczyk
69cee70c54 Require python3 to install Open CAS Linux.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-09-25 18:39:50 -04:00
Robert Baldyga
fa61d2d3a6 utils: Makefile: Rename "default" target to "all"
As "all" target is supported by upper level Makefile, and target
names are passed to subdirectory Makefiles, all of them need to
support "all" target as well. Rename default target for simplicity.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-07-27 19:03:37 +02:00
Robert Baldyga
94e8ca09e0 Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-03-29 08:45:50 +01:00