Adding support for lockdown feature - #3167
Conversation
a322b4e to
47d287d
Compare
|
@PavamanSubramaniyam is this similar test #3166 |
avocado run --max-parallel-tasks=1 pci_hotplug.py -m pci_hotplug.py.data/pci_hotplug.yamlJOB ID : 374c12be3a8ebca4900aba574327914d9e3f4110 I have updated the full results logs to the corresponding Jira. |
|
No, 3166 is for dlpar but my tests are for PCI Hotplug. Can you pull in @Naresh-ibm for the 3166 and for this PR to cross verify if there is overlap in work being done. |
@Naresh-ibm does lockdown feature test is different when run with hotplug instead dlpar ? |
|
@PraveenPenguin and @Naresh-ibm Actual avocado PR : avocado-framework/avocado#6306 @PavamanSubramaniyam Try to make use of internal repos linux utils. |
|
Currently I have incorporated the code in test script itself to make sure these additional tests are incorporated in the CR flow. May be in the future we can think of utilizing the common code in utils. For now we are making sure these tests don't affect other tests in the CR flow and incorporating the feature only in the test script file. |
|
@PavamanSubramaniyam can you please accommodate these changes |
|
@PavamanSubramaniyam we have dependency of other automation works on this PR. can you please address this on priority |
afe7b34 to
051f74d
Compare
|
I have addressed the review comments and sent the changes as suggested. |
| self.fail("following devices failed: %s" % ", ".join(err_pci)) | ||
| elif self.lockdown_enable is False: | ||
| self.cancel("lockdown mode will not be enabled") | ||
|
|
There was a problem hiding this comment.
@PavamanSubramaniyam as suggested all validation should go to setup and onlt one existing test is enough. actual test code is duplicating here. So please move the initial lock_down mode check, set, should be done in the setup itself.
There was a problem hiding this comment.
please change above things, and rest looks good
There was a problem hiding this comment.
I have addressed the changes as discussed.
| return None | ||
|
|
||
| def set_lockdown_mode(self, mode): | ||
| ''' |
There was a problem hiding this comment.
Normal practice, all above function should go in setup, the function defination should be before .. function call.. these method can also go utils.. take a call if not immediate ?
There was a problem hiding this comment.
I will keep these practices in mind while incorporating these suggestions for all the future PRs. Currently we will keep the code limited to this test script and will plan to send the changes to utils in future.
051f74d to
d498cd6
Compare
Executing pci hotplug tests with the lockdown mode enabled Signed-off-by: Pavaman Subramaniyam <pavsubra@linux.vnet.ibm.com>
d498cd6 to
ac639f7
Compare
|
Attaching the executed test results for without lockdown feature being enabled: cat /sys/kernel/security/lockdown cat /sys/kernel/security/lockdown |
|
Attaching the executed test results with lockdown feature being enabled: cat /sys/kernel/security/lockdown |
|
I have attached the complete details results tar files to the corresponding Jira. |
@abdhaleegit we need to run both the runs, i,e enabling the lockdown and without enabling the lockdown. they both are different tests. |
we have declined this internal utils, and incorporated with different yaml file. so we are good to go on this |
Executing pci hotplug tests with the lockdown mode enabled