Commit Graph

7 Commits

Author SHA1 Message Date
Jan Musial
7cdb71d5b7 Don't fail boot if opencas config is missing
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-01-13 10:42:19 +01:00
liuhongtong
087dd29560 utils: casctl needs python 3.5+
opencas.py invokes subprocess.run().
Only python 3.5 and later versions support subprocess.run().

Signed-off-by: liuhongtong <hongtongliu@126.com>
2019-11-29 11:12:58 +08:00
Jan Musial
b91fc1ca4a Wait for cas_ctrl device in casctl
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-11-18 15:00:31 +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
Michal Rakowski
3a19ae0bf5 utils: print help as default casctl cmd
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-10-02 19:56:59 +02:00
Slawomir_Jankowski
3d5d82f892 Translate python2 to python3
*opencas.py*: changed result class to contain text values instead of bytes,
translated chache configuring methods to py3,
*init script*: changed regex input on raw string to work in py3.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
2019-08-05 13:19:04 +02:00
Robert Baldyga
94e8ca09e0 Initial commit
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-03-29 08:45:50 +01:00