Closed jmazanek closed 6 years ago
How to test:
On source system install the samba-common package.
Run the preupgrade-asssitant with this build of the modules.
Pre-upgrade results:
$SOLUTION_FILE
./root/preupgrade/postupgrade.d/smb/
directory.Upgrade the system using r-u-t.
Post-upgrade results:
Corrected post-upgrade script to check a presence of "samba-common-tools. Please review. Texts reviewed.
Can you please confirm, @jmazanek
Pre-upgrade results:
- New log_medium_risk message informing user about possible incompatibilities in samba configuration should be printed in p-a result.
- New message informing user about post-upgrade script and how to get the more detailed information after upgrade is appended to
$SOLUTION_FILE
.- The post-upgrade script is created in
/root/preupgrade/postupgrade.d/smb/
directory.Post-upgrade results:
- In the post-upgrade phase, post-upgrade script is run and checks the compatibility of the samba configuration file.
Are all these results triggered merely by installing the samba-common? (Ie. do we need to actually add some directives?)
If so, I assume these should be already observed in the samba tests we have. (I assume the samba-common is dependency of all samba-related stuff.)
@AloisMahdal all that should be triggered just by the package installed. No configuration changes are necessary
qa_ack
: module integration test should be relatively easy; try with/without samba-common installed and check XML using test library.
Thanks, @jmazanek for quick answer.
Ahoj @jmazanek , there should be check for this line:
SMB_CFG=$(smbstatus -v | awk -F' = ' '$1 == "using configfile" { print $2 }')
If package samba
is installed, everything works well. But if samba
is not installed and samba-common
is (no dependency between these packages), it fails. Other output of module seems well, but I'l investigate it deeply.
current output is:
/root/preupgrade/RHEL6_7/networking/samba/check: line 31: smbstatus: command not found
@tcerna fixed in a new build
Thank you Kubo, for your fix.
Verified it in preupgrade-assistant-el6toel7-0.7.6-0.201809111503Z.PR98.el6_8.noarch
.
Used new test case /CoreOS/preupgrade-assistant-el6toel7/ast/networking-samba
for testing of pre-upgrade process (set packages and services, check risks and preupg results).
Also upgrade test case /CoreOS/samba/Preupgrade
was run and it worked as expected.