Commit Graph

1882 Commits

Author SHA1 Message Date
Daniel Madej
5c16010061 Data Integrity test with device unplugged during IO
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2022-03-03 12:56:33 +01:00
Michal Mielewczyk
293ee7e100 test api: add exp obj to cache conf stats section
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-03 12:13:56 +01:00
Michal Mielewczyk
4c991a9dec casadm: improve cache conf stats in standby mode
When cache is in standby mode config section of cache stats should contain only
relevant information.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-03 12:13:56 +01:00
Michal Mielewczyk
a628833ae1 casadm: list cache exp obj only when it exists
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-03 10:10:32 +01:00
Robert Baldyga
588d43629e
Merge pull request #1074 from kmajzero/device_meet_req_fix
Casadm error message update
2022-03-03 10:01:21 +01:00
Krzysztof Majzerowicz-Jaszcz
39f70bc876 Casadm error message update
Error message updated for the case of not meeting the space requirements
for the cache device.

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-03-03 09:50:46 +01:00
Karolina Rogowska
6f4398cdea
Merge pull request #1066 from Deixx/insert-error
Fix insert error tests
2022-03-02 12:50:58 +01:00
Robert Baldyga
6cedf8a339
Merge pull request #1078 from mmichal10/fix-cmd-usage
casadm: set log level when printing cmd's usage
2022-03-02 11:08:57 +01:00
Michal Mielewczyk
04c2d97ea2 casadm: set log level when printing cmd's usage
Allow printing command's usage with the same log level as it's context

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-03-02 09:44:48 +01:00
Robert Baldyga
6f26d2eade
Merge pull request #1043 from Open-CAS/casadm_detached_fix
Fix for casadm output when listing detached cache
2022-03-01 14:03:21 +01:00
Adam Rutkowski
24247aa86c
Merge pull request #1070 from mmichal10/prevent-standby-init-and-load
casadm: prevent using `init` and `load` at once
2022-02-28 14:51:57 +01:00
Karolina Rogowska
fc1be7b27e
Merge pull request #1073 from mmichal10/fix-recovery-test
tests: use greater file in recovery tests
2022-02-28 14:00:52 +01:00
Piotr Debski
e7a9f29d36 initializing completion twice replaced with reinit
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-02-27 02:50:20 +01:00
Piotr Debski
7b304d9f48 When core exported object name exists activation fails and cache is stopped
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
2022-02-25 23:06:17 +01:00
Krzysztof Majzerowicz-Jaszcz
72b67aefdd Fix for casadm output when listing detached cache
Fix for issue #1020 - make casadm produce a meaningful output when
listing a detached cache

Signed-off-by: Krzysztof Majzerowicz-Jaszcz <krzysztof.majzerowicz-jaszcz@intel.com>
2022-02-25 16:39:25 +01:00
Michal Mielewczyk
d44254586f tests: use greater file in recovery tests
To prevent flushing all dirty cache lines before the power shutdown, create
bigger file.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-25 14:36:13 +01:00
Karolina Rogowska
d706619187 cas api: add casadm commands for standby cache
Signed-off-by: Piotr Debski <piotr.debski@intel.com>
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-02-23 00:36:18 +01:00
Michał Mielewczyk
2cc7c96305
Merge pull request #1068 from mmichal10/fix-trim-test
tests: fix trim eviction test
2022-02-22 11:56:30 +01:00
Michal Mielewczyk
08307ce77b casadm: prevent using init and load at once
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-22 09:27:45 +01:00
Michal Mielewczyk
6a33024304 tests: fix trim eviction test
Instead of creating a test file twice (once with `direct` flag and once with
`sync` flag), prepare it only once (with `sync` flag). Additionally allow
classifier to settle after the IO.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-21 09:14:43 +01:00
Karolina Rogowska
05b6922a74
Merge pull request #1067 from mmichal10/fix-flushing-test
tests: allow the flushing thread to flush
2022-02-18 15:43:03 +01:00
Karolina Rogowska
12f7355316
Merge pull request #1064 from Deixx/is-it-a-fix
Stopping unplugged cache - changed behavior
2022-02-18 15:10:44 +01:00
Michal Mielewczyk
2f5afff8f2 tests: allow the flushing thread to flush
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-18 12:28:53 +01:00
Karolina Rogowska
583af2e229
Merge pull request #1056 from karolinavelkaja/ioclass_id_as_condition_test_fix
fix for test_ioclass_id_as_condition - adding 1s delay before io
2022-02-18 11:27:09 +01:00
Daniel Madej
e18946d1b9 Fix insert error tests
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-17 16:36:34 +01:00
Robert Baldyga
3787957bdf
Merge pull request #1062 from mmichal10/fix-ioclass-tests
Fix ioclass tests
2022-02-17 15:16:09 +01:00
Robert Baldyga
9424df4e2b
Merge pull request #972 from Deixx/multidut
Multidut execution and example
2022-02-17 13:27:29 +01:00
Robert Baldyga
8a9a307e41
Merge pull request #1048 from pdebski21/1023
fix for issue #1023
2022-02-17 11:16:55 +01:00
Robert Baldyga
bc5fa9bc04
Merge pull request #1063 from Deixx/hotfix-scope-fixes
Test updates addressing test fail false positives
2022-02-17 11:16:37 +01:00
Michal Mielewczyk
8ff5dcb364 tests: delay in directory based ioclass test
After setting directory based IO classification rule and creating the directory
sleep for a few seconds to allow the classifier to settle.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-17 09:21:39 +01:00
Karolina Rogowska
ddf1339adb fix for test_ioclass_id_as_condition
need to add delay before io - CAS not being able to resolve directory to inode so quickly
https://github.com/Open-CAS/open-cas-linux/issues/1046

Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
2022-02-16 15:51:30 +01:00
Michal Mielewczyk
6ad0562b53 tests: more robust verififaction in ioclass tests
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2022-02-16 08:15:17 +01:00
Daniel Madej
82b8d0d323 Stopping unplugged cache - changed behavior
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-15 12:34:00 +01:00
Daniel Madej
baac399c43 Test updates addressing test fail false positives
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2022-02-15 11:48:05 +01:00
Robert Baldyga
1742841ee3
Merge pull request #1057 from jfckm/standby-load-config
Standby load config
2022-02-11 10:12:02 +01:00
Jan Musial
a65e4b7ea9 Add cache_start helper function tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01: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
48725bb653 Fix cache_id usage in smoke tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
16b64a97f2 Update CLI message in tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
65b51a4ba7 Update tests for standby load
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
504966fdfa Un-hide tests not executed because of naming collisions
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
9da912e485 Forbid using load with other options in cas_cache
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
58b09c11a6 Forbid using load with other options in casadm
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
2ff055d689 Don't generate cache_id's on casadm side and use loaded cache params
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Jan Musial
199993d9a4 Fix error logging levels
Signed-off-by: Jan Musial <jan.musial@intel.com>
2022-02-10 12:06:37 +01:00
Robert Baldyga
3b42355b82
Merge pull request #1059 from pdebski21/1021
fix for issue #1021
2022-02-10 11:54:31 +01:00
Robert Baldyga
d942533f0d
Merge pull request #1045 from pdebski21/1024
fix for issue #1024 - mismatch metadata error msg
2022-02-07 16:33:32 +01:00
Robert Baldyga
3458688a9e
Merge pull request #1058 from robertbaldyga/version-v22.3
Update version to v22.3
2022-02-07 15:59:45 +01:00