Skip to content
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

Fix to shutdown all HCL process that initiated by HTX. #2894

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions io/disk/htx_block_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ def test_start(self):
Execute 'HTX' with appropriate parameters.
"""
self.setup_htx()
self.log.info("Stopping existing htx daemon")
process.run(" ps -C htxd -o pid=|xargs kill -9")
self.log.info("Starting the HTX Deamon")
process.run("/usr/lpp/htx/etc/scripts/htxd_run")

self.log.info("Stopping existing HXE process")
hxe_pid = process.getoutput("pgrep -f hxe")
if hxe_pid:
self.log.info("HXE is already running with PID: %s. Killing it.", hxe_pid)
process.run("hcl -shutdown", ignore_status=True)
time.sleep(20)
self.log.info("Creating the HTX mdt files")
process.run("htxcmdline -createmdt")

Expand Down
Loading