Commit Graph

787 Commits

Author SHA1 Message Date
Michal Mielewczyk
c71b5fcbd3 Access attach command conditionaly
If cache is restored after upgrade, NULL is passed instead of
`struct kcas_start_cache`. This leads to null pointer dereference.

To prevent null pointer dereference, `struct kcas_start_cache` is tested before
each use

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-06-16 04:20:51 -04:00
Michal Mielewczyk
975ec6f32a Keep pointer to rollback thread in start_finalize
If cache is initialized successfully, `struct _cache_mngt_attach_context` might
be freed in `cache_mngt_init_instance()`. In such case pointer to rollback
thread can't be accessed and thread can't be stopped.

To prevent such scenario pointer should be kept in separate variable.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-06-16 04:20:51 -04:00
Robert Baldyga
f0594dce3a
Merge pull request #433 from Ostrokrzew/prom_test
Update promotion test due to a ban on using 'load' and 'force' option simultaneously
2020-06-08 12:03:03 +02:00
Slawomir Jankowski
f03a199d12 Update promotion test due to a ban on using 'load' and 'force' option simultaneously
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-08 11:38:42 +02:00
Robert Baldyga
0ad78a118f
Merge pull request #421 from rafalste/rpm_debug_symbols
Create debug symbols for RPM
2020-06-08 09:28:22 +02:00
Rafal Stefanowski
c6cfaa55f5 Create debug symbols for RPM
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-06-03 10:34:37 +02:00
Robert Baldyga
a03a27f1d5
Merge pull request #377 from rafalste/tests_statistics_integrity
Test for proper statistics values
2020-06-02 13:22:09 +02:00
Robert Baldyga
028186b112
Merge pull request #429 from robertbaldyga/wo-read-clean-sec-cache
Update OCF - WO data inconsistency mitigation
2020-06-02 11:04:24 +02:00
Rafal Stefanowski
04b2fc6bd5 Test for proper statistics values
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-06-02 10:25:57 +02:00
Robert Baldyga
bfe107d894 Update OCF - WO data inconsistency mitigation
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-06-01 16:46:54 +02:00
Robert Baldyga
7bd09878f9
Merge pull request #428 from robertbaldyga/tf-plugins-provided-by
Update test-framework and update example config
2020-06-01 16:37:39 +02:00
Robert Baldyga
d4bca2756f
Merge pull request #414 from Ostrokrzew/load
Disable the possibility to use the 'load' and 'force' flags at once
2020-06-01 15:28:38 +02:00
Slawomir Jankowski
0903541160 Add new error message to 'cli_mesages'
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-01 13:30:07 +02:00
Slawomir Jankowski
394313002b Add test for wrong flag combination in start command
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-01 13:30:07 +02:00
Slawomir Jankowski
1b7c425fae Disable the possibility to use the 'load'
and 'force' flags at once

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-06-01 13:21:53 +02:00
Robert Baldyga
16ac54af17 Update test-framework and update example config
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-06-01 12:32:36 +02:00
Robert Baldyga
69da7f5677
Merge pull request #420 from mmichal10/core-id-rule
Core id ioclass rule
2020-05-29 15:13:39 +02:00
Robert Baldyga
d11f434a76
Merge pull request #424 from mmichal10/improve-installer
Improve installer
2020-05-27 16:26:27 +02:00
Robert Baldyga
2ee69dc919
Merge pull request #422 from mmichal10/fix-purge-wrapper
test api: fix purge command wrapper name
2020-05-27 16:26:13 +02:00
Michal Mielewczyk
e34477690c test api: allow to get commit hash from DUT
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 09:18:01 -04:00
Michal Mielewczyk
c99631bc73 test api: don't copy sources in set_up_opencas()
This way set_up_opencas() can be reused in tests

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 09:18:01 -04:00
Michal Mielewczyk
8e50f1c219 test api: allow to install particular CAS version
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 09:18:01 -04:00
Michal Mielewczyk
ce84b811b7 test api: split installer into smaller steps
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 09:18:01 -04:00
Michal Mielewczyk
3f8f033c4c test api: clean CAS repo before build
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 09:18:01 -04:00
Michal Mielewczyk
bd8b88b55d test api: wrapper for git checkout command
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 09:18:01 -04:00
Michal Mielewczyk
a9835183d8 test api: wrapper class for CAS version
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-27 05:37:38 -04:00
Michal Mielewczyk
8def35c986 test api: wrapper for retrieving CAS release tags
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-26 09:54:36 -04:00
Robert Baldyga
80327aea1b
Merge pull request #418 from rafalste/pckgen_deps
Fix pckgen dependencies
2020-05-25 15:04:25 +02:00
Robert Baldyga
a3b57818d1
Merge pull request #403 from Ostrokrzew/zero
Introduce zero-metadata command
2020-05-25 11:58:40 +02:00
Michal Mielewczyk
b51d75ff5e Test for core id based io classification
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-25 05:16:35 -04:00
Michal Mielewczyk
25b1fb086e test api: fix purge command wrapper name
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-25 05:11:29 -04:00
Slawomir Jankowski
fe704f83cf Introduce zero-metadata command
Add function *zero_md* in *cas_lib* to handle
new command for zeroing metadata.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-05-25 10:54:53 +02:00
Slawomir Jankowski
9750883d99 Introduce zero-metadata command
Add 'zero-metadata' option to *casadm*.
Handle new option.
Add struct for new option.

Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-05-25 10:54:04 +02:00
Michal Mielewczyk
b0f8a67071 Core id based io classification
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-21 08:44:20 -04:00
Robert Baldyga
0f0ef6a9c4
Merge pull request #408 from mmichal10/test-acp-discard
Test for triggered WBT
2020-05-21 12:25:43 +02:00
Michal Mielewczyk
c232dd36d9 Test for triggered WBT 2020-05-21 04:30:57 -04:00
Robert Baldyga
673ff88fff
Merge pull request #383 from rafalste/tests_stat_max
Tests for max cache/core stats
2020-05-20 23:00:56 +02:00
Robert Baldyga
1e25420f86
Merge pull request #404 from rafalste/copyright_update
Update copyright statements
2020-05-19 11:25:11 +02:00
Robert Baldyga
c7f3e52411
Merge pull request #309 from Deixx/ioclass-stats
IO class stats - refactor and test for statistics sections
2020-05-18 17:55:24 +02:00
Rafal Stefanowski
72387d61fd Fix pckgen dependencies
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-15 15:18:28 +02:00
Robert Baldyga
2a77fd3d4d
Merge pull request #411 from mmichal10/purge
Purge
2020-05-14 11:54:08 +02:00
Michal Mielewczyk
84f2dc3c07 CLI test for purge commands
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-12 11:32:01 -04:00
Michal Mielewczyk
c28babde8b tests: Wrappers for purge commands
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-12 11:32:01 -04:00
Michal Mielewczyk
3b62e40a2e Purge core command
Purge invalidates all cache lines which belongs to given core. It is very
usefull feature for tests.

Calling purge is possbile with casadm `--script` swtich.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-12 11:32:01 -04:00
Michal Mielewczyk
d24288a9b1 Purge cache command
Purge invalidates all cache lines. It is very usefull feature for tests.

Calling purge is possbile with casadm `--script` swtich.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-05-12 11:32:01 -04:00
Robert Baldyga
d2ea98eae8
Merge pull request #412 from robertbaldyga/update-readme-20.3
Update README.md to point to latest stable release
2020-05-12 10:46:12 +02:00
Robert Baldyga
3ab6d74a42 Update README.md to point to latest stable release
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-05-12 10:31:05 +02:00
Rafal Stefanowski
58b3135082 Tests for max cache/core stats
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-06 11:22:07 +02:00
Robert Baldyga
f7d854bf70
Merge pull request #393 from rafalste/check_submodules_in_configure
Check for submodules in ./configure
2020-05-05 18:32:05 +02:00
Rafal Stefanowski
44b4020cc1 Update copyright statements
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-05-04 16:47:38 +02:00