Commit Graph

787 Commits

Author SHA1 Message Date
Slawomir Jankowski
9ad35e8ae9 Remove one of multiple cores from cache
OpenCAS continues to operate after one of many cores is removed:
1. "Start cache",
2. "Add core1 to previously created cache",
3. "Add core2 to previously created cache",
4. "Fill cache with pages from core1",
5. "Remove core1",
6. "Check if core2 is able to use cache"

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-14 14:50:29 +01:00
Michal Rakowski
25bf128c1a functional tests: fix setting seq_cutoff policy
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-02-14 14:48:13 +01:00
Michał Mielewczyk
cf4e0f1e11
Merge pull request #336 from katlapinka/vmalloc-flags
env: implement vmalloc with GFP flags
2020-02-14 14:47:00 +01:00
Adam Rutkowski
e1a7c7f7e8 env: implement vmalloc with GFP flags
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-02-14 14:30:12 +01:00
Slawomir Jankowski
8991153bd8 Remove core from multilevel cache
OpenCAS not allow remove the core on 1 level cache when is used by level 2:
/1/ "Create multilevel intelcas device",
/2/ "Try to remove intelcas device on level 1",
/3/ "Remove intelcas device"

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-13 15:54:32 +01:00
Slawomir Jankowski
7904c06423 Add message
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-13 15:54:32 +01:00
Sławomir Jankowski
ac05dadfcd
Merge pull request #320 from micrakow/kedr_io
functional tests: add kedr with filesystem test
2020-02-13 15:34:28 +01:00
Michał Mielewczyk
1c45ae5b3c
Merge pull request #316 from katlapinka/acp-functional
Functional test for acp cleaning policy
2020-02-13 14:42:19 +01:00
Michal Rakowski
2192ec2d55
Merge pull request #330 from rafalste/makefile_for_rpm
Makefile changes for building RPM
2020-02-13 14:25:47 +01:00
Michal Rakowski
77124296ee functional tests: add kedr with filesystem test
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-02-13 14:04:37 +01:00
Michal Rakowski
30b06e07a4
Merge pull request #314 from Deixx/align
Size alignment update in tests
2020-02-13 13:50:34 +01:00
Katarzyna Lapinska
cc39256dac Functional test for acp cleaning policy 2020-02-13 13:50:18 +01:00
Michal Rakowski
919aa35d08
Merge pull request #258 from Ostrokrzew/stop_n_load
Add FI test: stop --no-flush-cache
2020-02-13 11:28:58 +01:00
Michał Mielewczyk
71d8f04565
Merge pull request #305 from Deixx/core-fs
Test API: Filesystem on core + set sequential cut-off fix
2020-02-12 14:45:58 +01:00
Slawomir Jankowski
f1749526fb Stop cache '--no-data-flush' without fs on core
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 13:06:36 +01:00
Slawomir Jankowski
232b6ef21c Stop cache '--no-data-flush' with fs on core
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 13:06:19 +01:00
Slawomir Jankowski
a5a8c19ea4 Update test due to rename 'create_test_file' method
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 13:05:31 +01:00
Slawomir Jankowski
3e5697706c Add message to 'cli_messages' module
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 13:05:14 +01:00
Slawomir Jankowski
47e5faa558 TF submodule update
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 08:56:15 +01:00
Slawomir Jankowski
2a0ddffcfc Refactor code
Change `core_number` to more descriptive `cores_amount`.
Parallelization of FIO for many cores.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 08:46:26 +01:00
Slawomir Jankowski
b72cfff6a9 Overload equality operator in cleaning policy params' classes
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-12 08:46:13 +01:00
Michał Mielewczyk
6201bb8fd7
Merge pull request #334 from Ostrokrzew/fix
Fix for flushing progress getting
2020-02-11 16:27:20 +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
Slawomir Jankowski
1c988e311e Fix for flushing progress getting
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-11 14:39:38 +01:00
Michał Mielewczyk
2e801caf25
Merge pull request #332 from arutk/remove-old-ioclass-configs
Remove obsolete ext3 & ext4 io class configs
2020-02-11 14:37:25 +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
Sławomir Jankowski
4bc64e6471
Merge pull request #323 from katlapinka/flush-progress
Add method to get flushing progress
2020-02-11 13:26:27 +01:00
Katarzyna Lapinska
7654e10c96 Add method to get flushing progress 2020-02-11 12:36:47 +01:00
Adam Rutkowski
0b9350955c
Merge pull request #329 from arutk/static_assert
Add ENV_BUILD_BUG_ON macro to kernel environment
2020-02-10 21:33:04 +01:00
Adam Rutkowski
7153e8e8b6 OCF update
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-02-10 18:24:59 -05:00
Adam Rutkowski
aec95d70c9 Add ENV_BUILD_BUG_ON macro to kernel environment
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-02-10 16:25:35 -05:00
Michał Mielewczyk
285245c5cb Merge pull request #328 from katlapinka/lazy-write
Rename cache mode trait lazy flush to lazy writes
2020-02-10 12:07:34 +01:00
Katarzyna Lapinska
f11a8a5ae3 Rename cache mode trait lazy flush to lazy writes 2020-02-10 11:49:30 +01:00
Michał Mielewczyk
cbcbf979bf Merge pull request #327 from Deixx/with-any-trait
Get cache modes which have any of the provided traits
2020-02-10 09:02:50 +01:00
Daniel Madej
081a05a635 Get cache modes which have any of the provided traits
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-02-07 16:53:09 +01:00
Katarzyna Łapińska
d568bec1e3
Merge pull request #326 from Deixx/with-traits
Get all cache modes which traits include those provided as argument
2020-02-07 13:53:45 +01:00
Daniel Madej
475ddb0050 Get all cache modes which traits include those provided as argument
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-02-07 13:04:14 +01:00
Daniel Madej
bfddd0dd60 Size alignment update in tests
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-02-07 09:49:51 +01:00
Katarzyna Łapińska
5b0413b3fd
Merge pull request #266 from Ostrokrzew/volumes
Add volume test
2020-02-06 11:41:08 +01:00
Katarzyna Łapińska
8fb755fa10
Merge pull request #259 from Ostrokrzew/twice_core
Add FI test: try add twice the same device as core
2020-02-06 11:09:29 +01:00
Katarzyna Łapińska
b328f574cf
Merge pull request #298 from katlapinka/write-fetch
Add write fetch tests
2020-02-05 07:43:28 +01:00
Katarzyna Lapinska
4e573a746a Add write fetch tests 2020-02-03 14:38:19 +01:00
Slawomir Jankowski
a1d7297bb7 Update cli messages module
Add new error messages.
Change 'TestRun.fail' to 'TestRun.LOGGER.error'.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-31 15:02:42 +01:00
Slawomir_Jankowski
5d78207f27 Update FI test: try add twice the same device as core
Check that OpenCAS does not accepts twice the same device as core.
Update code in file.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-31 15:02:42 +01:00
Daniel Madej
ccbce2a9b7 Test API: Filesystem on core + set sequential cut-off fix
Copy exported object's filesystem to core device on fs creation
Fix set_param_cutoff function

Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-31 12:55:31 +01:00
Ostrokrzew
3c26bb05d7 Add volume test
Test for preserving partitions from core device.
Test for preserving partitions at core device, which were made on exported object,
after stopping cache.
Also added two fields to 'Core' class which allows it to use 'create_partitions' function.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-31 11:41:57 +01:00
Katarzyna Łapińska
5c77bbd00b
Merge pull request #303 from rafalste/tests_set_get_params
Add tests for casadm --set-param and --get-param options check
2020-01-31 10:28:19 +01:00
Michał Mielewczyk
3fdfffffc3
Merge pull request #251 from Ostrokrzew/stress
Add stress test for small caches
2020-01-31 09:11:10 +01:00
Daniel Madej
524cf00d37
Merge pull request #317 from mmichal10/fix-init-script
casctl: fix matching multilevel configuration
2020-01-30 16:09:04 +01: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