Michał Mielewczyk
6e1224191f
Merge pull request #260 from Ostrokrzew/many2one
...
Add FI many to one tests
2020-02-18 09:00:05 +01:00
Katarzyna Łapińska
da493b37bb
Merge pull request #331 from Ostrokrzew/load_init_odlozony
...
Load cache tests' update
2020-02-18 07:42:57 +01:00
Katarzyna Łapińska
49edc8a8cd
Merge pull request #315 from Ostrokrzew/interrupt
...
Interruption tests
2020-02-18 07:24:43 +01:00
Rafal Stefanowski
d9a2b017c8
Add tests for proper statistics display
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-02-17 17:53:09 +01:00
Slawomir Jankowski
17528aefdd
Add interrupt cache stop interrupt test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
657023a79c
Add two tests for interrupting cache mode switch
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
5f21f4d580
Add interrupt removing core test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
90c27e488c
Add Interrupt cache flushing test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
660a99ae5c
Add Interrupt core flushing test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Michał Mielewczyk
ee9855cad3
Merge pull request #335 from Ostrokrzew/multi
...
Remove core from multilevel cache test
2020-02-17 15:22:57 +01:00
Michal Mielewczyk
b28e2614c0
Test for acp wake up time param.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-02-17 07:28:04 -05:00
Michal Mielewczyk
230667a219
Test for acp flush max buffers param.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-02-17 03:52:17 -05:00
Slawomir Jankowski
8c7f0dcd32
One of many cores in cache fails
...
OpenCAS continue to work after one of many cores fails
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. Fail core1.
6. Check if core2 is able to use cache.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 09:44:55 +01:00
Michal Mielewczyk
b96da538e0
Expect particular types in ACP config constructor
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-02-17 03:41:57 -05:00
Michal Mielewczyk
01dcc3b0fd
tests: Add __str__ method for ACP config class
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-02-17 03:41:57 -05:00
Slawomir Jankowski
4717b942d9
Dynamic allocation of space in cache
...
OpenCAS continues to operate after one of many cores is released:
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. "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
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
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
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
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
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
Katarzyna Lapinska
f11a8a5ae3
Rename cache mode trait lazy flush to lazy writes
2020-02-10 11:49:30 +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
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 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
Katarzyna Lapinska
80c1306ec4
Fix for io class file classification tests
2020-01-30 14:32:42 +01:00
Ostrokrzew
460cbe7ccc
Add stress test for small caches
...
Add IO stress tests for small CAS devices with 1 or 4 cores for every cache mode
and cache line size and with every cleaning policy for WB and WO modes.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-30 14:01:06 +01:00
Rafal Stefanowski
15c8973f45
Add tests for casadm --set-param and --get-param options check
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-27 12:07:12 +01:00
Katarzyna Lapinska
8204fa8a56
Update Init config usage and remove WI cache mode
2020-01-27 10:34:05 +01:00
Michal Rakowski
2801bfcc97
test-framework update
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-24 19:21:23 +01:00
Daniel Madej
7d86ca2741
Merge pull request #302 from Deixx/stats-refactor
...
Test API: Statistics refactor
2020-01-24 17:04:47 +01:00
Daniel Madej
25b0f0dc55
Test API: Statistics refactor
...
Keep all statistics names in one place
Differentiate Core/Cache IO class stats
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-24 16:41:05 +01:00
Daniel Madej
c5019cb772
Merge pull request #284 from Ostrokrzew/sec
...
Security test fix
2020-01-24 15:19:18 +01:00
Katarzyna Łapińska
ed6cf8a76b
Merge pull request #299 from Deixx/stats-flat
...
Refactor statistics
2020-01-24 08:57:54 +01:00
Daniel Madej
9ad85e3338
Update statistics usage to use stats classes
...
Rename set_statistics_deprecated to set_statistics_flat, as flat
statistics are sometimes more useful and actually not deprecated.
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-23 13:39:51 +01:00
Katarzyna Lapinska
4c66fa8b1b
Add cache mode traits
2020-01-23 11:56:51 +01:00
Katarzyna Łapińska
f36e7bf3d6
Merge pull request #293 from Deixx/ioclass-stats-update
...
Updated parsing IO class statistics for cache/core
2020-01-22 07:42:11 +01:00
Sławomir Jankowski
445f0cb9b0
Merge pull request #294 from rafalste/fix_timedelta_precision
...
Fix timedelta precision by importing attotimedelta instead
2020-01-21 17:37:52 +01:00
Rafal Stefanowski
5c3554f19b
Add attotime in OCL API dependencies
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-21 17:10:58 +01:00
Rafal Stefanowski
88efaa1940
Fix timedelta precision by importing attotimedelta
...
total_seconds() method from Python's datetime class outputs a Float
precision number which for some numbers multiplied by 10^n gives wrong
values.
total_seconds() method from attotime class wraps a native timedelta
object and outputs a Decimal precision number which fixes this issue.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-21 16:43:54 +01:00
Daniel Madej
8bfa2ad83e
Updated parsing IO class statistics for cache/core
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-01-21 16:28:17 +01:00
Slawomir Jankowski
a3a809bd81
Security test fix
...
Fix for creating partition on partition:
now partition would be created on parent device.
Code fixes.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-21 12:19:02 +01:00
Jan Musiał
159df1fb3e
Merge pull request #262 from mdziegie/5d
...
tests/data_integrity: Add two new 5 days long data integrity tests
2020-01-21 12:13:31 +01:00
Robert Baldyga
dbcbf17f88
Merge pull request #276 from Ostrokrzew/test_update
...
Test update
2020-01-21 11:36:04 +01:00
Marcin Dziegielewski
a1368b63f7
tests/data_integirty: Add two new 5 days long data integrity tests
...
This patch adds two new 5 days long data integirty tests:
- on raw devices with different cache modes
- on different filesystems with loaded io calss config
Signed-off-by: Marcin Dziegielewski <marcin.dziegielewski@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-21 11:27:55 +01:00
Rafal Stefanowski
1d7dce4b50
Fix duplicated __eq__ function
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-20 17:05:42 +01:00
Daniel Madej
f04a5e6093
Merge pull request #287 from rafalste/fix_duplicated_eq_func
...
Fix duplicated functions and minor PEP8 formatting issues
2020-01-20 16:14:12 +01:00
Rafal Stefanowski
cf67105489
Fix duplicated functions and minor formatting PEP8 issues
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-20 15:18:07 +01:00
Jan Musiał
53e9435a1f
Merge pull request #270 from katlapinka/incremental-load-udev-tests
...
Add incremental load udev tests
2020-01-20 10:47:31 +01:00
Slawomir Jankowski
ca36614448
Test update
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-01-20 09:00:39 +01:00
Robert Baldyga
74aac27006
Merge pull request #255 from rafalste/tests_cleaning_policy
...
Add tests for cleaning policies operation
2020-01-17 17:22:08 +01:00
Robert Baldyga
4e502eb3a6
Merge pull request #250 from imjfckm/test-errors-on-cores
...
Test errors on cores
2020-01-17 17:20:27 +01:00
Katarzyna Lapinska
35f3409a47
Add incremental load udev tests
2020-01-17 09:37:10 +01:00
Jan Musial
21f18b70db
Tests for errors on core device
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-01-17 09:14:45 +01:00
Rafal Stefanowski
1e0ed86ce7
Add tests for cleaning policy operation
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-16 17:12:25 +01:00
Katarzyna Łapińska
acd6171848
Merge pull request #265 from micrakow/kedr
...
Add basic kedr test
2020-01-16 12:51:21 +01:00
Sławomir Jankowski
0fb4d76e35
Merge pull request #279 from katlapinka/groups_cleanup
...
Cleanup test groups directories (fault injection and cache ops)
2020-01-16 10:36:58 +01:00
Katarzyna Lapinska
3cf0cf2642
Cleanup test groups (fault injection and cache ops)
2020-01-16 09:52:30 +01:00
Michal Rakowski
34e7a81635
Add tests using kedr - load/unload modules, start/stop cache
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 16:29:00 +01:00
Michal Rakowski
9acb679ede
installer.py: determine if CAS is installed on modules presence instead of casadm only
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 15:02:48 +01:00
Michal Rakowski
d9c0c0e83a
cas_module.py: fixup load/unload methods
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 15:02:48 +01:00
Michal Rakowski
5edbf2a5a9
conftest: execute casadm-related cleanup only if CAS is installed during teardown
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 15:02:48 +01:00
Daniel Madej
97c8d07b77
Merge pull request #271 from robertbaldyga/test-example-power-control
...
tests: Add example test using power_control plugin
2020-01-15 14:40:16 +01:00
Jan Musial
79e54b81a6
Kill all IO on teardown
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-01-15 13:34:44 +01:00
Katarzyna Łapińska
45e862fdbd
Merge pull request #264 from rafalste/tests_software_hot_plug
...
Add tests for cache/core software hotplug
2020-01-15 09:08:35 +01:00
Robert Baldyga
e7d3fada4d
Merge pull request #248 from katlapinka/init-config-class
...
Create init config class representation
2020-01-14 13:31:17 +01:00
Rafal Stefanowski
f13602cbf6
Add tests for cache/core software hotplug
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-14 11:36:48 +01:00
Robert Baldyga
9dc7f9aea7
tests: Add example test using power_control plugin
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-14 10:27:45 +01:00
Katarzyna Lapinska
53664937ba
Create init config class representation
2020-01-14 09:35:30 +01:00
Michał Mielewczyk
dd908053fb
Merge pull request #272 from robertbaldyga/tests-enable-serial-log-plugin
...
tests: Enable serial_log plugin
2020-01-13 16:37:47 +01:00
Robert Baldyga
5756edac1b
tests: Enable serial_log plugin
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-13 16:09:25 +01:00
Rafal Stefanowski
afc513d432
Add minor improvements in tests API
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-01-09 15:31:36 +01:00
Robert Baldyga
ee88cafc26
tests: Add test for CAS startup on reboot
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-07 09:43:55 +01:00
Michal Rakowski
8180736c67
Merge pull request #263 from robertbaldyga/tests-update-tf-plugins
...
tests: Update TF - plugins
2020-01-07 09:09:17 +01:00
Robert Baldyga
a38f76d28a
tests: Update TF - plugins
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-07 08:59:00 +01:00