Michal Rakowski
db8ff10cd5
casadm: add err log in case of failed param getting/setting
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2019-11-20 07:52:05 +01:00
Michał Mielewczyk
ac59a8f746
Merge pull request #183 from robertbaldyga/test-guidelines
...
tests: Introduce test writing guidelines
2019-11-19 09:00:44 +01:00
Jan Musiał
50d340f815
Merge pull request #191 from imjfckm/fix-lvm
...
Try to load devices on change udev event
2019-11-18 16:24:36 +01:00
Jan Musial
c4e15a1af7
Try to load devices on change udev event
...
This fixes CAS-on-LVM scenario. Currently how CAS works:
1. LVM instantinates device nodes (not usable at this point)
2. CAS tries to add cores (fails)
3. LVM ends device configuration and issues change uevent
4. We ignore change uevents so we do nothing
This patch makes sure we don't ignore change uevents.
Still, some messages about not being able to open core device
can show up in syslog - there's room for improvement.
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-11-18 15:59:37 +01:00
Michał Mielewczyk
cccb69dc91
Merge pull request #190 from imjfckm/wait-for-cas-ctrl
...
Wait for cas_ctrl device in casctl
2019-11-18 15:37:17 +01: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 Musiał
126615add1
Merge pull request #184 from katlapinka/improve-error-handling
...
Improve error handling and exception messages
2019-11-18 13:57:49 +01:00
Michał Mielewczyk
ce5db43e42
Merge pull request #166 from imjfckm/fix-startup
...
Fix startup
2019-11-18 13:57:10 +01:00
Jan Musial
df1ba933de
Update tests
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-11-18 09:18:05 +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
Katarzyna Lapinska
783daba8d4
Improve error handling and exception messages
2019-11-14 10:47:57 +01:00
Michał Mielewczyk
db1cb96010
Merge pull request #186 from robertbaldyga/4kib-blocks-string
...
casadm: Unify "4KiB Blocks" string
2019-11-13 11:36:31 +01:00
Daniel Madej
235def1ec5
Remove logging objects
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-11-12 18:56:15 +01:00
Daniel Madej
252f7104ca
Fix - core and cache could use the same device
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-11-12 18:56:15 +01:00
Daniel Madej
ccfc7001dc
casadm returns Stats object instead of dict
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-11-12 18:56:15 +01:00
Daniel Madej
034fa9b61c
Use CmdException for casadm outputs
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2019-11-12 18:55:22 +01:00
Robert Baldyga
9b17135694
casadm: Unify "4KiB Blocks" string
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-12 17:17:22 +01:00
Robert Baldyga
17241575d5
tests: Introduce test writing guidelines
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-08 17:30:19 +01:00
Daniel Madej
54d6435656
Merge pull request #174 from katlapinka/stress_without_io
...
Add stress tests without I/O
2019-11-08 14:39:00 +01:00
Katarzyna Lapinska
11352a6d21
Add stress tests without I/O
2019-11-07 17:04:34 +01:00
Katarzyna Łapińska
7be7264f1a
Merge pull request #181 from robertbaldyga/update-example
...
tests: Update example using new utils
2019-11-07 11:00:03 +01:00
Robert Baldyga
4da68f426d
tests: Update example using new utils
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-07 10:43:10 +01:00
Michał Mielewczyk
07d8fdbf01
Merge pull request #177 from katlapinka/opencas-plugin-as-singleton
...
Make opencas plugin as singleton class
2019-11-06 11:44:44 +01:00
Michał Mielewczyk
343d041160
Merge pull request #176 from robertbaldyga/config-type-field
...
tests: Add field 'type' to example dut config
2019-11-06 11:38:58 +01:00
Michał Mielewczyk
65ada40b2f
Merge pull request #178 from robertbaldyga/dont-call-base-prepare
...
tests: Don't call base_prepare() in tests
2019-11-06 11:37:43 +01:00
Katarzyna Lapinska
eedb4ded7c
Make opencas plugin as singleton class
2019-11-06 08:32:29 +01:00
Robert Baldyga
fe5dd80c0c
tests: Don't call base_prepare() in tests
...
The base_prepare() function is now called automatically during test
setup so there is no longer need to call it from each test manually.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-05 18:54:02 +01:00
Michał Mielewczyk
5d643a48d8
Merge pull request #172 from robertbaldyga/update-installer
...
tests: Update installer
2019-11-05 14:49:39 +01:00
Robert Baldyga
baa621e882
Merge pull request #167 from arutk/fix_block_dev_get_elevator_name_prototype
...
Make __block_dev_get_elevator_name return const string
2019-11-05 12:35:21 +01:00
Robert Baldyga
7dd5a6fc12
tests: Remove unused adoptions
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-04 14:46:36 +01:00
Robert Baldyga
01cd284a48
Update installer to use local repository
...
As tests are now part of OCL repository, we prefer to always
run tests from local repository version on the same version
of OCL, so instead of cloning OCL from GitHub we just copy
local repository to DUT.
This also simplifies running remote tests in development
environment without need to push work-in-progress commits
to GitHub or installing OCL manually on DUT.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-04 14:46:36 +01:00
Daniel Madej
30901ef5c7
Merge pull request #169 from katlapinka/log-destroy
...
Destroy Log instance at the end of teardown method
2019-11-04 13:53:39 +01:00
Katarzyna Lapinska
291ea908aa
Destroy Log instance at the end of teardown method
2019-11-04 13:30:29 +01:00
Robert Baldyga
46c532e570
Unify quotes in exaple_dut_config.yml
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-04 11:13:54 +01:00
Robert Baldyga
ba63619d51
tests: Add field 'type' to example dut config
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-04 11:11:41 +01:00
Katarzyna Łapińska
00df533d15
Merge pull request #175 from robertbaldyga/fix-git-utils
...
tests: Fix git utils
2019-11-04 09:01:13 +01:00
Daniel Madej
be5fbafdde
Merge pull request #173 from katlapinka/cache-config
...
Add cache config and fix for CAS modules names
2019-10-31 16:28:01 +01:00
Robert Baldyga
2a982aaf7e
tests: Fix git utils
...
Return appropriate information instead of entire commit diff.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-31 14:58:29 +01:00
Katarzyna Lapinska
63937439b4
Add cache config and fix for cas modules names
2019-10-31 13:41:01 +01:00
Robert Baldyga
e4a31f51a5
Set working dir
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 16:15:54 +01:00
Daniel Madej
04c346f062
Merge pull request #171 from robertbaldyga/set-repo-dir
...
Set repo_dir
2019-10-30 16:14:45 +01:00
Robert Baldyga
fdf72785c7
Set repo_dir
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 16:00:24 +01:00
Michal Rakowski
e97ef51fc5
Merge pull request #158 from arutk/alloc_opt
...
Relax CAS memory allocation requirements
2019-10-30 14:33:51 +01:00
Michal Rakowski
193937478b
Merge pull request #170 from robertbaldyga/move-git-utils
...
Use git utils from cas API
2019-10-30 14:32:25 +01:00
Robert Baldyga
c98b7e1bb3
Use git utils from cas API
...
Test framework does no longer provide git_utils, so we switch
to local implementation.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 10:30:14 +01:00
Robert Bałdyga
7f6ce5764f
Merge pull request #162 from robertbaldyga/use-require_disk
...
Use "require_disk" mark
2019-10-29 14:50:54 +01:00
Robert Baldyga
2c080dd8ca
Loosen cache disk type requirements for simple cli tests
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 14:42:27 +01:00
Robert Baldyga
ba9876ed52
Simplify waiting for connection
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 10:19:13 +01:00
Robert Baldyga
b65ff40bf0
Use "require_disk" mark
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 10:19:13 +01:00
Robert Baldyga
6bcc95d0cd
Remove redundant call of base_prepare()
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 08:53:18 +01:00