-
Notifications
You must be signed in to change notification settings - Fork 96
Add test for installing OpenCAS from RPM package #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Hello @Ostrokrzew! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-09-14 13:52:24 UTC |
547e1a2 to
61f062b
Compare
db16c41 to
2c94637
Compare
|
retest this please |
b1d5521 to
cb7b117
Compare
4440dd5 to
4d6e523
Compare
|
retest this please |
c6b3086 to
3b7448a
Compare
8ed9d93 to
c984623
Compare
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Remove unused imports from `installer` module. Create class from `installer` with static methods. Wrap `_rsync_opencas`. Add timeout to `_rsync_opencas`. Extract checking if `casadm` works. Remove checking if CAS is installed from `uninstall_opencas` method. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
`RpmInstaller` overwrites few methods to handle RPM functionality. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Add parsing new CLI flag `--rpm-install` to inform framework that user want to install OpenCAS not from sources (default), but from RPM packages. Additionaly user can pass in config file own path to ready-to-install RPM packages. Extend `Opencas` class with field `rpm_dir`. Use new pytest mark in prepare stage. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
010de0b to
728316e
Compare
| TestRun.LOGGER.info("Check if 'casadm' is properly installed.") | ||
| output = TestRun.executor.run("casadm -V") | ||
| if output.exit_code != 0: | ||
| return False | ||
| else: | ||
| TestRun.LOGGER.info(output.stdout) | ||
| return True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'which casadm' does the job, and we don't need output from casadm here
| installer.reinstall_opencas() | ||
| elif not installer.check_if_installed(): | ||
| installer.rsync_opencas_sources() | ||
| elif not opencas_installed and not uninstall_cas: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uninstall_cas is always False here
| if opencas_installed: | ||
| RpmInstaller.uninstall_opencas() | ||
| elif get_force_param(item) and not TestRun.usr.already_updated: | ||
| installer.reinstall_opencas() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If RPM is installed and we want to reinstall from sources then installer.reinstall_opencas() will try to remove only source-based installation (and fail), and then will try to install from sources although RPM would still be installed.
|
Can one of the admins verify this patch? |
|
Remove kedr test and update test for rpm installer |
Deixx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-framework patch lost
Needs https://github.com/Open-CAS/test-framework/pull/166