-
Notifications
You must be signed in to change notification settings - Fork 85
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
Adding HtxBootme test on OpTest #814
Conversation
60361af
to
1d7c992
Compare
Please find the Logs attached here |
1d7c992
to
9aa51e0
Compare
deac9c9
to
8e4f4f0
Compare
@abdhaleegit I am making use of Paramiko as i noticed pexpect is giving some time delay and sometimes getting stuck at the console prompt for infinite time. Paramiko looks much better method in that way. Also Paramiko gives various methods to check file existence, removing of file/directory and so many. |
1b8f6f9
to
118484b
Compare
log.debug(f"BLOCK DEVICES {self.block_device} ARE ACTIVE") | ||
return True | ||
|
||
def get_mpath_from_dm(self, dm_id): |
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.
@abdhaleegit 3 functions "get_mpath_from_dm" , "get_all_disk_paths" and "get_absolute_disk_path" These 3 functions can be moved to common libraries as these are common utilities used for Block devices. These functions will be required in future for different testcases by Block devices and multipath cases on op-test.
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.
can be moved to OpTestUtil.py
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.
can be moved to OpTestUtil.py
@abdhaleegit Tried moving the functions to common utils, but found some dependencies and code modifications, which would expand the functions a lot. Felt keeping here would be a better way to achieve this.
log.debug(f"BLOCK DEVICES {self.block_device} ARE ACTIVE") | ||
return True | ||
|
||
def get_mpath_from_dm(self, dm_id): |
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.
can be moved to OpTestUtil.py
Separate out commits per each logical change |
The test is performed in below manner 1. Starts Htx workload on mdt.all/Block devices/Nic devices 2. Starts bootme which reboots the lpar every 30 minutes 3. wait for reboot and check htxerror logs after reboot, Htx must continue without any errors 4. Stop bootme 5. Stop Htx workload Param : "boot_count" must be given from machine.conf file. The param is for the number of counts the reboot cycle must happen. Default is 6 Signed-off-by: Tasmiya Nalatwad <[email protected]>
The test is performed in below manner 1. Starts Htx workload on mdt.hd 2. Starts bootme which reboots the lpar every 30 minutes 3. wait for reboot and check htxerror logs after reboot, Htx must continue without any errors 4. Stop bootme 5. Stop Htx workload Param : "boot_count" must be given from machine.conf file. The param is for the number of counts the reboot cycle must happen. Default is 6 Param : "htx_disks" disks must be provided as input '/dev/mapper/mpathg /dev/mapper/mpathe' or '/dev/sdg /dev/sde' Param : "all" mention True or False based on the test you want to run on all devices or just input provided devices Signed-off-by: Tasmiya Nalatwad <[email protected]>
118484b
to
463aa89
Compare
Done |
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.
@TasmiyaNalatwad so we do not have logs for NIC bootme.. than you can split out the PR for NICbootme separately so I can merge this generic and block as this PR.. and keep open the other PR until ETA and we have tested once
463aa89
to
c6237ef
Compare
@abdhaleegit Removed Nic devices from this PR as of now. After this is merged will share the separate PR for Nic devices |
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.
LGTM
The test is performed in below manner
Param : "boot_count" must be given from machine.conf file. The param is for the number of counts the reboot cycle must happen. Default is 6